Completed
Push — master ( cbcc67...0cf701 )
by claudio
05:06
created
app/Http/Controllers/Employees/Calendars/CalendarsController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function __construct()
19 19
     {
20
-        config(['auth.model' => \plunner\Employee::class]);
21
-        config(['jwt.user' => \plunner\Employee::class]);
20
+        config([ 'auth.model' => \plunner\Employee::class ]);
21
+        config([ 'jwt.user' => \plunner\Employee::class ]);
22 22
         $this->middleware('jwt.authandrefresh:mode-en');
23 23
     }
24 24
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $calendar->update($request->only('name', 'enabled'));
104 104
         //TODO test
105 105
         //TODO validator
106
-        $calendar->caldav()->update($request->only('url','username', 'password', 'calendar_name'));
106
+        $calendar->caldav()->update($request->only('url', 'username', 'password', 'calendar_name'));
107 107
         return $calendar;
108 108
     }
109 109
 
@@ -136,9 +136,9 @@  discard block
 block discarded – undo
136 136
             $caldavClient->connect($request->input('url'), $request->input('username'), $request->input('password'));
137 137
             $calendars = $caldavClient->findCalendars();
138 138
             return array_keys($calendars);
139
-        }catch (\it\thecsea\caldav_client_adapter\CaldavException $e)
139
+        } catch (\it\thecsea\caldav_client_adapter\CaldavException $e)
140 140
         {
141
-            return Response::json(['error' => $e->getMessage()],422);
141
+            return Response::json([ 'error' => $e->getMessage() ], 422);
142 142
         }
143 143
     }
144 144
 }
Please login to merge, or discard this patch.