From 5d3d227819d784033fff9d3bdff9b73d8c97a0c0 Mon Sep 17 00:00:00 2001 From: Michal Moravec Date: Mon, 25 Apr 2016 08:57:39 +0200 Subject: [PATCH] Cs fixes --- lib/ILess/CLI.php | 4 ++-- lib/ILess/Node.php | 1 - lib/ILess/Node/UnitNode.php | 2 +- lib/ILess/Parser/Core.php | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/ILess/CLI.php b/lib/ILess/CLI.php index cc7a0de..14343b7 100644 --- a/lib/ILess/CLI.php +++ b/lib/ILess/CLI.php @@ -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)); } /** diff --git a/lib/ILess/Node.php b/lib/ILess/Node.php index 8e9559f..b6e9fc7 100644 --- a/lib/ILess/Node.php +++ b/lib/ILess/Node.php @@ -261,5 +261,4 @@ public function compileFirst() { return $this->compileFirst; } - } diff --git a/lib/ILess/Node/UnitNode.php b/lib/ILess/Node/UnitNode.php index 7fe4e6a..1e4150b 100644 --- a/lib/ILess/Node/UnitNode.php +++ b/lib/ILess/Node/UnitNode.php @@ -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); } /** diff --git a/lib/ILess/Parser/Core.php b/lib/ILess/Parser/Core.php index 977c622..221c076 100644 --- a/lib/ILess/Parser/Core.php +++ b/lib/ILess/Parser/Core.php @@ -1561,7 +1561,7 @@ protected function parseMultiplication() $isSpaced = $this->input->isWhitespace(-1); } - return ($operation ? $operation : $m); + return $operation ? $operation : $m; } }