@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | foreach ($array as $values) { |
52 | 52 | if ($values instanceof Collection) { |
53 | 53 | $values = $values->all(); |
54 | - } elseif (! is_array($values)) { |
|
54 | + } elseif (!is_array($values)) { |
|
55 | 55 | continue; |
56 | 56 | } |
57 | 57 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | $results = []; |
112 | 112 | |
113 | 113 | foreach ($array as $key => $value) { |
114 | - if (is_array($value) && ! empty($value)) { |
|
114 | + if (is_array($value) && !empty($value)) { |
|
115 | 115 | $results = array_merge($results, static::dot($value, $prepend.$key.'.')); |
116 | 116 | } else { |
117 | 117 | $results[$prepend.$key] = $value; |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | foreach ($array as $item) { |
212 | 212 | $item = $item instanceof Collection ? $item->all() : $item; |
213 | 213 | |
214 | - if (! is_array($item)) { |
|
214 | + if (!is_array($item)) { |
|
215 | 215 | $result[] = $item; |
216 | 216 | } elseif ($depth === 1) { |
217 | 217 | $result = array_merge($result, array_values($item)); |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | */ |
278 | 278 | public static function get($array, $key, $default = null) |
279 | 279 | { |
280 | - if (! static::accessible($array)) { |
|
280 | + if (!static::accessible($array)) { |
|
281 | 281 | return value($default); |
282 | 282 | } |
283 | 283 | |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | |
320 | 320 | $keys = (array) $keys; |
321 | 321 | |
322 | - if (! $array) { |
|
322 | + if (!$array) { |
|
323 | 323 | return false; |
324 | 324 | } |
325 | 325 | |
@@ -525,7 +525,7 @@ discard block |
||
525 | 525 | // If the key doesn't exist at this depth, we will just create an empty array |
526 | 526 | // to hold the next value, allowing us to create the arrays to hold final |
527 | 527 | // values at the correct depth. Then we'll keep digging into the array. |
528 | - if (! isset($array[$key]) || ! is_array($array[$key])) { |
|
528 | + if (!isset($array[$key]) || !is_array($array[$key])) { |
|
529 | 529 | $array[$key] = []; |
530 | 530 | } |
531 | 531 | |
@@ -551,7 +551,7 @@ discard block |
||
551 | 551 | } else { |
552 | 552 | srand($seed); |
553 | 553 | |
554 | - usort($array, function () { |
|
554 | + usort($array, function() { |
|
555 | 555 | return rand(-1, 1); |
556 | 556 | }); |
557 | 557 | } |
@@ -629,6 +629,6 @@ discard block |
||
629 | 629 | return []; |
630 | 630 | } |
631 | 631 | |
632 | - return ! is_array($value) ? [$value] : $value; |
|
632 | + return !is_array($value) ? [$value] : $value; |
|
633 | 633 | } |
634 | 634 | } |
635 | 635 | \ No newline at end of file |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $resolved->validate(); |
45 | 45 | }); |
46 | 46 | |
47 | - $this->app->resolving(function (FormRequest $request, $app) { |
|
47 | + $this->app->resolving(function(FormRequest $request, $app) { |
|
48 | 48 | $this->initializeRequest($request, $app['request']); |
49 | 49 | |
50 | 50 | $request->setContainer($app)->setRedirector($app->make(Redirector::class)); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | }); |
91 | 91 | |
92 | 92 | FormRequest::macro('hasInvalidSignature', function() { |
93 | - return ! URL::hasValidSignature($this ?? URL::getRequest()); |
|
93 | + return !URL::hasValidSignature($this ?? URL::getRequest()); |
|
94 | 94 | }); |
95 | 95 | |
96 | 96 | FormRequest::macro('hasValidParameterSignature', function(array $parameters = []) { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | }); |
99 | 99 | |
100 | 100 | FormRequest::macro('hasInvalidParameterSignature', function(array $parameters = []) { |
101 | - return ! URL::hasValidParameterSignature($this ?? URL::getRequest(), $parameters); |
|
101 | + return !URL::hasValidParameterSignature($this ?? URL::getRequest(), $parameters); |
|
102 | 102 | }); |
103 | 103 | } |
104 | 104 |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | return true; |
227 | 227 | } |
228 | 228 | |
229 | - foreach($parameters as $parameter) { |
|
229 | + foreach ($parameters as $parameter) { |
|
230 | 230 | // if the request has the parameter or |
231 | 231 | // the route has the parameter we check the signature |
232 | 232 | if ($request->has($parameter)) { |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | $route = $request->route($parameter); |
237 | 237 | |
238 | - if($route instanceof \Illuminate\Routing\Route && $route->hasParameter($parameter)) { |
|
238 | + if ($route instanceof \Illuminate\Routing\Route && $route->hasParameter($parameter)) { |
|
239 | 239 | return $this->hasValidSignature($request); |
240 | 240 | } |
241 | 241 |