Skip to content

Commit

Permalink
Adopt Laravel coding style
Browse files Browse the repository at this point in the history
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
  • Loading branch information
laravel-shift committed Sep 29, 2020
1 parent d1122eb commit 0959bb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/Http/Middleware/CheckIsUserActivated.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down Expand Up @@ -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');
Expand Down
6 changes: 3 additions & 3 deletions app/Logic/Macros/HtmlMacros.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
return $link;
});

/**
/*
* Render an icon with an anchor tag around it.
*
* @var string url
Expand All @@ -44,7 +44,7 @@
return $link;
});

/**
/*
* Render an button with an icon with an anchor tag around it.
*
* @var string url
Expand All @@ -65,7 +65,7 @@
return $link;
});

/**
/*
* Show Username.
*
* @return string
Expand Down

0 comments on commit 0959bb3

Please sign in to comment.