@@ -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\Console\Commands; |
12 | 12 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function handle(): void |
40 | 40 | { |
41 | - if (! $this->laravel->getProvider(IdeHelperServiceProvider::class)) { |
|
41 | + if (!$this->laravel->getProvider(IdeHelperServiceProvider::class)) { |
|
42 | 42 | $env = $this->laravel->environment(); |
43 | 43 | $this->info(sprintf('Skipped. IdeHelper not registered for %s environment.', $env)); |
44 | 44 |
@@ -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\Models; |
12 | 12 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * @param Authenticatable|User|null $user |
91 | 91 | * @return bool |
92 | 92 | */ |
93 | - public function isAllowedForUser(?Authenticatable $user): bool |
|
93 | + public function isAllowedForUser(? Authenticatable $user) : bool |
|
94 | 94 | { |
95 | 95 | $isAuthor = $user === null ? false : ($this->user->id === $user->getAuthIdentifier()); |
96 | 96 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function getImageUrlAttribute(): string |
108 | 108 | { |
109 | - return static::DEFAULT_IMAGE_PATH . $this->image; |
|
109 | + return static::DEFAULT_IMAGE_PATH.$this->image; |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
@@ -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\Services\ImageUploader; |
11 | 11 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @param int|null $height |
24 | 24 | * @return ImageUploaderInterface |
25 | 25 | */ |
26 | - public function withSize(?int $width, ?int $height): ImageUploaderInterface; |
|
26 | + public function withSize(? int $width, ? int $height) : ImageUploaderInterface; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param \Closure $callback |
@@ -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\Models\Tip; |
12 | 12 |
@@ -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\Models; |
12 | 12 |
@@ -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\Models; |
12 | 12 |
@@ -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 | |
@@ -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); |
@@ -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 @@ |
||
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\Queries; |
12 | 12 |