@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $val = $value[1]; |
| 41 | 41 | $grace = new Range(-0.00001, 0.00001); |
| 42 | 42 | |
| 43 | - if (! \is_numeric($val)) { |
|
| 43 | + if (!\is_numeric($val)) { |
|
| 44 | 44 | throw new RangeException("$name {$val} is not a number."); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | //$value >>>= 1; // unsigned right shift |
| 138 | 138 | $value = ($value >> 1) & PHP_INT_MAX; |
| 139 | 139 | |
| 140 | - if (! $negate) { |
|
| 140 | + if (!$negate) { |
|
| 141 | 141 | return $value; |
| 142 | 142 | } |
| 143 | 143 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $dir = \dirname($file); |
| 137 | 137 | |
| 138 | 138 | // directory does not exist |
| 139 | - if (! is_dir($dir)) { |
|
| 139 | + if (!is_dir($dir)) { |
|
| 140 | 140 | // FIXME: create the dir automatically? |
| 141 | 141 | throw new CompilerException( |
| 142 | 142 | sprintf('The directory "%s" does not exist. Cannot save the source map.', $dir) |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | */ |
| 237 | 237 | public function generateMappings() |
| 238 | 238 | { |
| 239 | - if (! \count($this->mappings)) { |
|
| 239 | + if (!\count($this->mappings)) { |
|
| 240 | 240 | return ''; |
| 241 | 241 | } |
| 242 | 242 | |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | { |
| 340 | 340 | $slash = ($addEndSlash) ? '/' : ''; |
| 341 | 341 | |
| 342 | - if (! empty($path)) { |
|
| 342 | + if (!empty($path)) { |
|
| 343 | 343 | $path = str_replace('\\', '/', $path); |
| 344 | 344 | $path = rtrim($path, '/') . $slash; |
| 345 | 345 | } |
@@ -152,11 +152,11 @@ discard block |
||
| 152 | 152 | public function offsetExists($offset) |
| 153 | 153 | { |
| 154 | 154 | if ($offset === -3) { |
| 155 | - return ! \is_null($this->sourceColumn); |
|
| 155 | + return !\is_null($this->sourceColumn); |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | if ($offset === -2) { |
| 159 | - return ! \is_null($this->sourceLine); |
|
| 159 | + return !\is_null($this->sourceLine); |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | if ( |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | */ |
| 241 | 241 | public function unitless() |
| 242 | 242 | { |
| 243 | - return ! array_sum($this->units); |
|
| 243 | + return !array_sum($this->units); |
|
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | /** |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | { |
| 309 | 309 | $dimension = round($this->dimension, self::PRECISION); |
| 310 | 310 | |
| 311 | - $units = array_filter($this->units, function ($unitSize) { |
|
| 311 | + $units = array_filter($this->units, function($unitSize) { |
|
| 312 | 312 | return $unitSize; |
| 313 | 313 | }); |
| 314 | 314 | |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | $this->normalizeUnits($dimension, $units); |
| 320 | 320 | |
| 321 | 321 | $dimension = round($dimension, self::PRECISION); |
| 322 | - $units = array_filter($units, function ($unitSize) { |
|
| 322 | + $units = array_filter($units, function($unitSize) { |
|
| 323 | 323 | return $unitSize; |
| 324 | 324 | }); |
| 325 | 325 | } |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | $units = []; |
| 361 | 361 | |
| 362 | 362 | foreach ($this->units as $unit => $exp) { |
| 363 | - if (! $baseUnit) { |
|
| 363 | + if (!$baseUnit) { |
|
| 364 | 364 | $baseUnit = $this->findBaseUnit($unit); |
| 365 | 365 | } |
| 366 | 366 | |
@@ -6,33 +6,33 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitb8266408d82c92820c2131f83fb7eb6e |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'S' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'ScssPhp\\ScssPhp\\' => 16, |
| 13 | 13 | 'SCSS\\Tests\\' => 11, |
| 14 | 14 | 'SCSS\\' => 5, |
| 15 | 15 | ), |
| 16 | 16 | ); |
| 17 | 17 | |
| 18 | - public static $prefixDirsPsr4 = array ( |
|
| 18 | + public static $prefixDirsPsr4 = array( |
|
| 19 | 19 | 'ScssPhp\\ScssPhp\\' => |
| 20 | - array ( |
|
| 20 | + array( |
|
| 21 | 21 | 0 => __DIR__ . '/..' . '/scssphp/scssphp/src', |
| 22 | 22 | ), |
| 23 | 23 | 'SCSS\\Tests\\' => |
| 24 | - array ( |
|
| 24 | + array( |
|
| 25 | 25 | 0 => __DIR__ . '/..' . '/mediawiki/scss/tests/phpunit', |
| 26 | 26 | ), |
| 27 | 27 | 'SCSS\\' => |
| 28 | - array ( |
|
| 28 | + array( |
|
| 29 | 29 | 0 => __DIR__ . '/..' . '/mediawiki/scss/src', |
| 30 | 30 | ), |
| 31 | 31 | ); |
| 32 | 32 | |
| 33 | 33 | public static function getInitializer(ClassLoader $loader) |
| 34 | 34 | { |
| 35 | - return \Closure::bind(function () use ($loader) { |
|
| 35 | + return \Closure::bind(function() use ($loader) { |
|
| 36 | 36 | $loader->prefixLengthsPsr4 = ComposerStaticInitb8266408d82c92820c2131f83fb7eb6e::$prefixLengthsPsr4; |
| 37 | 37 | $loader->prefixDirsPsr4 = ComposerStaticInitb8266408d82c92820c2131f83fb7eb6e::$prefixDirsPsr4; |
| 38 | 38 | |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | return false; |
| 343 | 343 | } |
| 344 | 344 | if (null !== $this->apcuPrefix) { |
| 345 | - $file = apcu_fetch($this->apcuPrefix.$class, $hit); |
|
| 345 | + $file = apcu_fetch($this->apcuPrefix . $class, $hit); |
|
| 346 | 346 | if ($hit) { |
| 347 | 347 | return $file; |
| 348 | 348 | } |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | if (null !== $this->apcuPrefix) { |
| 359 | - apcu_add($this->apcuPrefix.$class, $file); |
|
| 359 | + apcu_add($this->apcuPrefix . $class, $file); |
|
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | if (false === $file) { |