@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Claudio Cardinale <[email protected]> |
|
5 | - * Date: 07/12/15 |
|
6 | - * Time: 21.24 |
|
7 | - * This program is free software; you can redistribute it and/or |
|
8 | - * modify it under the terms of the GNU General Public License |
|
9 | - * as published by the Free Software Foundation; either version 2 |
|
10 | - * of the License, or (at your option) any later version. |
|
11 | - * This program is distributed in the hope that it will be useful, |
|
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 | - * GNU General Public License for more details. |
|
15 | - * You should have received a copy of the GNU General Public License |
|
16 | - * along with this program; if not, write to the Free Software |
|
17 | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
18 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Claudio Cardinale <[email protected]> |
|
5 | + * Date: 07/12/15 |
|
6 | + * Time: 21.24 |
|
7 | + * This program is free software; you can redistribute it and/or |
|
8 | + * modify it under the terms of the GNU General Public License |
|
9 | + * as published by the Free Software Foundation; either version 2 |
|
10 | + * of the License, or (at your option) any later version. |
|
11 | + * This program is distributed in the hope that it will be useful, |
|
12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 | + * GNU General Public License for more details. |
|
15 | + * You should have received a copy of the GNU General Public License |
|
16 | + * along with this program; if not, write to the Free Software |
|
17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | namespace plunner\Console\Commands\Optimise; |
21 | 21 |
@@ -39,6 +39,6 @@ |
||
39 | 39 | */ |
40 | 40 | public function broadcastOn() |
41 | 41 | { |
42 | - return []; |
|
42 | + return [ ]; |
|
43 | 43 | } |
44 | 44 | } |
@@ -39,6 +39,6 @@ |
||
39 | 39 | */ |
40 | 40 | public function broadcastOn() |
41 | 41 | { |
42 | - return []; |
|
42 | + return [ ]; |
|
43 | 43 | } |
44 | 44 | } |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Claudio Cardinale <[email protected]> |
|
5 | - * Date: 24/12/15 |
|
6 | - * Time: 22.53 |
|
7 | - * This program is free software; you can redistribute it and/or |
|
8 | - * modify it under the terms of the GNU General Public License |
|
9 | - * as published by the Free Software Foundation; either version 2 |
|
10 | - * of the License, or (at your option) any later version. |
|
11 | - * This program is distributed in the hope that it will be useful, |
|
12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 | - * GNU General Public License for more details. |
|
15 | - * You should have received a copy of the GNU General Public License |
|
16 | - * along with this program; if not, write to the Free Software |
|
17 | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
18 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Claudio Cardinale <[email protected]> |
|
5 | + * Date: 24/12/15 |
|
6 | + * Time: 22.53 |
|
7 | + * This program is free software; you can redistribute it and/or |
|
8 | + * modify it under the terms of the GNU General Public License |
|
9 | + * as published by the Free Software Foundation; either version 2 |
|
10 | + * of the License, or (at your option) any later version. |
|
11 | + * This program is distributed in the hope that it will be useful, |
|
12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 | + * GNU General Public License for more details. |
|
15 | + * You should have received a copy of the GNU General Public License |
|
16 | + * along with this program; if not, write to the Free Software |
|
17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | namespace plunner\Http\Middleware; |
21 | 21 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | //this to add the remember me mode field in the new token, but we have the custom check that is an useless |
36 | 36 | //overhead |
37 | - $custom = $custom . ';remember-' . $remember == 'true' ? 'true' : 'false'; |
|
37 | + $custom = $custom.';remember-'.$remember == 'true' ? 'true' : 'false'; |
|
38 | 38 | return parent::handle($request, $next, $custom); |
39 | 39 | } |
40 | 40 |
@@ -10,8 +10,8 @@ discard block |
||
10 | 10 | { |
11 | 11 | public function __construct() |
12 | 12 | { |
13 | - config(['auth.model' => \plunner\Company::class]); |
|
14 | - config(['jwt.user' => \plunner\Company::class]); |
|
13 | + config([ 'auth.model' => \plunner\Company::class ]); |
|
14 | + config([ 'jwt.user' => \plunner\Company::class ]); |
|
15 | 15 | $this->middleware('jwt.authandrefresh:mode-cn'); |
16 | 16 | } |
17 | 17 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function update(CompanyRequest $request) |
37 | 37 | { |
38 | 38 | $company = \Auth::user(); |
39 | - $input = $request->only(['name', 'password']); |
|
39 | + $input = $request->only([ 'name', 'password' ]); |
|
40 | 40 | $company->update($input); |
41 | 41 | return $company; |
42 | 42 | } |
@@ -10,8 +10,8 @@ discard block |
||
10 | 10 | { |
11 | 11 | public function __construct() |
12 | 12 | { |
13 | - config(['auth.model' => \plunner\Employee::class]); |
|
14 | - config(['jwt.user' => \plunner\Employee::class]); |
|
13 | + config([ 'auth.model' => \plunner\Employee::class ]); |
|
14 | + config([ 'jwt.user' => \plunner\Employee::class ]); |
|
15 | 15 | $this->middleware('jwt.authandrefresh:mode-en'); |
16 | 16 | } |
17 | 17 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function update(EmployeeRequest $request) |
37 | 37 | { |
38 | 38 | $employee = \Auth::user(); |
39 | - $input = $request->only(['name', 'password']); |
|
39 | + $input = $request->only([ 'name', 'password' ]); |
|
40 | 40 | $employee->update($input); |
41 | 41 | return $employee; |
42 | 42 | } |
@@ -32,14 +32,14 @@ |
||
32 | 32 | * |
33 | 33 | * @var array |
34 | 34 | */ |
35 | - protected $fillable = ['time_start', 'time_end']; |
|
35 | + protected $fillable = [ 'time_start', 'time_end' ]; |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * The attributes excluded from the model's JSON form. |
39 | 39 | * |
40 | 40 | * @var array |
41 | 41 | */ |
42 | - protected $hidden = ['pivot', 'meeting']; |
|
42 | + protected $hidden = [ 'pivot', 'meeting' ]; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
@@ -21,8 +21,8 @@ |
||
21 | 21 | */ |
22 | 22 | public function __construct() |
23 | 23 | { |
24 | - config(['auth.model' => \plunner\Employee::class]); |
|
25 | - config(['jwt.user' => \plunner\Employee::class]); |
|
24 | + config([ 'auth.model' => \plunner\Employee::class ]); |
|
25 | + config([ 'jwt.user' => \plunner\Employee::class ]); |
|
26 | 26 | $this->middleware('jwt.authandrefresh:mode-en'); |
27 | 27 | } |
28 | 28 |
@@ -36,8 +36,9 @@ |
||
36 | 36 | $calendar = Calendar::findOrFail($calendarId); |
37 | 37 | $this->authorize($calendar); |
38 | 38 | $timeslots = $calendar->timeslots(); |
39 | - if ($request->query('current')) |
|
40 | - $timeslots->where('time_start', '>=', new \DateTime()); |
|
39 | + if ($request->query('current')) { |
|
40 | + $timeslots->where('time_start', '>=', new \DateTime()); |
|
41 | + } |
|
41 | 42 | return $timeslots->get(); |
42 | 43 | } |
43 | 44 |
@@ -33,14 +33,14 @@ |
||
33 | 33 | * |
34 | 34 | * @var array |
35 | 35 | */ |
36 | - protected $fillable = ['time_start', 'time_end']; |
|
36 | + protected $fillable = [ 'time_start', 'time_end' ]; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * The attributes excluded from the model's JSON form. |
40 | 40 | * |
41 | 41 | * @var array |
42 | 42 | */ |
43 | - protected $hidden = ['pivot', 'calendar']; |
|
43 | + protected $hidden = [ 'pivot', 'calendar' ]; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |