@@ -245,7 +245,7 @@ |
||
| 245 | 245 | */ |
| 246 | 246 | abstract protected function getSource( |
| 247 | 247 | $location, |
| 248 | - Templater &$templater = null, |
|
| 248 | + Templater & $templater = null, |
|
| 249 | 249 | array $token = [] |
| 250 | 250 | ); |
| 251 | 251 | |
@@ -221,7 +221,7 @@ |
||
| 221 | 221 | $parent = new \ReflectionClass($parent); |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | - $this->loader->enable()->events()->listen('notFound', $listener = function (Event $event) { |
|
| 224 | + $this->loader->enable()->events()->listen('notFound', $listener = function(Event $event) { |
|
| 225 | 225 | //We want exception if class can not be loaded |
| 226 | 226 | throw new TokenizerException("Class {$event->context()['class']} can not be loaded."); |
| 227 | 227 | }); |
@@ -104,8 +104,8 @@ |
||
| 104 | 104 | */ |
| 105 | 105 | protected $options = [ |
| 106 | 106 | 'names' => true, //Interpolate names |
| 107 | - 'emptyConditions' => [], //If met - validator will stop field validation on empty value |
|
| 108 | - 'checkers' => [], //Set of validation checker (to dedicate validation) |
|
| 107 | + 'emptyConditions' => [], //If met - validator will stop field validation on empty value |
|
| 108 | + 'checkers' => [], //Set of validation checker (to dedicate validation) |
|
| 109 | 109 | 'aliases' => [] //Set of validation rule aliases |
| 110 | 110 | ]; |
| 111 | 111 | |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | |
| 64 | 64 | $route = $this; |
| 65 | 65 | |
| 66 | - return function () use ($container, $route) { |
|
| 66 | + return function() use ($container, $route) { |
|
| 67 | 67 | list($controller, $action) = explode(self::SEPARATOR, $route->target); |
| 68 | 68 | |
| 69 | 69 | if ($action == self::DYNAMIC_ACTION) { |
@@ -343,15 +343,14 @@ |
||
| 343 | 343 | */ |
| 344 | 344 | private function whereWrapper() |
| 345 | 345 | { |
| 346 | - return function ($parameter) { |
|
| 346 | + return function($parameter) { |
|
| 347 | 347 | if (!$parameter instanceof ParameterInterface && is_array($parameter)) { |
| 348 | 348 | //is_array condition can be removed (still check that parameter not instance of |
| 349 | 349 | // sqlfragment, in this case we can wrap every parameter using our object |
| 350 | 350 | $parameter = new Parameter($parameter); |
| 351 | 351 | } |
| 352 | 352 | |
| 353 | - if |
|
| 354 | - ( |
|
| 353 | + if ( |
|
| 355 | 354 | $parameter instanceof SQLFragmentInterface |
| 356 | 355 | && !$parameter instanceof ParameterInterface |
| 357 | 356 | && !$parameter instanceof QueryBuilder |