@@ -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\Services\ImageUploader\Support; |
11 | 11 |
@@ -172,7 +172,7 @@ |
||
172 | 172 | private function removeTemporaryFileOrFail(string $temporaryFilename): bool |
173 | 173 | { |
174 | 174 | if (! $this->removeTemporaryFile($temporaryFilename)) { |
175 | - throw new FileException("Can not remove temporary file ${temporaryFilename}."); |
|
175 | + throw new FileException("Can not remove temporary file ${temporaryfilename}."); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | return true; |
@@ -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\Services\ImageUploader; |
12 | 12 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * @param int|null $height |
67 | 67 | * @return $this|AvatarUploader|ImageUploaderInterface |
68 | 68 | */ |
69 | - public function withSize(?int $width, ?int $height): ImageUploaderInterface |
|
69 | + public function withSize(? int $width, ? int $height) : ImageUploaderInterface |
|
70 | 70 | { |
71 | 71 | [$this->width, $this->height] = [$width, $height]; |
72 | 72 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | private function getStorageFilename(): string |
111 | 111 | { |
112 | - return storage_path(static::TEMP_PATH . '/' . $this->createRandomName()); |
|
112 | + return storage_path(static::TEMP_PATH.'/'.$this->createRandomName()); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | */ |
118 | 118 | private function createRandomName(): string |
119 | 119 | { |
120 | - return md5(random_int(0, PHP_INT_MAX) . microtime()); |
|
120 | + return md5(random_int(0, PHP_INT_MAX).microtime()); |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | $this->fireBefore($image); |
146 | 146 | |
147 | - $image->resize($this->width, null, function (Constraint $constraint) { |
|
147 | + $image->resize($this->width, null, function(Constraint $constraint) { |
|
148 | 148 | $constraint->aspectRatio(); |
149 | 149 | $constraint->upsize(); |
150 | 150 | }); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | */ |
168 | 168 | private function removeTemporaryFileOrFail(string $temporaryFilename): bool |
169 | 169 | { |
170 | - if (! $this->removeTemporaryFile($temporaryFilename)) { |
|
170 | + if (!$this->removeTemporaryFile($temporaryFilename)) { |
|
171 | 171 | throw new FileException("Can not remove temporary file ${temporaryFilename}."); |
172 | 172 | } |
173 | 173 | |
@@ -180,6 +180,6 @@ discard block |
||
180 | 180 | */ |
181 | 181 | private function removeTemporaryFile(string $temporaryFilename): bool |
182 | 182 | { |
183 | - return @unlink($temporaryFilename) || ! is_file($temporaryFilename); |
|
183 | + return @unlink($temporaryFilename) || !is_file($temporaryFilename); |
|
184 | 184 | } |
185 | 185 | } |
@@ -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\Console; |
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 |
@@ -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\Support; |
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\Serializers; |
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\Serializers; |
12 | 12 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public static function map(): \Closure |
45 | 45 | { |
46 | - return function (Model $model) { |
|
46 | + return function(Model $model) { |
|
47 | 47 | return static::serialize($model); |
48 | 48 | }; |
49 | 49 | } |
@@ -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 |