| @@ -15,10 +15,10 @@ | ||
| 15 | 15 | /** | 
| 16 | 16 | * Argument types. | 
| 17 | 17 | */ | 
| 18 | - const CONSTANT = 'constant'; //Scalar constant and not variable. | |
| 19 | - const VARIABLE = 'variable'; //PHP variable | |
| 18 | + const CONSTANT = 'constant'; //Scalar constant and not variable. | |
| 19 | + const VARIABLE = 'variable'; //PHP variable | |
| 20 | 20 | const EXPRESSION = 'expression'; //PHP code (expression). | 
| 21 | - const STRING = 'string'; //Simple scalar string, can be fetched using stringValue(). | |
| 21 | + const STRING = 'string'; //Simple scalar string, can be fetched using stringValue(). | |
| 22 | 22 | |
| 23 | 23 | /** | 
| 24 | 24 | * @var int | 
| @@ -146,7 +146,7 @@ | ||
| 146 | 146 | */ | 
| 147 | 147 | protected function classReflection($class) | 
| 148 | 148 |      { | 
| 149 | -        $loader = function ($class) { | |
| 149 | +        $loader = function($class) { | |
| 150 | 150 |              throw new LocatorException("Class '{$class}' can not be loaded."); | 
| 151 | 151 | }; | 
| 152 | 152 | |
| @@ -150,7 +150,7 @@ | ||
| 150 | 150 | */ | 
| 151 | 151 | public function query(array $query = []) | 
| 152 | 152 |      { | 
| 153 | -        array_walk_recursive($query, function (&$value) { | |
| 153 | +        array_walk_recursive($query, function(&$value) { | |
| 154 | 154 |              if ($value instanceof \DateTime) { | 
| 155 | 155 | //MongoDate is always UTC, which is good :) | 
| 156 | 156 | $value = new \MongoDate($value->getTimestamp()); | 
| @@ -318,7 +318,7 @@ discard block | ||
| 318 | 318 | */ | 
| 319 | 319 | private function onWrapper() | 
| 320 | 320 |      { | 
| 321 | -        return function ($parameter) { | |
| 321 | +        return function($parameter) { | |
| 322 | 322 |              if ($parameter instanceof FragmentInterface) { | 
| 323 | 323 | return $parameter; | 
| 324 | 324 | } | 
| @@ -334,7 +334,7 @@ discard block | ||
| 334 | 334 | */ | 
| 335 | 335 | private function whereWrapper() | 
| 336 | 336 |      { | 
| 337 | -        return function ($parameter) { | |
| 337 | +        return function($parameter) { | |
| 338 | 338 |              if ($parameter instanceof FragmentInterface) { | 
| 339 | 339 | //We are only not creating bindings for plan fragments | 
| 340 | 340 |                  if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) { | 
| @@ -419,7 +419,7 @@ | ||
| 419 | 419 | */ | 
| 420 | 420 | private function havingWrapper() | 
| 421 | 421 |      { | 
| 422 | -        return function ($parameter) { | |
| 422 | +        return function($parameter) { | |
| 423 | 423 |              if ($parameter instanceof FragmentInterface) { | 
| 424 | 424 | //We are only not creating bindings for plan fragments | 
| 425 | 425 |                  if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) { | 
| @@ -419,7 +419,7 @@ | ||
| 419 | 419 | */ | 
| 420 | 420 | private function havingWrapper() | 
| 421 | 421 |      { | 
| 422 | -        return function ($parameter) { | |
| 422 | +        return function($parameter) { | |
| 423 | 423 |              if ($parameter instanceof FragmentInterface) { | 
| 424 | 424 | //We are only not creating bindings for plan fragments | 
| 425 | 425 |                  if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) { | 
| @@ -32,7 +32,7 @@ | ||
| 32 | 32 | $value = ''; | 
| 33 | 33 | } | 
| 34 | 34 | |
| 35 | - $replaces[$prefix . $key . $postfix] = $value; | |
| 35 | + $replaces[$prefix.$key.$postfix] = $value; | |
| 36 | 36 | } | 
| 37 | 37 | |
| 38 | 38 | return strtr($string, $replaces); | 
| @@ -63,7 +63,7 @@ discard block | ||
| 63 | 63 | } | 
| 64 | 64 | |
| 65 | 65 |          foreach (array_reverse($directoryChain) as $directory) { | 
| 66 | -            if (!mkdir($baseDirectory = $baseDirectory . '/' . $directory)) { | |
| 66 | +            if (!mkdir($baseDirectory = $baseDirectory.'/'.$directory)) { | |
| 67 | 67 | return false; | 
| 68 | 68 | } | 
| 69 | 69 | |
| @@ -348,7 +348,7 @@ discard block | ||
| 348 | 348 | |
| 349 | 349 |          if ($extension) { | 
| 350 | 350 | //I should find more original way of doing that | 
| 351 | - rename($filename, $filename = $filename . '.' . $extension); | |
| 351 | + rename($filename, $filename = $filename.'.'.$extension); | |
| 352 | 352 | $this->destruct[] = $filename; | 
| 353 | 353 | } | 
| 354 | 354 | |
| @@ -363,7 +363,7 @@ discard block | ||
| 363 | 363 |          $path = str_replace('\\', '/', $path); | 
| 364 | 364 | |
| 365 | 365 | //Potentially open links and ../ type directories? | 
| 366 | -        return rtrim(preg_replace('/\/+/', '/', $path), '/') . ($directory ? '/' : ''); | |
| 366 | +        return rtrim(preg_replace('/\/+/', '/', $path), '/').($directory ? '/' : ''); | |
| 367 | 367 | } | 
| 368 | 368 | |
| 369 | 369 | /** | 
| @@ -394,7 +394,7 @@ discard block | ||
| 394 | 394 | $relative = array_pad($relative, $padLength, '..'); | 
| 395 | 395 | break; | 
| 396 | 396 |                  } else { | 
| 397 | - $relative[0] = './' . $relative[0]; | |
| 397 | + $relative[0] = './'.$relative[0]; | |
| 398 | 398 | } | 
| 399 | 399 | } | 
| 400 | 400 | } | 
| @@ -222,7 +222,7 @@ discard block | ||
| 222 | 222 |      { | 
| 223 | 223 | self::register(); | 
| 224 | 224 | |
| 225 | - $uri = 'spiral://' . spl_object_hash($stream); | |
| 225 | + $uri = 'spiral://'.spl_object_hash($stream); | |
| 226 | 226 | self::$uris[$uri] = $stream; | 
| 227 | 227 | |
| 228 | 228 | return $uri; | 
| @@ -273,7 +273,7 @@ discard block | ||
| 273 | 273 | public static function releaseUri($uri) | 
| 274 | 274 |      { | 
| 275 | 275 |          if ($uri instanceof StreamInterface) { | 
| 276 | - $uri = 'spiral://' . spl_object_hash($uri); | |
| 276 | + $uri = 'spiral://'.spl_object_hash($uri); | |
| 277 | 277 | } | 
| 278 | 278 | |
| 279 | 279 | unset(self::$uris[$uri]); |