@@ -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()); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | { |
| 24 | 24 | if (preg_match_all('/ node:attributes(?:=\"([^\'"]+)\")?/i', $this->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 | |
@@ -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) { |
@@ -429,7 +429,7 @@ |
||
| 429 | 429 | $class, |
| 430 | 430 | array $parameters, |
| 431 | 431 | $context = null, |
| 432 | - \ReflectionClass &$reflection = null |
|
| 432 | + \ReflectionClass & $reflection = null |
|
| 433 | 433 | ) { |
| 434 | 434 | try { |
| 435 | 435 | $reflection = new \ReflectionClass($class); |
@@ -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) { |
@@ -135,9 +135,9 @@ |
||
| 135 | 135 | |
| 136 | 136 | $vector = $this->createIV(openssl_cipher_iv_length($this->cipher)); |
| 137 | 137 | |
| 138 | - try{ |
|
| 138 | + try { |
|
| 139 | 139 | $serialized = json_encode($data); |
| 140 | - } catch (\ErrorException $e){ |
|
| 140 | + } catch (\ErrorException $e) { |
|
| 141 | 141 | throw new EncrypterException("Unsupported data format", null, $e); |
| 142 | 142 | } |
| 143 | 143 | |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | { |
| 145 | 145 | return preg_replace_callback( |
| 146 | 146 | $this->blockRegex(), |
| 147 | - function ($match) { |
|
| 147 | + function($match) { |
|
| 148 | 148 | if (!isset($this->phpBlocks[$match['id']])) { |
| 149 | 149 | return $match[0]; |
| 150 | 150 | } |