@@ -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\Kernel; |
| 11 | 11 | |
@@ -27,12 +27,12 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public static function toGraphQL(): EnumType |
| 29 | 29 | { |
| 30 | - if (! array_key_exists(static::class, self::$enums)) { |
|
| 30 | + if (!array_key_exists(static::class, self::$enums)) { |
|
| 31 | 31 | $shortName = (new \ReflectionClass(static::class))->getShortName(); |
| 32 | 32 | |
| 33 | 33 | self::$enums[static::class] = new EnumType([ |
| 34 | 34 | 'name' => $shortName, |
| 35 | - 'description' => $shortName . ' type', |
|
| 35 | + 'description' => $shortName.' type', |
|
| 36 | 36 | 'values' => self::getGraphQLValues($shortName), |
| 37 | 37 | ]); |
| 38 | 38 | } |
@@ -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 | |
@@ -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\Types; |
| 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\GraphQL\Types; |
| 12 | 12 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public static function getName(): string |
| 30 | 30 | { |
| 31 | - if (! isset(self::$names[static::class])) { |
|
| 31 | + if (!isset(self::$names[static::class])) { |
|
| 32 | 32 | $reflection = new \ReflectionClass(static::class); |
| 33 | 33 | |
| 34 | 34 | self::$names[static::class] = Str::replaceLast('Type', '', $reflection->getShortName()); |
@@ -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\GraphQL\Mutations; |
| 12 | 12 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * @return ObjectType|null |
| 43 | 43 | */ |
| 44 | - public function type(): ?ObjectType |
|
| 44 | + public function type(): ? ObjectType |
|
| 45 | 45 | { |
| 46 | 46 | return \GraphQL::type(ArticleType::getName()); |
| 47 | 47 | } |
@@ -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\Exceptions; |
| 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 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | private function registerGuzzleClient(): void |
| 58 | 58 | { |
| 59 | - $this->app->singleton(Guzzle::class, function () { |
|
| 59 | + $this->app->singleton(Guzzle::class, function() { |
|
| 60 | 60 | return new Guzzle(); |
| 61 | 61 | }); |
| 62 | 62 | |
@@ -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 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | public function register(): void |
| 24 | 24 | { |
| 25 | - $this->app->singleton(MarkdownRenderer::class, function () { |
|
| 25 | + $this->app->singleton(MarkdownRenderer::class, function() { |
|
| 26 | 26 | return new MarkdownRenderer(new GithubMarkdown()); |
| 27 | 27 | }); |
| 28 | 28 | |