@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | public function __construct() |
| 18 | 18 | { |
| 19 | - config(['auth.model' => \plunner\Employee::class]); |
|
| 20 | - config(['jwt.user' => \plunner\Employee::class]); |
|
| 19 | + config([ 'auth.model' => \plunner\Employee::class ]); |
|
| 20 | + config([ 'jwt.user' => \plunner\Employee::class ]); |
|
| 21 | 21 | $this->middleware('jwt.authandrefresh:mode-en'); |
| 22 | 22 | } |
| 23 | 23 | |
@@ -112,9 +112,9 @@ discard block |
||
| 112 | 112 | $caldavClient->connect($request->get('url'), $request->get('username'), $request->get('password')); |
| 113 | 113 | $calendars = $caldavClient->findCalendars(); |
| 114 | 114 | return array_keys($calendars); |
| 115 | - }catch (\it\thecsea\caldav_client_adapter\CaldavException $e) |
|
| 115 | + } catch (\it\thecsea\caldav_client_adapter\CaldavException $e) |
|
| 116 | 116 | { |
| 117 | - return \Response::json(['error' => $e->getMessage()],422); |
|
| 117 | + return \Response::json([ 'error' => $e->getMessage() ], 422); |
|
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | } |