Passed
Push — task/common-translation-packag... ( 1125af...852212 )
by Grant
08:02
created
app/Http/ViewComposers/DegreeComposer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
     public function compose(View $view) : void
24 24
     {
25 25
         if (!$this->degreeTypes) {
26
-            $this->degreeTypes = DegreeType::all();
26
+            $this->degreeTypes = DegreeType::all ();
27 27
         }
28 28
 
29
-        $view->with('degree_types', $this->degreeTypes);
30
-        $view->with('degree_template', Lang::get('common/degree'));
29
+        $view->with ('degree_types', $this->degreeTypes);
30
+        $view->with ('degree_template', Lang::get ('common/degree'));
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/ApplicationTrackerComposer.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -16,25 +16,25 @@
 block discarded – undo
16 16
      */
17 17
     public function compose(View $view)
18 18
     {
19
-        $app_tracker = Lang::get('applicant/application_tracker');
19
+        $app_tracker = Lang::get ('applicant/application_tracker');
20 20
 
21 21
 
22
-        $app_tracker['items']['basics']['url'] = route('job.application.edit.1', $view->getData()['job']);
23
-        $app_tracker['items']['experience']['url'] = route('job.application.edit.2', $view->getData()['job']);
24
-        $app_tracker['items']['essential_skills']['url'] = route('job.application.edit.3', $view->getData()['job']);
25
-        $app_tracker['items']['asset_skills']['url'] = route('job.application.edit.4', $view->getData()['job']);
26
-        $app_tracker['items']['preview']['url'] = route('job.application.edit.5', $view->getData()['job']);
27
-        $app_tracker['items']['confirm']['url'] = route('job.application.edit.6', $view->getData()['job']);
22
+        $app_tracker['items']['basics']['url'] = route ('job.application.edit.1', $view->getData ()['job']);
23
+        $app_tracker['items']['experience']['url'] = route ('job.application.edit.2', $view->getData ()['job']);
24
+        $app_tracker['items']['essential_skills']['url'] = route ('job.application.edit.3', $view->getData ()['job']);
25
+        $app_tracker['items']['asset_skills']['url'] = route ('job.application.edit.4', $view->getData ()['job']);
26
+        $app_tracker['items']['preview']['url'] = route ('job.application.edit.5', $view->getData ()['job']);
27
+        $app_tracker['items']['confirm']['url'] = route ('job.application.edit.6', $view->getData ()['job']);
28 28
 
29 29
         //TODO: all these checks shouldn't be neccessary when controllers are properly set up
30
-        if (isset($view->getData()['job_application'])) {
31
-            $job_application = $view->getData()['job_application'];
30
+        if (isset($view->getData ()['job_application'])) {
31
+            $job_application = $view->getData ()['job_application'];
32 32
             if ($job_application != null && $job_application instanceof JobApplication) {
33
-                foreach($app_tracker['items'] as $key => $value) {
34
-                    $app_tracker['items'][$key]['status'] = $job_application->getSectionStatus($key);
33
+                foreach ($app_tracker['items'] as $key => $value) {
34
+                    $app_tracker['items'][$key]['status'] = $job_application->getSectionStatus ($key);
35 35
                 }
36 36
             }
37 37
         }
38
-        $view->with('application_tracker', $app_tracker);
38
+        $view->with ('application_tracker', $app_tracker);
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/ReferenceComposer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
     public function compose(View $view) : void
24 24
     {
25 25
         if (!$this->relationships) {
26
-            $this->relationships = Relationship::all();
26
+            $this->relationships = Relationship::all ();
27 27
         }
28 28
 
29
-        $view->with('relationships', $this->relationships);
30
-        $view->with('reference_template', Lang::get('common/references'));
29
+        $view->with ('relationships', $this->relationships);
30
+        $view->with ('reference_template', Lang::get ('common/references'));
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/DemoNotificationComposer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
      */
17 17
     public function compose(View $view)
18 18
     {
19
-        $show_demo_notification = Auth::user() !== null && Auth::user()->isDemoManager();
20
-        $view->with([
21
-            'notification' => Lang::get('manager/notification'),
19
+        $show_demo_notification = Auth::user () !== null && Auth::user ()->isDemoManager ();
20
+        $view->with ([
21
+            'notification' => Lang::get ('manager/notification'),
22 22
             'show_demo_notification' => $show_demo_notification,
23 23
         ]);
24 24
     }
Please login to merge, or discard this patch.
app/Http/ViewComposers/WorkSampleComposer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
     public function compose(View $view) : void
24 24
     {
25 25
         if (!$this->fileTypes) {
26
-            $this->fileTypes = FileType::all();
26
+            $this->fileTypes = FileType::all ();
27 27
         }
28 28
 
29
-        $view->with('file_types', $this->fileTypes);
30
-        $view->with('sample_template', Lang::get('common/work_samples'));
29
+        $view->with ('file_types', $this->fileTypes);
30
+        $view->with ('sample_template', Lang::get ('common/work_samples'));
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/ApplicantProfileMenuComposer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function compose(View $view)
19 19
     {
20
-        $profileMenu = Lang::get('applicant/applicant_profile_menu');
20
+        $profileMenu = Lang::get ('applicant/applicant_profile_menu');
21 21
 
22
-        $profileMenu['about']['link'] = route('profile.about.edit', $view->getData()['applicant']);
23
-        $profileMenu['experience']['link'] = route('profile.experience.edit', $view->getData()['applicant']);
24
-        $profileMenu['skills']['link'] = route('profile.skills.edit', $view->getData()['applicant']);
25
-        $profileMenu['references']['link'] = route('profile.references.edit', $view->getData()['applicant']);
26
-        $profileMenu['portfolio']['link'] = route('profile.work_samples.edit', $view->getData()['applicant']);
22
+        $profileMenu['about']['link'] = route ('profile.about.edit', $view->getData ()['applicant']);
23
+        $profileMenu['experience']['link'] = route ('profile.experience.edit', $view->getData ()['applicant']);
24
+        $profileMenu['skills']['link'] = route ('profile.skills.edit', $view->getData ()['applicant']);
25
+        $profileMenu['references']['link'] = route ('profile.references.edit', $view->getData ()['applicant']);
26
+        $profileMenu['portfolio']['link'] = route ('profile.work_samples.edit', $view->getData ()['applicant']);
27 27
 
28 28
         //Set active on the proper item
29
-        switch(Route::currentRouteName()) {
29
+        switch (Route::currentRouteName ()) {
30 30
             case('profile.about'):
31 31
             case('profile.about.edit'):
32 32
             case('profile.about.update'):
@@ -54,6 +54,6 @@  discard block
 block discarded – undo
54 54
                 break;
55 55
         }
56 56
 
57
-        $view->with('profile_menu', $profileMenu);
57
+        $view->with ('profile_menu', $profileMenu);
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
app/Http/Requests/DepartmentCrudRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function authorize() : bool
15 15
     {
16 16
         // Only allow updates if the user is a logged in Admin.
17
-        return backpack_auth()->check();
17
+        return backpack_auth ()->check ();
18 18
     }
19 19
 
20 20
     /**
Please login to merge, or discard this patch.
app/Http/Requests/BatchUpdateCriteria.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
     {
30 30
         return [
31 31
             '*.id' => 'present',
32
-            '*.criteria_type_id' => ['required', new ValidIdRule(CriteriaType::class)],
33
-            '*.skill_id' => ['required', new ValidIdRule(Skill::class)],
34
-            '*.skill_level_id' => ['required', new ValidIdRule(SkillLevel::class)],
32
+            '*.criteria_type_id' => ['required', new ValidIdRule (CriteriaType::class)],
33
+            '*.skill_id' => ['required', new ValidIdRule (Skill::class)],
34
+            '*.skill_level_id' => ['required', new ValidIdRule (SkillLevel::class)],
35 35
             '*.description.en' => 'nullable|string',
36 36
             '*.description.fr' => 'nullable|string',
37 37
             '*.specificity.en' => 'nullable|string',
Please login to merge, or discard this patch.
app/Http/Requests/UpdateManagerProfileRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                 'email',
59 59
                 // Email may match existing email for this user,
60 60
                 // but must be unique if changed.
61
-                Rule::unique('users', 'email')->ignore($this->manager->user->id)
61
+                Rule::unique ('users', 'email')->ignore ($this->manager->user->id)
62 62
             ],
63 63
             'gov_email' => [
64 64
                 'nullable',
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 'confirmed'
80 80
             ],
81 81
 
82
-            'department_id' => ['required', new ValidIdRule(Department::class)],
82
+            'department_id' => ['required', new ValidIdRule (Department::class)],
83 83
 
84 84
             'years_experience' => 'nullable|numeric|min:0',
85 85
             'gc_directory_url' => 'nullable|url',
Please login to merge, or discard this patch.