@@ -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\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\Serializers; |
| 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\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\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 | } |
@@ -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 | |