@@ -78,7 +78,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |