Completed
Push — master ( d6236d...ef58e2 )
by Oscar
03:29
created
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/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/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         Route::group([
55 55
             'middleware' => 'web',
56 56
             'namespace' => $this->namespace,
57
-        ], function ($router) {
57
+        ], function($router) {
58 58
             require base_path('routes/web.php');
59 59
         });
60 60
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             'middleware' => 'api',
73 73
             'namespace' => $this->namespace,
74 74
             'prefix' => 'api',
75
-        ], function ($router) {
75
+        ], function($router) {
76 76
             require base_path('routes/api.php');
77 77
         });
78 78
     }
Please login to merge, or discard this patch.
app/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         /*
20 20
          * Authenticate the user's personal channel...
21 21
          */
22
-        Broadcast::channel('App.User.*', function ($user, $userId) {
22
+        Broadcast::channel('App.User.*', function($user, $userId) {
23 23
             return (int) $user->id === (int) $userId;
24 24
         });
25 25
     }
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('login');
Please login to merge, or discard this patch.
app/Http/Controllers/Optimizer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
                 $this->getName($width, $height) . '.' . $pic->getClientOriginalExtension(), self::EXTENSION_DOT_LENGTH);
26 26
             Storage::put('compressed/' . $newName, File::get($pic));
27 27
             $img = Image::make(storage_path('app/compressed/') . $newName);
28
-            $resize = $img->resize($width, $height, function ($constraint) {
28
+            $resize = $img->resize($width, $height, function($constraint) {
29 29
                 $constraint->aspectRatio();
30 30
                 $constraint->upsize();
31 31
             });
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
                 return $img->response();
36 36
             }
37 37
         } catch (\Exception $e) {
38
-            return response()->json(['bad_input' => 'The input image is corrupted'], 204);
38
+            return response()->json([ 'bad_input' => 'The input image is corrupted' ], 204);
39 39
         }
40
-        return response()->json(['bad_input' => 'The input image is corrupted'], 204);
40
+        return response()->json([ 'bad_input' => 'The input image is corrupted' ], 204);
41 41
     }
42 42
 
43 43
     public function resizeremote(Request $request, ImageOptimizer $imageOptimizer)
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
         ]);
53 53
         $imageOptimizer->optimizeImage($file);
54 54
         $img = Image::make($file);
55
-        $resize = $img->resize($width, $height, function ($constraint) {
55
+        $resize = $img->resize($width, $height, function($constraint) {
56 56
             $constraint->aspectRatio();
57 57
             $constraint->upsize();
58 58
         });
59 59
         if ($resize) {
60 60
             return $img->response();
61 61
         }
62
-        return response()->json(['bad_input' => 'The input image is corrupted']);
62
+        return response()->json([ 'bad_input' => 'The input image is corrupted' ]);
63 63
     }
64 64
 
65 65
     private function getName($w, $h)
Please login to merge, or discard this patch.