Completed
Push — master ( c94f7b...8dc20e )
by Brandon
05:24
created
app/Http/Controllers/Auth/RegisterController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
     protected function create(array $data)
64 64
     {
65 65
         return User::create([
66
-            'name' => $data['name'],
67
-            'email' => $data['email'],
68
-            'password' => bcrypt($data['password']),
66
+            'name' => $data[ 'name' ],
67
+            'email' => $data[ 'email' ],
68
+            'password' => bcrypt($data[ 'password' ]),
69 69
         ]);
70 70
     }
71 71
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function __construct()
36 36
     {
37
-        $this->middleware('guest', ['except' => 'logout']);
37
+        $this->middleware('guest', [ 'except' => 'logout' ]);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected function unauthenticated($request, AuthenticationException $exception)
58 58
     {
59 59
         if ($request->expectsJson()) {
60
-            return response()->json(['error' => 'Unauthenticated.'], 401);
60
+            return response()->json([ 'error' => 'Unauthenticated.' ], 401);
61 61
         }
62 62
 
63 63
         return redirect()->guest(route('login'));
Please login to merge, or discard this patch.
app/Notifications/InvoicePaid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function via($notifiable)
31 31
     {
32
-        return ['nexmo'];
32
+        return [ 'nexmo' ];
33 33
     }
34 34
 
35 35
     /**
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         });
30 30
 
31 31
         Validator::replacer('phone', function($message, $attribute, $rule, $parameters) {
32
-            return str_replace(':attribute',$attribute, ':attribute is invalid phone number');
32
+            return str_replace(':attribute', $attribute, ':attribute is invalid phone number');
33 33
         });
34 34
     }
35 35
 
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $user = User::findOrFail($id);
91 91
         $user->password = "";
92 92
 
93
-        return view('user.show', ['user' => $user]);
93
+        return view('user.show', [ 'user' => $user ]);
94 94
     }
95 95
 
96 96
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $user = User::findOrFail($id);
106 106
         $user->password = "";
107 107
 
108
-        return view('user.edit', ['user' => $user]);
108
+        return view('user.edit', [ 'user' => $user ]);
109 109
     }
110 110
 
111 111
     /**
@@ -179,6 +179,6 @@  discard block
 block discarded – undo
179 179
         $user = User::findOrFail($id);
180 180
         $user->password = "";
181 181
         
182
-        return view('user.remove', ['user' => $user]);
182
+        return view('user.remove', [ 'user' => $user ]);
183 183
     }
184 184
 }
Please login to merge, or discard this patch.
app/DataTables/UsersDataTable.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@  discard block
 block discarded – undo
21 21
             ->addAction()
22 22
             ->editColumn('role', function(User $user) {
23 23
                     $role_en = array(0 => "Registered", 1 => "User", 2 => "Manager", 3 => "Admin");
24
-                    return $role_en[$user->role].' ('.$user->role.')';})
25
-            ->setRowClass(function ($user) {
24
+                    return $role_en[ $user->role ].' ('.$user->role.')'; })
25
+            ->setRowClass(function($user) {
26 26
                     return $user->trashed() ? 'alert-danger' : "";
27 27
             })
28 28
             ->setRowData([
29 29
                     'data-id' => function($user) {
30
-                        return 'row-' . $user->id;
30
+                        return 'row-'.$user->id;
31 31
                     },
32 32
                     'data-name' => function($user) {
33
-                        return 'row-' . $user->name;
33
+                        return 'row-'.$user->name;
34 34
                     },
35 35
             ]);
36 36
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                     //->addAction(['width' => '160px'])
61 61
                     ->parameters([
62 62
                         'dom'     => 'Bfrtip',
63
-                        'order'   => [[0, 'asc']],
63
+                        'order'   => [ [ 0, 'asc' ] ],
64 64
                         'buttons' => [
65 65
                             'create',
66 66
                             'export',
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             'role',
91 91
             'created_at',
92 92
             'updated_at',
93
-            ['name' => 'action', 'data' => 'action', 'title' => 'Actions', 'render' => null, 'searchable' => false, 'orderable' => false, 'exportable' => false, 'printable' => true, 'footer' => ''],
93
+            [ 'name' => 'action', 'data' => 'action', 'title' => 'Actions', 'render' => null, 'searchable' => false, 'orderable' => false, 'exportable' => false, 'printable' => true, 'footer' => '' ],
94 94
         ];
95 95
     }
96 96
 
@@ -101,6 +101,6 @@  discard block
 block discarded – undo
101 101
      */
102 102
     protected function filename()
103 103
     {
104
-        return 'users_' . time();
104
+        return 'users_'.time();
105 105
     }
106 106
 }
Please login to merge, or discard this patch.