@@ -17,8 +17,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |