Completed
Push — master ( ffe767...90fa06 )
by Brandon
02:24
created
app/Http/Controllers/DashboardController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7 5
 class DashboardController extends Controller
8 6
 {
9 7
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7 5
 class HomeController extends Controller
8 6
 {
9 7
     /**
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function about()
35 35
     {
36
-    	return view('home.about');
36
+        return view('home.about');
37 37
     }
38 38
 
39 39
     /**
@@ -43,6 +43,6 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function help()
45 45
     {
46
-    	return view('home.help');
46
+        return view('home.help');
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
app/Mail/OrderShipped.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Illuminate\Bus\Queueable;
6 6
 use Illuminate\Mail\Mailable;
7 7
 use Illuminate\Queue\SerializesModels;
8
-use Illuminate\Contracts\Queue\ShouldQueue;
9 8
 
10 9
 class OrderShipped extends Mailable
11 10
 {
Please login to merge, or discard this patch.
app/Notifications/InvoicePaid.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * Get the notification's delivery channels.
26 26
      *
27 27
      * @param  mixed  $notifiable
28
-     * @return array
28
+     * @return string[]
29 29
      */
30 30
     public function via($notifiable)
31 31
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Bus\Queueable;
6 6
 use Illuminate\Notifications\Notification;
7
-use Illuminate\Contracts\Queue\ShouldQueue;
8 7
 use Illuminate\Notifications\Messages\NexmoMessage;
9 8
 
10 9
 class InvoicePaid extends Notification
Please login to merge, or discard this 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/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
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/Http/Controllers/UserController.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * Store a new user.
50 50
      *
51 51
      * @param  Request  $request
52
-     * @return Response
52
+     * @return \Illuminate\Http\RedirectResponse
53 53
      */
54 54
     public function store(Request $request)
55 55
     {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      *
114 114
      * @param  Request  $request
115 115
      * @param  string  $id
116
-     * @return Response
116
+     * @return \Illuminate\Http\RedirectResponse
117 117
      */
118 118
     public function update(Request $request, $id)
119 119
     {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *
151 151
      * @param  Request  $request
152 152
      * @param  string  $id
153
-     * @return Response
153
+     * @return \Illuminate\Http\RedirectResponse
154 154
      */
155 155
     public function destroy(Request $request, $id)
156 156
     {
Please login to merge, or discard this 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.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -6,10 +6,7 @@
 block discarded – undo
6 6
 use Illuminate\Http\Request;
7 7
 use App\Http\Controllers\Controller;
8 8
 use App\DataTables\UsersDataTable;
9
-use Illuminate\Support\Facades\Auth;
10
-use Illuminate\Validation\Rule;
11 9
 use App\User;
12
-use Datatables;
13 10
 
14 11
 class UserController extends Controller
15 12
 {
Please login to merge, or discard this patch.