Completed
Push — master ( 71feda...776f21 )
by claudio
06:53
created
app/Http/Controllers/Companies/Company/CompanyController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Employees/Employee/EmployeeController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Employees/Planners/MeetingsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct()
19 19
     {
20
-        config(['auth.model' => \plunner\Planner::class]);
21
-        config(['jwt.user' => \plunner\Planner::class]);
20
+        config([ 'auth.model' => \plunner\Planner::class ]);
21
+        config([ 'jwt.user' => \plunner\Planner::class ]);
22 22
         $this->middleware('jwt.authandrefresh:mode-en');
23 23
     }
24 24
 
Please login to merge, or discard this patch.
app/Http/Controllers/Employees/Planners/MeetingTimeslotsController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function __construct()
22 22
     {
23
-        config(['auth.model' => \plunner\Planner::class]);
24
-        config(['jwt.user' => \plunner\Planner::class]);
23
+        config([ 'auth.model' => \plunner\Planner::class ]);
24
+        config([ 'jwt.user' => \plunner\Planner::class ]);
25 25
         $this->middleware('jwt.authandrefresh:mode-en');
26 26
     }
27 27
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         if ($meeting->group_id == $groupId)
41 41
             return $meeting->timeslots;
42
-        return Response::json(['error' => 'meeting->group_id <> groupId'], 403);
42
+        return Response::json([ 'error' => 'meeting->group_id <> groupId' ], 403);
43 43
     }
44 44
 
45 45
     /**
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         if ($meeting->group_id == $groupId && $timeslot->meeting_id == $meetingId)
63 63
             return $timeslot;
64
-        return Response::json(['error' => 'meeting->group_id <> groupId || timeslot->meeting_id <> meetingId'], 403);
64
+        return Response::json([ 'error' => 'meeting->group_id <> groupId || timeslot->meeting_id <> meetingId' ], 403);
65 65
     }
66 66
 
67 67
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $timeslot = $meeting->timeslots()->create($input);
84 84
             return $timeslot;
85 85
         }
86
-        return Response::json(['error' => 'meeting->group_id <> groupId'], 403);
86
+        return Response::json([ 'error' => 'meeting->group_id <> groupId' ], 403);
87 87
     }
88 88
 
89 89
     /**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             $timeslot->update($input);
108 108
             return $timeslot;
109 109
         }
110
-        return Response::json(['error' => 'meeting->group_id <> groupId || timeslot->meeting_id <> meetingId'], 403);
110
+        return Response::json([ 'error' => 'meeting->group_id <> groupId || timeslot->meeting_id <> meetingId' ], 403);
111 111
     }
112 112
 
113 113
     /**
@@ -131,6 +131,6 @@  discard block
 block discarded – undo
131 131
             $timeslot->delete();
132 132
             return $timeslot;
133 133
         }
134
-        return Response::json(['error' => 'meeting->group_id <> groupId || timeslot->meeting_id <> meetingId'], 403);
134
+        return Response::json([ 'error' => 'meeting->group_id <> groupId || timeslot->meeting_id <> meetingId' ], 403);
135 135
     }
136 136
 }
Please login to merge, or discard this patch.
app/MeetingTimeslot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,14 +32,14 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Controllers/Employees/Calendars/TimeslotsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/Employees/Meetings/MeetingsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Timeslot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Console/Commands/Inspire.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
      */
29 29
     public function handle()
30 30
     {
31
-        $this->comment(PHP_EOL . Inspiring::quote() . PHP_EOL);
31
+        $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.