@@ -14,7 +14,6 @@ |
||
14 | 14 | use App\GraphQL\Kernel\Paginator; |
15 | 15 | use GraphQL\Type\Definition\Type; |
16 | 16 | use GraphQL\Type\Definition\ListOfType; |
17 | -use Illuminate\Contracts\Support\Arrayable; |
|
18 | 17 | use App\GraphQL\Serializers\ArticleSerializer; |
19 | 18 | |
20 | 19 | /** |
@@ -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\GraphQL\Serializers; |
12 | 12 |
@@ -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\Queries; |
10 | 10 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | { |
46 | 46 | $paginator = PaginatorConfiguration::find($args['query']); |
47 | 47 | if ($paginator === null) { |
48 | - throw new NotFoundHttpException('No info about ' . $args['query'] . ' query'); |
|
48 | + throw new NotFoundHttpException('No info about '.$args['query'].' query'); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | return [ |
@@ -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\Kernel\Paginator; |
10 | 10 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @param string $alias |
83 | 83 | * @return PaginatorConfiguration |
84 | 84 | */ |
85 | - public static function find(string $alias): ?PaginatorConfiguration |
|
85 | + public static function find(string $alias): ? PaginatorConfiguration |
|
86 | 86 | { |
87 | 87 | foreach (self::$configs as $config) { |
88 | 88 | if ($config->getAlias() === $alias) { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | public function getPages(): int |
116 | 116 | { |
117 | - return (int)ceil($this->count / $this->getLimit()); |
|
117 | + return (int) ceil($this->count / $this->getLimit()); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function getSkip(): int |
164 | 164 | { |
165 | - return (int)($this->page - 1) * $this->limit; |
|
165 | + return (int) ($this->page - 1) * $this->limit; |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | * @param null|string $serializer |
225 | 225 | * @return $this|PaginatorConfiguration |
226 | 226 | */ |
227 | - public function use(?string $serializer): PaginatorConfiguration |
|
227 | + public function use(? string $serializer) : PaginatorConfiguration |
|
228 | 228 | { |
229 | 229 | $this->serializer = $serializer; |
230 | 230 | |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $query = clone $this->query; |
251 | 251 | |
252 | 252 | if ($this->limit !== null) { |
253 | - $query = $query->take((int)$this->limit); |
|
253 | + $query = $query->take((int) $this->limit); |
|
254 | 254 | } |
255 | 255 | |
256 | 256 | if ($this->page > 0 && $this->limit !== null) { |
@@ -5,7 +5,7 @@ |
||
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\Kernel; |
11 | 11 |