@@ -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 | |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | * @see AbstractWhere |
| 107 | 107 | * @param string|mixed $identifier Column or expression. |
| 108 | 108 | * @param mixed $variousA Operator or value. |
| 109 | - * @param mixed $variousB Value, if operator specified. |
|
| 109 | + * @param Parameter $variousB Value, if operator specified. |
|
| 110 | 110 | * @param mixed $variousC Required only in between statements. |
| 111 | 111 | * @return $this |
| 112 | 112 | * @throws BuilderException |
@@ -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]); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | if (preg_match_all('/ node:attributes(?:=\"([^\'"]+)\")?/i', $content, $matches)) { |
| 25 | 25 | //We have to sort from longest to shortest |
| 26 | - uasort($matches[0], function ($replaceA, $replaceB) { |
|
| 26 | + uasort($matches[0], function($replaceA, $replaceB) { |
|
| 27 | 27 | return strlen($replaceB) - strlen($replaceA); |
| 28 | 28 | }); |
| 29 | 29 | |
@@ -37,11 +37,11 @@ discard block |
||
| 37 | 37 | continue; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - $inject[$name] = $name . '="' . $value . '"'; |
|
| 40 | + $inject[$name] = $name.'="'.$value.'"'; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | //Injecting |
| 44 | - $content = str_replace($replace, $inject ? ' ' . join(' ', $inject) : '', $content); |
|
| 44 | + $content = str_replace($replace, $inject ? ' '.join(' ', $inject) : '', $content); |
|
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |
@@ -136,9 +136,9 @@ |
||
| 136 | 136 | */ |
| 137 | 137 | protected function createPlaceholder($name, &$blockID) |
| 138 | 138 | { |
| 139 | - $blockID = $name . '-' . $this->supervisor->uniquePlaceholder(); |
|
| 139 | + $blockID = $name.'-'.$this->supervisor->uniquePlaceholder(); |
|
| 140 | 140 | |
| 141 | 141 | //Short block declaration syntax |
| 142 | - return '${' . $blockID . '}'; |
|
| 142 | + return '${'.$blockID.'}'; |
|
| 143 | 143 | } |
| 144 | 144 | } |
| 145 | 145 | \ No newline at end of file |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | $prefix = isset($attributes['namespace']) |
| 151 | - ? $attributes['namespace'] . ':' |
|
| 151 | + ? $attributes['namespace'].':' |
|
| 152 | 152 | : $attributes['prefix']; |
| 153 | 153 | |
| 154 | 154 | return new Prefixer($prefix, $path); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | continue; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - $pattern = '/^' . str_replace('*', '.+', $pattern) . '/i'; |
|
| 83 | + $pattern = '/^'.str_replace('*', '.+', $pattern).'/i'; |
|
| 84 | 84 | |
| 85 | 85 | if (preg_match($pattern, $name)) { |
| 86 | 86 | unset($result[$name]); |