Completed
Branch master (26e0b2)
by Adam
03:13
created
Category
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     protected function unauthenticated($request, AuthenticationException $exception)
61 61
     {
62 62
         if ($request->expectsJson()) {
63
-            return response()->json(['error' => 'Unauthenticated.'], 401);
63
+            return response()->json([ 'error' => 'Unauthenticated.' ], 401);
64 64
         }
65 65
 
66 66
         return redirect()->guest('login');
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
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         /*
21 21
          * Authenticate the user's personal channel...
22 22
          */
23
-        Broadcast::channel('App.User.*', function (User $user, $userId) {
23
+        Broadcast::channel('App.User.*', function(User $user, $userId) {
24 24
             return (int) $user->id === (int) $userId;
25 25
         });
26 26
     }
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/Http/Controllers/Auth/RegisterController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@
 block discarded – undo
65 65
     protected function create(array $data)
66 66
     {
67 67
         return User::create([
68
-            'name'     => $data['name'],
69
-            'email'    => $data['email'],
70
-            'password' => bcrypt($data['password']),
68
+            'name'     => $data[ 'name' ],
69
+            'email'    => $data[ 'email' ],
70
+            'password' => bcrypt($data[ 'password' ]),
71 71
         ]);
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Http/Controllers/RoomController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     {
17 17
         Room::destroy($id);
18 18
 
19
-        $data = ['class' => 'alert-success', 'message' => trans('general.deleted')];
19
+        $data = [ 'class' => 'alert-success', 'message' => trans('general.deleted') ];
20 20
 
21 21
         return response()->json($data);
22 22
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             [
78 78
                 'id'    => 'number',
79 79
                 'title' => trans('general.number'),
80
-                'value' => function (Room $data) {
80
+                'value' => function(Room $data) {
81 81
                     return $data->number;
82 82
                 },
83 83
                 'type'     => 'number',
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             [
89 89
                 'id'    => 'floor',
90 90
                 'title' => trans('general.floor'),
91
-                'value' => function (Room $data) {
91
+                'value' => function(Room $data) {
92 92
                     return $data->floor;
93 93
                 },
94 94
                 'type'     => 'number',
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             [
100 100
                 'id'    => 'capacity',
101 101
                 'title' => trans('general.capacity'),
102
-                'value' => function (Room $data) {
102
+                'value' => function(Room $data) {
103 103
                     return $data->capacity;
104 104
                 },
105 105
                 'type'     => 'number',
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             [
111 111
                 'id'    => 'price',
112 112
                 'title' => trans('general.price'),
113
-                'value' => function (Room $data) {
113
+                'value' => function(Room $data) {
114 114
                     return $data->price;
115 115
                 },
116 116
                 'type'     => 'number',
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             [
124 124
                 'id'    => 'comments',
125 125
                 'title' => trans('general.comment'),
126
-                'value' => function (Room $data) {
126
+                'value' => function(Room $data) {
127 127
                     return $data->comments;
128 128
                 },
129 129
                 'type' => 'textarea',
@@ -136,25 +136,25 @@  discard block
 block discarded – undo
136 136
         $dataset = [
137 137
             [
138 138
                 'title' => trans('general.number'),
139
-                'value' => function (Room $data) {
139
+                'value' => function(Room $data) {
140 140
                     return $data->number;
141 141
                 },
142 142
             ],
143 143
             [
144 144
                 'title' => trans('general.floor'),
145
-                'value' => function (Room $data) {
145
+                'value' => function(Room $data) {
146 146
                     return $data->floor;
147 147
                 },
148 148
             ],
149 149
             [
150 150
                 'title' => trans('general.capacity'),
151
-                'value' => function (Room $data) {
151
+                'value' => function(Room $data) {
152 152
                     return $data->capacity;
153 153
                 },
154 154
             ],
155 155
             [
156 156
                 'title' => trans('general.price'),
157
-                'value' => function (Room $data) {
157
+                'value' => function(Room $data) {
158 158
                     return $data->price;
159 159
                 },
160 160
             ],
Please login to merge, or discard this patch.