Passed
Push — task/add-manager-resource ( c74771 )
by Chris
11:48
created
app/Http/Middleware/FullFrameGuard.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
      * @param  \Closure  $next
13 13
      * @return mixed
14 14
      */
15
-    public function handle($request, Closure $next) {
15
+    public function handle($request, Closure $next){
16 16
 
17
-        $response = $next($request);
17
+        $response = $next ($request);
18 18
 
19
-        $response->headers->set('X-Frame-Options', 'SAMEORIGIN');
19
+        $response->headers->set ('X-Frame-Options', 'SAMEORIGIN');
20 20
 
21 21
         return $response;
22 22
     }
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
         // Prevent resource responses from being wrapped in a top
20 20
         // level 'data' key.
21 21
         // https://laravel.com/docs/eloquent-resources#data-wrapping.
22
-        Resource::withoutWrapping();
22
+        Resource::withoutWrapping ();
23 23
 
24 24
         // A lower default string length for migrations is required for
25 25
         // versions of MySQL < 5.7.7.
26
-        Schema::defaultStringLength(191);
26
+        Schema::defaultStringLength (191);
27 27
 
28 28
         // Force all routes and requests to use HTTPS.
29
-        $this->app['request']->server->set('HTTPS', config('app.force_https'));
29
+        $this->app['request']->server->set ('HTTPS', config ('app.force_https'));
30 30
     }
31 31
 
32 32
     /**
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function register()
38 38
     {
39
-        $this->app->singleton(WhichPortal::class, function ($app) {
40
-            return new WhichPortal();
39
+        $this->app->singleton (WhichPortal::class, function ($app){
40
+            return new WhichPortal ();
41 41
         });
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
app/Providers/AuthServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function defineGates(): void
67 67
     {
68
-        Gate::define('view-assessment-plan', function ($user, $jobPoster) {
69
-            return $user->isAdmin() ||
70
-                $user->isManager() && $jobPoster->manager->user_id === $user->id;
68
+        Gate::define ('view-assessment-plan', function ($user, $jobPoster){
69
+            return $user->isAdmin () ||
70
+                $user->isManager () && $jobPoster->manager->user_id === $user->id;
71 71
         });
72 72
     }
73 73
 
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function boot(): void
84 84
     {
85
-        $this->registerPolicies();
85
+        $this->registerPolicies ();
86 86
 
87
-        $this->defineGates();
87
+        $this->defineGates ();
88 88
     }
89 89
 }
Please login to merge, or discard this patch.
app/Models/Reference.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  * @property \Illuminate\Database\Eloquent\Collection $projects
26 26
  * @property \Illuminate\Database\Eloquent\Collection $skill_declaractions
27 27
  */
