@@ -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\Http\Middleware; |
| 12 | 12 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function handle(Request $request, \Closure $next): Response |
| 73 | 73 | { |
| 74 | - if (! $this->session->has(static::PAGE_NAME)) { |
|
| 74 | + if (!$this->session->has(static::PAGE_NAME)) { |
|
| 75 | 75 | $this->session->put(static::PAGE_NAME, '/'); |
| 76 | 76 | } |
| 77 | 77 | |
@@ -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\Http\Middleware; |
| 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\Http\Requests; |
| 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\Http; |
| 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\Http\Controllers; |
| 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\Http\Controllers; |
| 12 | 12 | |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | /** @var Article $article */ |
| 45 | 45 | $article = Article::where('slug', $slug)->firstOrFail(); |
| 46 | 46 | |
| 47 | - if (! $article->isAllowedForUser($guard->user())) { |
|
| 48 | - throw new AccessDeniedHttpException('Article [' . $article->slug . '] are not allowed for view'); |
|
| 47 | + if (!$article->isAllowedForUser($guard->user())) { |
|
| 48 | + throw new AccessDeniedHttpException('Article ['.$article->slug.'] are not allowed for view'); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | return view('page.articles.show', [ |
@@ -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\Http\Controllers\Auth; |
| 12 | 12 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function index(Session $session) |
| 33 | 33 | { |
| 34 | - if (! $session->has('user')) { |
|
| 34 | + if (!$session->has('user')) { |
|
| 35 | 35 | return redirect()->route('home'); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** @var User $user */ |
| 58 | 58 | $user = User::whereEmail($email)->first(); |
| 59 | 59 | |
| 60 | - if (! $user) { |
|
| 60 | + if (!$user) { |
|
| 61 | 61 | throw new NotFoundHttpException('User with target id not found'); |
| 62 | 62 | } |
| 63 | 63 | |
@@ -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\Http\Controllers\Auth; |
| 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\Models; |
| 12 | 12 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $avatar = self::DEFAULT_AVATAR_NAME; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - return self::DEFAULT_AVATAR_PATH . $avatar; |
|
| 63 | + return self::DEFAULT_AVATAR_PATH.$avatar; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |