Skip to content

Commit

Permalink
Cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mishal committed Apr 25, 2016
1 parent 8f8fcdf commit 5d3d227
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/ILess/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,8 @@ protected function toText($string)
*/
protected function detectColors()
{
return (getenv('ConEmuANSI') === 'ON' || getenv('ANSICON') !== false ||
(defined('STDOUT') && function_exists('posix_isatty') && posix_isatty(STDOUT)));
return getenv('ConEmuANSI') === 'ON' || getenv('ANSICON') !== false ||
(defined('STDOUT') && function_exists('posix_isatty') && posix_isatty(STDOUT));
}

/**
Expand Down
1 change: 0 additions & 1 deletion lib/ILess/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,4 @@ public function compileFirst()
{
return $this->compileFirst;
}

}
2 changes: 1 addition & 1 deletion lib/ILess/Node/UnitNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function isLength()
{
$css = $this->toCSS(new Context());

return !!preg_match(self::LENGTH_REGEXP, $css);
return (bool) preg_match(self::LENGTH_REGEXP, $css);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/ILess/Parser/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ protected function parseMultiplication()
$isSpaced = $this->input->isWhitespace(-1);
}

return ($operation ? $operation : $m);
return $operation ? $operation : $m;
}
}

Expand Down

0 comments on commit 5d3d227

Please sign in to comment.