Completed
Push — develop ( efca22...989a9a )
by
unknown
06:29
created
module/Core/src/Core/Controller/Plugin/PaginationBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         }
79 79
 
80 80
         if (!is_array($stack)) {
81
-            throw new \InvalidArgumentException('Expected argument to be of type array, but received ' . gettype($stack));
81
+            throw new \InvalidArgumentException('Expected argument to be of type array, but received '.gettype($stack));
82 82
         }
83 83
 
84 84
         $stack = array_intersect_key($stack, ['params' => true, 'form' => true, 'paginator' => true]);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      *
148 148
      * @return self
149 149
      */
150
-    public function params($namespace, $defaults = [ 'page' => 1 ])
150
+    public function params($namespace, $defaults = ['page' => 1])
151 151
     {
152 152
         $this->stack['params'] = [$namespace, $defaults];
153 153
         return $this;
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                         $queryArray[$match['name']][$v] = 1;
243 243
                     }
244 244
                 } else {
245
-                    $queryArray[ $match[ 'name' ] ] = $value;
245
+                    $queryArray[$match['name']] = $value;
246 246
                 }
247 247
                 unset($queryArray[$key]);
248 248
             }
Please login to merge, or discard this patch.