Completed
Push — master ( 39b3b0...c4e3cd )
by Anton
10:47 queued 05:11
created
source/Spiral/Database/Builders/Prototypes/AbstractWhere.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -343,15 +343,14 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
source/Spiral/Database/Builders/Traits/JoinsTrait.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
      */
317 317
     private function onWrapper()
318 318
     {
319
-        return function ($parameter) {
319
+        return function($parameter) {
320 320
             if (!$parameter instanceof SQLFragmentInterface) {
321 321
                 return new SQLExpression($parameter);
322 322
             }
@@ -332,14 +332,13 @@  discard block
 block discarded – undo
332 332
      */
333 333
     private function whereWrapper()
334 334
     {
335
-        return function ($parameter) {
335
+        return function($parameter) {
336 336
             if (!$parameter instanceof ParameterInterface && is_array($parameter)) {
337 337
                 //Convert every value into parameter
338 338
                 $parameter = new Parameter($parameter);
339 339
             }
340 340
 
341
-            if
342
-            (
341
+            if (
343 342
                 $parameter instanceof SQLFragmentInterface
344 343
                 && !$parameter instanceof ParameterInterface
345 344
                 && !$parameter instanceof QueryBuilder
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/Postgres/PostgresDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
     {
86 86
         $result = parent::prepareParameters($parameters);
87 87
 
88
-        array_walk($result, function (&$value) {
88
+        array_walk($result, function(&$value) {
89 89
             if (is_bool($value)) {
90 90
                 $value = new Parameter($value, \PDO::PARAM_BOOL);
91 91
             }
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/Postgres/Schemas/ColumnSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@
 block discarded – undo
391 391
 
392 392
         $constraints = $this->table->driver()->query(
393 393
             $query,
394
-            [$tableOID, '(' . $this->name . '%', '("' . $this->name . '%',]
394
+            [$tableOID, '(' . $this->name . '%', '("' . $this->name . '%', ]
395 395
         );
396 396
 
397 397
         foreach ($constraints as $constraint) {
Please login to merge, or discard this patch.
source/Spiral/Database/Entities/QueryCompiler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
         if (strpos($key, '(') || strpos($key, ' ')) {
229 229
             return preg_replace_callback('/([a-z][0-9_a-z\.]*\(?)/i',
230
-                function ($identifier) use (&$table) {
230
+                function($identifier) use (&$table) {
231 231
                     $identifier = $identifier[1];
232 232
                     if (substr($identifier, -1) == '(') {
233 233
                         //Function name
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
             return $query;
604 604
         }
605 605
 
606
-        array_walk($parameters, function (&$parameter) {
606
+        array_walk($parameters, function(&$parameter) {
607 607
             return $parameter = self::normalizeParameter($parameter);
608 608
         });
609 609
 
Please login to merge, or discard this patch.
source/Spiral/Http/MiddlewarePipeline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
         ServerRequestInterface $outerRequest,
215 215
         ResponseInterface $outerResponse
216 216
     ) {
217
-        $next = function ($request = null, $response = null) use (
217
+        $next = function($request = null, $response = null) use (
218 218
             $position,
219 219
             $outerRequest,
220 220
             $outerResponse
Please login to merge, or discard this patch.
source/Spiral/Http/Routing/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
source/Spiral/ODM/Document.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@
 block discarded – undo
292 292
     protected function interpolateQuery(array $query)
293 293
     {
294 294
         $fields = $this->fields;
295
-        array_walk_recursive($query, function (&$value) use ($fields) {
295
+        array_walk_recursive($query, function(&$value) use ($fields) {
296 296
             if (strpos($value, 'self::') === 0) {
297 297
                 $value = $this->dotGet(substr($value, 6));
298 298
             }
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/SchemaBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     public function sortedTables()
46 46
     {
47 47
         $tables = $this->tables;
48
-        uasort($tables, function (AbstractTable $tableA, AbstractTable $tableB) {
48
+        uasort($tables, function(AbstractTable $tableA, AbstractTable $tableB) {
49 49
             if (in_array($tableA->getName(), $tableB->getDependencies())) {
50 50
                 return true;
51 51
             }
Please login to merge, or discard this patch.