@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * For the full copyright and license information, please view the LICENSE |
| 7 | 7 | * file that was distributed with this source code. |
| 8 | 8 | */ |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace App\Providers; |
| 12 | 12 | |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * For the full copyright and license information, please view the LICENSE |
| 7 | 7 | * file that was distributed with this source code. |
| 8 | 8 | */ |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace App\Providers; |
| 12 | 12 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | private function loadProductionProviders(Repository $repository): void |
| 42 | 42 | { |
| 43 | - if (! $this->app->isLocal()) { |
|
| 43 | + if (!$this->app->isLocal()) { |
|
| 44 | 44 | $providers = (array) $repository->get('app.production_providers', []); |
| 45 | 45 | |
| 46 | 46 | foreach ($providers as $provider) { |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace App\GraphQL\Queries\Support; |
| 11 | 11 | |
@@ -66,11 +66,11 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | switch (true) { |
| 68 | 68 | case isset($args['_after']): |
| 69 | - $builder = $builder->where('id', '>', (int)$args['_after']); |
|
| 69 | + $builder = $builder->where('id', '>', (int) $args['_after']); |
|
| 70 | 70 | break; |
| 71 | 71 | |
| 72 | 72 | case isset($args['_before']): |
| 73 | - $builder = $builder->where('id', '<', (int)$args['_before']); |
|
| 73 | + $builder = $builder->where('id', '<', (int) $args['_before']); |
|
| 74 | 74 | break; |
| 75 | 75 | |
| 76 | 76 | case isset($args['_limit']): |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | private function limit(array $args = []): int |
| 98 | 98 | { |
| 99 | - return max(1, min(1000, (int)$args['_limit'])); |
|
| 99 | + return max(1, min(1000, (int) $args['_limit'])); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | private function checkPageAndLimit($builder, array $args = []) |
| 108 | 108 | { |
| 109 | - $page = max(1, (int)$args['_page']); |
|
| 109 | + $page = max(1, (int) $args['_page']); |
|
| 110 | 110 | |
| 111 | 111 | $builder = $builder->skip(($page - 1) * $this->limit($args)); |
| 112 | 112 | |