@@ -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\Commands; |
| 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\Console\Commands; |
| 11 | 11 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | private function getLatestBotArticles(): \Generator |
| 112 | 112 | { |
| 113 | 113 | $bots = Bot::query() |
| 114 | - ->with(['articles' => function (MorphMany $relation) { |
|
| 114 | + ->with(['articles' => function(MorphMany $relation) { |
|
| 115 | 115 | return $relation->latest('published_at')->take(1); |
| 116 | 116 | }]) |
| 117 | 117 | ->get(); |
@@ -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 | |
@@ -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\Policies; |
| 11 | 11 | |
@@ -6,9 +6,9 @@ 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 | -if (! function_exists('asset_ts')) { |
|
| 11 | +if (!function_exists('asset_ts')) { |
|
| 12 | 12 | /** |
| 13 | 13 | * Asset path with timestamp. |
| 14 | 14 | * |
@@ -19,9 +19,9 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | function asset_ts(string $path = '', string $directory = 'dist/'): string |
| 21 | 21 | { |
| 22 | - $link = '/' . $directory . $path; |
|
| 22 | + $link = '/'.$directory.$path; |
|
| 23 | 23 | |
| 24 | - return $link . '?' . ( |
|
| 24 | + return $link.'?'.( |
|
| 25 | 25 | is_file(public_path($link)) |
| 26 | 26 | ? filemtime(public_path($link)) |
| 27 | 27 | : random_int(0, 9999) |
@@ -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\Jobs; |
| 12 | 12 | |
@@ -56,14 +56,14 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function handle(ImageManager $manager, Storage $fs, LoggerInterface $logger): void |
| 58 | 58 | { |
| 59 | - $fulfilled = function (string $path) use ($logger) { |
|
| 59 | + $fulfilled = function(string $path) use ($logger) { |
|
| 60 | 60 | $this->user->avatar = $path; |
| 61 | 61 | $this->user->save(); |
| 62 | 62 | |
| 63 | - $logger->info('Queue: Update avatar for user ' . $this->user->name); |
|
| 63 | + $logger->info('Queue: Update avatar for user '.$this->user->name); |
|
| 64 | 64 | }; |
| 65 | 65 | |
| 66 | - $rejected = function (\Throwable $error) use ($logger) { |
|
| 66 | + $rejected = function(\Throwable $error) use ($logger) { |
|
| 67 | 67 | $logger->error($error); |
| 68 | 68 | }; |
| 69 | 69 | |
@@ -79,6 +79,6 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public static function avatarPathname(): string |
| 81 | 81 | { |
| 82 | - return resource_path('images/avatars/' . random_int(1, 4)); |
|
| 82 | + return resource_path('images/avatars/'.random_int(1, 4)); |
|
| 83 | 83 | } |
| 84 | 84 | } |
@@ -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\Notifications; |
| 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\Views\Composers; |
| 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\Views\Composers; |
| 12 | 12 | |