28
-class Reference extends BaseModel {
28
+class Reference extends BaseModel{
29 29
 
30 30
     protected $casts = [
31 31
         'name' => 'string',
@@ -41,20 +41,20 @@  discard block
 block discarded – undo
41 41
         'description'
42 42
     ];
43 43
 
44
-    public function relationship() {
45
-        return $this->belongsTo(\App\Models\Lookup\Relationship::class);
44
+    public function relationship(){
45
+        return $this->belongsTo (\App\Models\Lookup\Relationship::class);
46 46
     }
47 47
 
48
-    public function applicant() {
49
-        return $this->belongsTo(\App\Models\Applicant::class);
48
+    public function applicant(){
49
+        return $this->belongsTo (\App\Models\Applicant::class);
50 50
     }
51 51
 
52
-    public function projects() {
53
-        return $this->belongsToMany(\App\Models\Project::class);
52
+    public function projects(){
53
+        return $this->belongsToMany (\App\Models\Project::class);
54 54
     }
55 55
 
56
-    public function skill_declarations() {
57
-        return $this->belongsToMany(\App\Models\SkillDeclaration::class);
56
+    public function skill_declarations(){
57
+        return $this->belongsToMany (\App\Models\SkillDeclaration::class);
58 58
     }
59 59
 
60 60
 }
Please login to merge, or discard this patch.
app/Models/Manager.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -138,52 +138,52 @@  discard block
 block discarded – undo
138 138
 
139 139
     public function user()
140 140
     {
141
-        return $this->belongsTo(\App\Models\User::class);
141
+        return $this->belongsTo (\App\Models\User::class);
142 142
     }
143 143
 
144 144
     public function department()
145 145
     {
146
-        return $this->belongsTo(\App\Models\Lookup\Department::class);
146
+        return $this->belongsTo (\App\Models\Lookup\Department::class);
147 147
     }
148 148
 
149 149
     public function job_posters() //phpcs:ignore
150 150
     {
151
-        return $this->hasMany(\App\Models\JobPoster::class);
151
+        return $this->hasMany (\App\Models\JobPoster::class);
152 152
     }
153 153
 
154 154
     public function work_environment() //phpcs:ignore
155 155
     {
156
-        return $this->hasOne(\App\Models\WorkEnvironment::class)->withDefault();
156
+        return $this->hasOne (\App\Models\WorkEnvironment::class)->withDefault ();
157 157
     }
158 158
 
159 159
     public function team_culture() //phpcs:ignore
160 160
     {
161
-        return $this->hasOne(\App\Models\TeamCulture::class)->withDefault();
161
+        return $this->hasOne (\App\Models\TeamCulture::class)->withDefault ();
162 162
     }
163 163
 
164 164
     public function work_review_frequency() //phpcs:ignore
165 165
     {
166
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
166
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
167 167
     }
168 168
 
169 169
     public function stay_late_frequency() //phpcs:ignore
170 170
     {
171
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
171
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
172 172
     }
173 173
 
174 174
     public function engage_team_frequency() //phpcs:ignore
175 175
     {
176
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
176
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
177 177
     }
178 178
 
179 179
     public function development_opportunity_frequency() //phpcs:ignore
180 180
     {
181
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
181
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
182 182
     }
183 183
 
184 184
     public function refuse_low_value_work_frequency() //phpcs:ignore
185 185
     {
186
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
186
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
187 187
     }
188 188
 
189 189
     /**
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     public function getFullNameAttribute(): string
195 195
     {
196 196
         if ($this->user !== null) {
197
-            return $this->user->first_name . ' ' . $this->user->last_name;
197
+            return $this->user->first_name.' '.$this->user->last_name;
198 198
         }
199 199
         return '';
200 200
     }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
     public function getIsDemoManagerAttribute(): bool
234 234
     {
235 235
         if ($this->user !== null) {
236
-            return $this->user->isDemoManager();
236
+            return $this->user->isDemoManager ();
237 237
         }
238 238
         return true;
239 239
     }
Please login to merge, or discard this patch.
app/Models/ApplicationReview.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,15 +37,15 @@
 block discarded – undo
37 37
      */
38 38
     protected $with = ['review_status'];
39 39
 
40
-    public function job_application() {
41
-        return $this->belongsTo(JobApplication::class);
40
+    public function job_application(){
41
+        return $this->belongsTo (JobApplication::class);
42 42
     }
43 43
 
44
-    public function review_status() {
45
-        return $this->belongsTo(ReviewStatus::class);
44
+    public function review_status(){
45
+        return $this->belongsTo (ReviewStatus::class);
46 46
     }
47 47
 
48
-    public function getStatusAttribute() {
48
+    public function getStatusAttribute(){
49 49
         return $this->review_status->translation;
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
app/Models/WorkplacePhoto.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  * 
20 20
  * @property \App\Models\WorkplacePhotoCaption $workplace_photo_caption
21 21
  */
22
-class WorkplacePhoto extends BaseModel {
22
+class WorkplacePhoto extends BaseModel{
23 23
 
24 24
     protected $casts = [
25 25
         'image' => 'boolean',
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
         'image'
30 30
     ];
31 31
 
32
-    public function workplace_photo_caption() {
33
-        return $this->hasOne(\App\Models\WorkplacePhotoCaption::class);
32
+    public function workplace_photo_caption(){
33
+        return $this->hasOne (\App\Models\WorkplacePhotoCaption::class);
34 34
     }
35 35
 
36 36
 }
Please login to merge, or discard this patch.
app/Models/Course.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  * @property \App\Models\Lookup\CourseStatus $course_status
26 26
  * @property \App\Models\Applicant $applicant
27 27
  */
28
-class Course extends BaseModel {
28
+class Course extends BaseModel{
29 29
 
30 30
     protected $casts = [
31 31
         'name' => 'string',
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
         'end_date'
44 44
     ];
45 45
 
46
-    public function course_status() {
47
-        return $this->belongsTo(\App\Models\Lookup\CourseStatus::class);
46
+    public function course_status(){
47
+        return $this->belongsTo (\App\Models\Lookup\CourseStatus::class);
48 48
     }
49 49
 
50
-    public function applicant() {
51
-        return $this->belongsTo(\App\Models\Applicant::class);
50
+    public function applicant(){
51
+        return $this->belongsTo (\App\Models\Applicant::class);
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
app/Models/Project.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * @property \Illuminate\Database\Eloquent\Collection $references
23 23
  */
24
-class Project extends BaseModel {
24
+class Project extends BaseModel{
25 25
 
26 26
     protected $casts = [
27 27
         'name' => 'string',
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
         'end_date'
36 36
     ];
37 37
 
38
-    public function references() {
39
-        return $this->belongsToMany(\App\Models\Reference::class);
38
+    public function references(){
39
+        return $this->belongsToMany (\App\Models\Reference::class);
40 40
     }
41 41
 
42
-    public function applicant() {
43
-        return $this->belongsTo(\App\Models\Applicant::class);
42
+    public function applicant(){
43
+        return $this->belongsTo (\App\Models\Applicant::class);
44 44
     }
45 45
 }
Please login to merge, or discard this patch.