From 0959bb3b13b1384882b2048328408c2af26cad36 Mon Sep 17 00:00:00 2001 From: Laravel Shift Date: Tue, 29 Sep 2020 01:01:00 +0000 Subject: [PATCH] Adopt Laravel coding style The Laravel framework adopts the PSR-2 coding style with some additions. Laravel apps *should* adopt this coding style as well. However, Shift allows you to customize the adopted coding style by adding your own [PHP CS Fixer][1] `.php_cs` config to your project. You may use [Shift's .php_cs][2] file as a base. [1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer [2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200 --- app/Http/Middleware/CheckIsUserActivated.php | 4 ++-- app/Logic/Macros/HtmlMacros.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Middleware/CheckIsUserActivated.php b/app/Http/Middleware/CheckIsUserActivated.php index be66c1ce9..824c4e529 100755 --- a/app/Http/Middleware/CheckIsUserActivated.php +++ b/app/Http/Middleware/CheckIsUserActivated.php @@ -39,7 +39,7 @@ public function handle($request, Closure $next) 'welcome', ]; - if (!in_array($currentRoute, $routesAllowed)) { + if (! in_array($currentRoute, $routesAllowed)) { if ($user && $user->activated != 1) { Log::info('Non-activated user attempted to visit '.$currentRoute.'. ', [$user]); @@ -72,7 +72,7 @@ public function handle($request, Closure $next) return redirect('home'); } - if (!$user) { + if (! $user) { Log::info('Non registered visit to '.$currentRoute.'. '); return redirect()->route('welcome'); diff --git a/app/Logic/Macros/HtmlMacros.php b/app/Logic/Macros/HtmlMacros.php index 0529bfb1a..262628b0d 100755 --- a/app/Logic/Macros/HtmlMacros.php +++ b/app/Logic/Macros/HtmlMacros.php @@ -23,7 +23,7 @@ return $link; }); -/** +/* * Render an icon with an anchor tag around it. * * @var string url @@ -44,7 +44,7 @@ return $link; }); -/** +/* * Render an button with an icon with an anchor tag around it. * * @var string url @@ -65,7 +65,7 @@ return $link; }); -/** +/* * Show Username. * * @return string