Skip to content

Commit 0959bb3

Browse files
committed
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
1 parent d1122eb commit 0959bb3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/Http/Middleware/CheckIsUserActivated.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function handle($request, Closure $next)
3939
'welcome',
4040
];
4141

42-
if (!in_array($currentRoute, $routesAllowed)) {
42+
if (! in_array($currentRoute, $routesAllowed)) {
4343
if ($user && $user->activated != 1) {
4444
Log::info('Non-activated user attempted to visit '.$currentRoute.'. ', [$user]);
4545

@@ -72,7 +72,7 @@ public function handle($request, Closure $next)
7272
return redirect('home');
7373
}
7474

75-
if (!$user) {
75+
if (! $user) {
7676
Log::info('Non registered visit to '.$currentRoute.'. ');
7777

7878
return redirect()->route('welcome');

app/Logic/Macros/HtmlMacros.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
return $link;
2424
});
2525

26-
/**
26+
/*
2727
* Render an icon with an anchor tag around it.
2828
*
2929
* @var string url
@@ -44,7 +44,7 @@
4444
return $link;
4545
});
4646

47-
/**
47+
/*
4848
* Render an button with an icon with an anchor tag around it.
4949
*
5050
* @var string url
@@ -65,7 +65,7 @@
6565
return $link;
6666
});
6767

68-
/**
68+
/*
6969
* Show Username.
7070
*
7171
* @return string

0 commit comments

Comments
 (0)