Passed
Push — master ( f33320...2e8575 )
by Johnny
01:20
created
routes/web.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 Route::get('/logout', ['as' => 'user.logout', 'uses' => 'Auth\LoginController@logout']);
21 21
 
22
-Route::get('/home', function () {
22
+Route::get('/home', function() {
23 23
     return redirect()->route('url_create');
24 24
 })->middleware('auth')->name('home');
25 25
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 Route::group([
30 30
     'prefix' => '/admin',
31 31
     'middleware' => ['auth'],
32
-], function () {
32
+], function() {
33 33
     Route::resource('links', 'Admin\LinksController', [
34 34
         'names' => [
35 35
             'index' => 'admin.links.index',
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 Route::group([
57 57
     'prefix' => '/dashboard',
58 58
     'middleware' => ['auth'],
59
-], function () {
59
+], function() {
60 60
     Route::resource('links', 'UserDashboardController');
61 61
 });
62 62
 
Please login to merge, or discard this patch.
app/Http/Middleware/SecureAdmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     public function handle($request, Closure $next)
31 31
     {
32 32
         // If the auth user is null, redirect to home page
33
-        if (is_null($this->auth->user()) || (! $this->auth->user()->hasRole('Administrator'))) {
33
+        if (is_null($this->auth->user()) || ( ! $this->auth->user()->hasRole('Administrator'))) {
34 34
             abort(404, 'Page not found');
35 35
         }
36 36
 
Please login to merge, or discard this patch.