Passed
Push — task/upgrade-to-laravel-8 ( b5f4a1...817003 )
by
unknown
08:18 queued 01:52
created
app/Http/Controllers/Api/JobApplicationAnswerController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         // Validate job application answer.
31 31
         $validatedData = $request->validate([
32
-          'answer' => 'required|nullable|string',
32
+            'answer' => 'required|nullable|string',
33 33
         ]);
34 34
 
35 35
         // Update existing object with data and save to db.
Please login to merge, or discard this patch.
app/Services/Validation/ApplicationTimelineValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@
 block discarded – undo
249 249
         $rules = $this->addNestedValidatorRules(
250 250
             'job_application_answers.*',
251 251
             $answerValidator->rules(),
252
-            [ 'job_application_answers.*.answer' => ['required', 'string', new WordLimitRule(250)]]
252
+            ['job_application_answers.*.answer' => ['required', 'string', new WordLimitRule(250)]]
253 253
         );
254 254
 
255 255
         // Validate that each question has been answered.
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/JobPosterCrudController.php 1 patch
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -81,8 +81,7 @@  discard block
 block discarded – undo
81 81
             'orderable' => false,
82 82
             'function' => function ($entry) {
83 83
                 return $entry->isOpen() ?
84
-                    '<span><i class="la la-check-circle"></i></span>' :
85
-                    '<span><i class="la la-circle"></i></span>';
84
+                    '<span><i class="la la-check-circle"></i></span>' : '<span><i class="la la-circle"></i></span>';
86 85
             }
87 86
         ]);
88 87
         $this->crud->addColumn([
@@ -92,8 +91,7 @@  discard block
 block discarded – undo
92 91
             'orderable' => false,
93 92
             'function' => function ($entry) {
94 93
                 return $entry->isClosed() ?
95
-                    '<span><i class="la la-check-circle"></i></span>' :
96
-                    '<span><i class="la la-circle"></i></span>';
94
+                    '<span><i class="la la-check-circle"></i></span>' : '<span><i class="la la-circle"></i></span>';
97 95
             }
98 96
         ]);
99 97
 
@@ -124,8 +122,7 @@  discard block
 block discarded – undo
124 122
             'function' =>
125 123
             function ($entry) {
126 124
                 return $entry->submitted_applications_count() > 0 ?
127
-                    '<a target="_blank" href="' . route('manager.jobs.applications', $entry->id) . '">' . $entry->submitted_applications_count() . ' (View <i class="la la-external-link"></i>)</a>' :
128
-                    $entry->submitted_applications_count();
125
+                    '<a target="_blank" href="' . route('manager.jobs.applications', $entry->id) . '">' . $entry->submitted_applications_count() . ' (View <i class="la la-external-link"></i>)</a>' : $entry->submitted_applications_count();
129 126
             }
130 127
         ]);
131 128
 
Please login to merge, or discard this patch.
app/Models/JobApplication.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -536,7 +536,7 @@
 block discarded – undo
536 536
      * Attach steps to new application (version 2).
537 537
      *
538 538
      * @return void
539
-    */
539
+     */
540 540
     public function attachSteps(): void
