@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * For the full copyright and license information, please view the LICENSE |
5 | 5 | * file that was distributed with this source code. |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace App\GraphQL\Types; |
10 | 10 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | $query = $this->extendQuery($query, $args); |
92 | 92 | |
93 | - $this->whenExists($args, 'slug', function (string $slug) use ($query) { |
|
93 | + $this->whenExists($args, 'slug', function(string $slug) use ($query) { |
|
94 | 94 | return $query->where('slug', $slug); |
95 | 95 | }); |
96 | 96 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * For the full copyright and license information, please view the LICENSE |
5 | 5 | * file that was distributed with this source code. |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace App\GraphQL\Feature; |
10 | 10 |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * For the full copyright and license information, please view the LICENSE |
5 | 5 | * file that was distributed with this source code. |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace App\GraphQL\Feature; |
10 | 10 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | $this->addArgument('id', Type::listOf(Type::id())); |
28 | 28 | |
29 | - $this->addQueryFor('id', function (Builder $builder, array $ids) { |
|
29 | + $this->addQueryFor('id', function(Builder $builder, array $ids) { |
|
30 | 30 | return $builder->whereIn('id', $ids); |
31 | 31 | }); |
32 | 32 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * For the full copyright and license information, please view the LICENSE |
5 | 5 | * file that was distributed with this source code. |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace App\GraphQL\Feature\Kernel; |
10 | 10 |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * For the full copyright and license information, please view the LICENSE |
5 | 5 | * file that was distributed with this source code. |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace App\GraphQL\Feature\Kernel; |
10 | 10 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | { |
46 | 46 | $this->args[$name] = [ |
47 | 47 | 'type' => $type, |
48 | - 'description' => $description ?? Str::ucfirst($name) . ' field of ' . get_class($this), |
|
48 | + 'description' => $description ?? Str::ucfirst($name).' field of '.get_class($this), |
|
49 | 49 | ]; |
50 | 50 | |
51 | 51 | return $this; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | public function addQueryFor(string $argument, \Closure $resolveQuery) |
82 | 82 | { |
83 | 83 | $this->queries[] = function(Builder $builder, array $args = []) use ($argument, $resolveQuery) { |
84 | - return $this->whenExists($args, $argument, function ($value) use ($builder, $resolveQuery) { |
|
84 | + return $this->whenExists($args, $argument, function($value) use ($builder, $resolveQuery) { |
|
85 | 85 | return $resolveQuery($builder, $value); |
86 | 86 | }) ?? $builder; |
87 | 87 | }; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | protected function bootTraits(): void |
104 | 104 | { |
105 | 105 | foreach (class_uses_recursive(static::class) as $trait) { |
106 | - if (method_exists($this, $method = 'boot' . class_basename($trait))) { |
|
106 | + if (method_exists($this, $method = 'boot'.class_basename($trait))) { |
|
107 | 107 | call_user_func([$this, $method]); |
108 | 108 | } |
109 | 109 | } |
@@ -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\Feature\Enum; |
11 | 11 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | return new EnumType([ |
55 | 55 | 'name' => $shortName, |
56 | - 'description' => $shortName . ' type', |
|
56 | + 'description' => $shortName.' type', |
|
57 | 57 | 'values' => $this->getGraphQLValues($enum, $shortName), |
58 | 58 | ]); |
59 | 59 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function toGraphQL(string $enum): EnumType |
67 | 67 | { |
68 | - if (! array_key_exists($enum, $this->enums)) { |
|
68 | + if (!array_key_exists($enum, $this->enums)) { |
|
69 | 69 | $shortName = (new \ReflectionClass($enum))->getShortName(); |
70 | 70 | |
71 | 71 | $this->enums[$enum] = $this->createGraphQLEnumType($enum, $shortName); |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * For the full copyright and license information, please view the LICENSE |
5 | 5 | * file that was distributed with this source code. |
6 | 6 | */ |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace App\GraphQL\Feature; |
10 | 10 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | { |
34 | 34 | $this->transfer = new EnumTransfer(); |
35 | 35 | |
36 | - $this->addFieldsWrapper(function (array $arguments) { |
|
36 | + $this->addFieldsWrapper(function(array $arguments) { |
|
37 | 37 | foreach ($arguments as $key => $data) { |
38 | 38 | yield $key => $this->configs($data); |
39 | 39 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | private function configs(array $config): array |
49 | 49 | { |
50 | - if (! $this->isGraphQLType($config)) { |
|
50 | + if (!$this->isGraphQLType($config)) { |
|
51 | 51 | $config['type'] = $this->wrapType($config['type']); |
52 | 52 | } |
53 | 53 |
@@ -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\Views\Composers; |
12 | 12 |