541 541
     {
542 542
         if ($this->touched_application_steps->isEmpty()) {
Please login to merge, or discard this patch.
app/Http/Controllers/ApplicationTimelineController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      *
16 16
      * @param  \App\Models\JobApplication $application Incoming Application object.
17 17
      * @return \Illuminate\Http\Response
18
-    */
18
+     */
19 19
     public function show(JobApplication $jobApplication, string $requestedStep = null)
20 20
     {
21 21
         $jobApplicationSteps = $jobApplication->jobApplicationSteps();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
                 'application' => $jobApplication,
93 93
                 'application_template' => Lang::get(
94 94
                     'applicant/application_template',
95
-                    ['security_clearance' => $jobPoster->security_clearance->value ]
95
+                    ['security_clearance' => $jobPoster->security_clearance->value]
96 96
                 ),
97 97
                 'jobPoster' => $jobPoster,
98 98
             ]
Please login to merge, or discard this patch.
app/Models/TouchedApplicationStep.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
 class TouchedApplicationStep extends BaseModel
20 20
 {
21 21
     protected $casts = [
22
-      'job_application_id' => 'int',
23
-      'step_id' => 'int',
24
-      'touched' => 'boolean',
22
+        'job_application_id' => 'int',
23
+        'step_id' => 'int',
24
+        'touched' => 'boolean',
25 25
     ];
26 26
 
27 27
     protected $fillable = [
28
-      'touched'
28
+        'touched'
29 29
     ];
30 30
 
31 31
     public function job_application() //phpcs:ignore
Please login to merge, or discard this patch.
app/Http/Controllers/JobController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -521,14 +521,14 @@  discard block
 block discarded – undo
521 521
         if (!empty($skillsArray)) {
522 522
             $lastSkill = end($skillsArray);
523 523
             foreach ($skillsArray as $skillItem) {
524
-                $skillsString .= $skillItem['skill'].' - '.$skillItem['level'].($skillItem == $lastSkill ? '.' : ', ');
524
+                $skillsString .= $skillItem['skill'] . ' - ' . $skillItem['level'] . ($skillItem == $lastSkill ? '.' : ', ');
525 525
             }
526 526
         }
527 527
 
528 528
         $benefitsString = '';
529 529
         if (is_array($jobLang['structured_data']['benefits'])) {
530 530
             foreach ($jobLang['structured_data']['benefits'] as $benefit) {
531
-                $benefitsString .= $benefit.' ';
531
+                $benefitsString .= $benefit . ' ';
532 532
             }
533 533
         }
534 534
 
@@ -536,12 +536,12 @@  discard block
 block discarded – undo
536 536
         if (is_array($jobPoster['job_poster_key_tasks'])) {
537 537
             $lastTask = end($jobPoster['job_poster_key_tasks']);
538 538
             foreach ($jobPoster['job_poster_key_tasks'] as $task) {
539
-                $tasksString .= $task['description'].' '.($task == $lastTask ? '' : ' | ');
539
+                $tasksString .= $task['description'] . ' ' . ($task == $lastTask ? '' : ' | ');
540 540
             }
541 541
         }
542 542
 
543
-        $securityClearanceString = $jobLang['structured_data']['security_clearance_requirement_level'].': '
544
-        .$jobPoster['security_clearance']['value'].'. '
543
+        $securityClearanceString = $jobLang['structured_data']['security_clearance_requirement_level'] . ': '
544
+        .$jobPoster['security_clearance']['value'] . '. '
545 545
         .$jobLang['structured_data']['security_clearance_requirement_description'];
546 546
 
547 547
         $structuredData = [
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -776,7 +776,7 @@  discard block
 block discarded – undo
776 776
             function (): void {
777 777
                 // This page is non-localized, because the middleware that redirects to localized
778 778
                 // pages changes POSTs to GETs and messes up the request.
779
-                Route::match(['get','post'], 'jobs/create/as-manager/{manager}', 'JobController@createAsManager')
779
+                Route::match(['get', 'post'], 'jobs/create/as-manager/{manager}', 'JobController@createAsManager')
780 780
                     ->middleware('can:create,App\Models\JobPoster')
781 781
                     ->name('admin.jobs.create_as_manager');
782 782
 
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
         ->name('jobs.setJobStatus');
864 864
     Route::resource('jobs', 'Api\JobController')->only([
865 865
         'show', 'store', 'update', 'index'
866
-    ])->names([ // Specify custom names because default names collied with existing routes.
866
+    ])->names([// Specify custom names because default names collied with existing routes.
867 867
         'show' => 'jobs.show',
868 868
         'store' => 'jobs.store',
869 869
         'update' => 'jobs.update',
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
 
893 893
     Route::resource('managers', 'Api\ManagerController')->only([
894 894
         'show', 'update'
895
-    ])->names([ // Specify custom names because default names collied with existing routes.
895
+    ])->names([// Specify custom names because default names collied with existing routes.
896 896
         'show' => 'managers.show',
897 897
         'update' => 'managers.update'
898 898
     ]);
Please login to merge, or discard this patch.
app/Http/Requests/BatchUpdateExperienceSkill.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
     public function rules()
42 42
     {
43 43
         return [
44
-          '*.id' => 'required|exists:App\Models\ExperienceSkill,id',
45
-          '*.justification' => 'nullable|string',
44
+            '*.id' => 'required|exists:App\Models\ExperienceSkill,id',
45
+            '*.justification' => 'nullable|string',
46 46
         ];
47 47
     }
48 48
 }
Please login to merge, or discard this patch.