Passed
Push — task/add-manager-resource ( c74771 )
by Chris
11:48
created
app/Http/Controllers/ReferencesController.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function editAuthenticated(Request $request)
23 23
     {
24
-        $applicant = $request->user()->applicant;
25
-        return redirect(route('profile.references.edit', $applicant));
24
+        $applicant = $request->user ()->applicant;
25
+        return redirect (route ('profile.references.edit', $applicant));
26 26
     }
27 27
 
28 28
     /**
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function edit(Request $request, Applicant $applicant)
36 36
     {
37
-        $applicant->load([
37
+        $applicant->load ([
38 38
             'references.projects',
39 39
             'skill_declarations.skill',
40 40
         ]);
41 41
 
42
-        return view('applicant/profile_04_references', [
42
+        return view ('applicant/profile_04_references', [
43 43
             'applicant' => $applicant,
44
-            'profile' => Lang::get('applicant/profile_references'),
44
+            'profile' => Lang::get ('applicant/profile_references'),
45 45
         ]);
46 46
     }
47 47
 
@@ -54,54 +54,54 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function update(Request $request, ?Reference $reference = null)
56 56
     {
57
-        $validator = new UpdateReferenceValidator();
58
-        $validator->validate($request->input());
57
+        $validator = new UpdateReferenceValidator ();
58
+        $validator->validate ($request->input ());
59 59
 
60 60
         if ($reference === null) {
61
-            $reference = new Reference();
62
-            $reference->applicant_id = $request->user()->applicant->id;
61
+            $reference = new Reference ();
62
+            $reference->applicant_id = $request->user ()->applicant->id;
63 63
         }
64
-        $reference->fill([
65
-            'name' => $request->input('name'),
66
-            'email' => $request->input('email'),
67
-            'relationship_id' => $request->input('relationship_id'),
68
-            'description' => $request->input('description'),
64
+        $reference->fill ([
65
+            'name' => $request->input ('name'),
66
+            'email' => $request->input ('email'),
67
+            'relationship_id' => $request->input ('relationship_id'),
68
+            'description' => $request->input ('description'),
69 69
         ]);
70
-        $reference->save();
70
+        $reference->save ();
71 71
 
72
-        $reference->load('projects');
72
+        $reference->load ('projects');
73 73
 
74 74
         // TODO: As soon as you can interact with projects outside of references,
75 75
         // this will become a dangerous operation.
76
-        $reference->projects()->delete();
76
+        $reference->projects ()->delete ();
77 77
 
78 78
         $newProjects = [];
79
-        if ($request->input('projects')) {
80
-            foreach ($request->input('projects') as $projectInput) {
81
-                $project = new Project();
79
+        if ($request->input ('projects')) {
80
+            foreach ($request->input ('projects') as $projectInput) {
81
+                $project = new Project ();
82 82
                 $project->applicant_id = $reference->applicant_id;
83
-                $project->fill([
83
+                $project->fill ([
84 84
                     'name' => $projectInput['name'],
85 85
                     'start_date' => $projectInput['start_date'],
86 86
                     'end_date' => $projectInput['end_date'],
87 87
                 ]);
88
-                $project->save();
88
+                $project->save ();
89 89
                 $newProjects[] = $project->id;
90 90
             }
91 91
         }
92
-        $reference->projects()->sync($newProjects);
92
+        $reference->projects ()->sync ($newProjects);
93 93
 
94 94
         // Attach relatives.
95
-        $skillIds = $this->getRelativeIds($request->input(), 'skills');
96
-        $reference->skill_declarations()->sync($skillIds);
95
+        $skillIds = $this->getRelativeIds ($request->input (), 'skills');
96
+        $reference->skill_declarations ()->sync ($skillIds);
97 97
 
98 98
         // If an ajax request, return the new object.
99
-        if ($request->ajax()) {
100
-            $reference->load('relationship');
101
-            $reference->load('projects');
102
-            return $reference->toJson();
99
+        if ($request->ajax ()) {
100
+            $reference->load ('relationship');
101
+            $reference->load ('projects');
102
+            return $reference->toJson ();
103 103
         } else {
104
-            return redirect()->back();
104
+            return redirect ()->back ();
105 105
         }
106 106
     }
107 107
 
@@ -114,19 +114,19 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function destroy(Request $request, Reference $reference)
116 116
     {
117
-        $this->authorize('delete', $reference);
117
+        $this->authorize ('delete', $reference);
118 118
 
119 119
         // TODO: when projects exist independently on profile, delete separately.
120
-        $reference->projects()->delete();
120
+        $reference->projects ()->delete ();
121 121
 
122
-        $reference->delete();
122
+        $reference->delete ();
123 123
 
124
-        if ($request->ajax()) {
124
+        if ($request->ajax ()) {
125 125
             return [
126 126
                 'message' => 'Reference deleted'
127 127
             ];
128 128
         }
129 129
 
130
-        return redirect()->back();
130
+        return redirect ()->back ();
131 131
     }
132 132
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ManagerCrudController.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -17,49 +17,49 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function setup() : void
19 19
     {
20
-        $this->crud->setModel('App\Models\User');
21
-        $this->crud->setRoute('admin/manager');
22
-        $this->crud->setEntityNameStrings('manager', 'managers');
20
+        $this->crud->setModel ('App\Models\User');
21
+        $this->crud->setRoute ('admin/manager');
22
+        $this->crud->setEntityNameStrings ('manager', 'managers');
23 23
 
24 24
         // Don't show 'basic' users.
25
-        $this->crud->addClause('whereIn', 'user_role_id', [2, 3]);
25
+        $this->crud->addClause ('whereIn', 'user_role_id', [2, 3]);
26 26
     }
27 27
 
28 28
     public function setupListOperation()
29 29
     {
30
-        $this->crud->removeButton('update');
30
+        $this->crud->removeButton ('update');
31 31
 
32
-        $this->crud->addColumn([
32
+        $this->crud->addColumn ([
33 33
             'name' => 'manager.id',
34 34
             'key' => 'manager_id',
35 35
             'type' => 'number',
36 36
             'label' => 'ID'
37 37
         ]);
38
-        $this->crud->addColumn([
38
+        $this->crud->addColumn ([
39 39
             'name' => 'manager.full_name',
40 40
             'key' => 'manager_name',
41 41
             'type' => 'text',
42 42
             'label' => 'Name'
43 43
         ]);
44
-        $this->crud->addColumn([
44
+        $this->crud->addColumn ([
45 45
             'name' => 'user_role.name',
46 46
             'type' => 'text',
47 47
             'key' => 'user_role_name',
48 48
             'label' => 'Role'
49 49
         ]);
50
-        $this->crud->addColumn([
50
+        $this->crud->addColumn ([
51 51
             'name' => 'email',
52 52
             'key' => 'manager_email',
53 53
             'type' => 'text',
54 54
             'label' => 'Email'
55 55
         ]);
56
-        $this->crud->addColumn([
56
+        $this->crud->addColumn ([
57 57
             'name' => 'gov_email',
58 58
             'key' => 'government_email',
59 59
             'type' => 'text',
60 60
             'label' => 'Government Email'
61 61
         ]);
62
-        $this->crud->addColumn([
62
+        $this->crud->addColumn ([
63 63
             'name' => 'manager.department.name',
64 64
             'key' => 'manager_department',
65 65
             'type' => 'text',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         ]);
69 69
 
70 70
         // Add the custom blade button found in resources/views/vendor/backpack/crud/buttons/profile_edit.blade.php.
71
-        $this->crud->addButtonFromView('line', 'create_job_poster', 'create_job_poster', 'beginning');
72
-        $this->crud->addButtonFromView('line', 'profile_edit', 'profile_edit', 'end');
71
+        $this->crud->addButtonFromView ('line', 'create_job_poster', 'create_job_poster', 'beginning');
72
+        $this->crud->addButtonFromView ('line', 'profile_edit', 'profile_edit', 'end');
73 73
     }
74 74
 }
Please login to merge, or discard this patch.
app/Http/Controllers/HomepageController.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -15,27 +15,27 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function applicant()
17 17
     {
18
-        $now = Carbon::now();
18
+        $now = Carbon::now ();
19 19
 
20 20
         // Find three most recent published jobs that are currently open for applications.
21 21
         // Eager load required relationships: Department, Province, JobTerm.
22
-        $jobs = JobPoster::where('open_date_time', '<=', $now)
23
-            ->where('close_date_time', '>=', $now)
24
-            ->where('published', true)
25
-            ->with([
22
+        $jobs = JobPoster::where ('open_date_time', '<=', $now)
23
+            ->where ('close_date_time', '>=', $now)
24
+            ->where ('published', true)
25
+            ->with ([
26 26
                 'department',
27 27
                 'province',
28 28
             ])
29
-            ->orderBy('open_date_time', 'desc')
30
-            ->take(3)
31
-            ->get();
32
-        return view('applicant/home', [
33
-            'home' => Lang::get('applicant/home'),
34
-            'hero' => Lang::get('common/hero'),
35
-            'job_index' => Lang::get('applicant/job_index'),
36
-            'job_post' => Lang::get('applicant/job_post'),
29
+            ->orderBy ('open_date_time', 'desc')
30
+            ->take (3)
31
+            ->get ();
32
+        return view ('applicant/home', [
33
+            'home' => Lang::get ('applicant/home'),
34
+            'hero' => Lang::get ('common/hero'),
35
+            'job_index' => Lang::get ('applicant/job_index'),
36
+            'job_post' => Lang::get ('applicant/job_post'),
37 37
             'jobs' => $jobs,
38
-            'job_count' => count($jobs)
38
+            'job_count' => count ($jobs)
39 39
         ]);
40 40
     }
41 41
 
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function manager()
47 47
     {
48
-        return view('manager/home', [
49
-            'home_l10n' => Lang::get('manager/home'),
48
+        return view ('manager/home', [
49
+            'home_l10n' => Lang::get ('manager/home'),
50 50
         ]);
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
app/Http/Controllers/SkillDeclarationController.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function editAuthenticated(Request $request)
23 23
     {
24
-        $applicant = $request->user()->applicant;
25
-        return redirect(route('profile.skills.edit', $applicant));
24
+        $applicant = $request->user ()->applicant;
25
+        return redirect (route ('profile.skills.edit', $applicant));
26 26
     }
27 27
 
28 28
     /**
@@ -34,16 +34,16 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function edit(Request $request, Applicant $applicant)
36 36
     {
37
-        $applicant->load([
37
+        $applicant->load ([
38 38
             'skill_declarations.skill.skill_type',
39 39
             'skill_declarations.skill_status',
40 40
             'skill_declarations.skill_level',
41 41
         ]);
42 42
 
43
-        return view('applicant/profile_03_skills', [
43
+        return view ('applicant/profile_03_skills', [
44 44
             'applicant' => $applicant,
45
-            'profile' => Lang::get('applicant/profile_skills'),
46
-            'skills_modals' => Lang::get('common/skills_modals'),
45
+            'profile' => Lang::get ('applicant/profile_skills'),
46
+            'skills_modals' => Lang::get ('common/skills_modals'),
47 47
         ]);
48 48
     }
49 49
 
@@ -55,23 +55,23 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function create(Request $request)
57 57
     {
58
-        $this->authorize('create', SkillDeclaration::class);
58
+        $this->authorize ('create', SkillDeclaration::class);
59 59
 
60
-        $user = $request->user();
60
+        $user = $request->user ();
61 61
         $applicant = $user->applicant;
62 62
 
63 63
         // Get the default claim status id.
64
-        $claimedStatusId = SkillStatus::where('name', 'claimed')->firstOrFail()->id;
64
+        $claimedStatusId = SkillStatus::where ('name', 'claimed')->firstOrFail ()->id;
65 65
 
66 66
         // Create a new Skill Declaration
67 67
         // But don't save, as it hasn't been validated yet.
68
-        $skillDeclaration = new SkillDeclaration();
68
+        $skillDeclaration = new SkillDeclaration ();
69 69
         $skillDeclaration->applicant_id = $applicant->id;
70
-        $skillDeclaration->skill_id = $request->input('skill_id');
70
+        $skillDeclaration->skill_id = $request->input ('skill_id');
71 71
         $skillDeclaration->skill_status_id = $claimedStatusId;
72 72
 
73 73
         // Update variable fields in skill declaration.
74
-        return $this->updateSkillDeclaration($request, $skillDeclaration);
74
+        return $this->updateSkillDeclaration ($request, $skillDeclaration);
75 75
     }
76 76
 
77 77
     /**
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function update(Request $request, SkillDeclaration $skillDeclaration)
85 85
     {
86
-        $this->authorize('update', $skillDeclaration);
86
+        $this->authorize ('update', $skillDeclaration);
87 87
 
88
-        return $this->updateSkillDeclaration($request, $skillDeclaration);
88
+        return $this->updateSkillDeclaration ($request, $skillDeclaration);
89 89
     }
90 90
 
91 91
     /**
@@ -98,35 +98,35 @@  discard block
 block discarded – undo
98 98
     protected function updateSkillDeclaration(Request $request, SkillDeclaration $skillDeclaration)
99 99
     {
100 100
         // Fill variable values.
101
-        $skillDeclaration->fill([
102
-            'description' => $request->input('description'),
103
-            'skill_level_id' => $request->input('skill_level_id'),
101
+        $skillDeclaration->fill ([
102
+            'description' => $request->input ('description'),
103
+            'skill_level_id' => $request->input ('skill_level_id'),
104 104
         ]);
105 105
 
106 106
         // Validate before saving.
107
-        $validator = new SkillDeclarationValidator($request->user()->applicant);
108
-        $validator->validate($skillDeclaration);
107
+        $validator = new SkillDeclarationValidator ($request->user ()->applicant);
108
+        $validator->validate ($skillDeclaration);
109 109
 
110 110
         // Save this skill declaration.
111
-        $skillDeclaration->save();
111
+        $skillDeclaration->save ();
112 112
 
113 113
         // Attach relatives.
114
-        $referenceIds = $this->getRelativeIds($request->input(), 'references');
115
-        $skillDeclaration->references()->sync($referenceIds);
114
+        $referenceIds = $this->getRelativeIds ($request->input (), 'references');
115
+        $skillDeclaration->references ()->sync ($referenceIds);
116 116
 
117
-        $sampleIds = $this->getRelativeIds($request->input(), 'samples');
118
-        $skillDeclaration->work_samples()->sync($sampleIds);
117
+        $sampleIds = $this->getRelativeIds ($request->input (), 'samples');
118
+        $skillDeclaration->work_samples ()->sync ($sampleIds);
119 119
 
120 120
         // If an ajax request, return the new object.
121
-        if ($request->ajax()) {
122
-            $skillDeclaration->load('references');
123
-            $skillDeclaration->load('work_samples');
124
-            $skillDeclaration->load('skill');
125
-            $skillDeclaration->load('skill_status');
126
-            return $skillDeclaration->toJson();
121
+        if ($request->ajax ()) {
122
+            $skillDeclaration->load ('references');
123
+            $skillDeclaration->load ('work_samples');
124
+            $skillDeclaration->load ('skill');
125
+            $skillDeclaration->load ('skill_status');
126
+            return $skillDeclaration->toJson ();
127 127
         }
128 128
 
129
-        return redirect()->back();
129
+        return redirect ()->back ();
130 130
     }
131 131
 
132 132
     /**
@@ -138,13 +138,13 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function destroy(Request $request, SkillDeclaration $skillDeclaration)
140 140
     {
141
-        $this->authorize('delete', $skillDeclaration);
142
-        $skillDeclaration->delete();
141
+        $this->authorize ('delete', $skillDeclaration);
142
+        $skillDeclaration->delete ();
143 143
 
144
-        if ($request->ajax()) {
144
+        if ($request->ajax ()) {
145 145
             return ['message' => 'Skill deleted'];
146 146
         }
147 147
 
148
-        return redirect()->back();
148
+        return redirect ()->back ();
149 149
     }
150 150
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Controller.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -27,20 +27,20 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function shiftFirstLevelArrayKeysToBottom(array $nestedArray)
29 29
     {
30
-        $expandedArray = $this->expandNestedArraysIntoKeyListAndValue($nestedArray);
31
-        $rotatedArray = $this->rotateKeys($expandedArray, 1);
32
-        $mergedArray = $this->mergeExpandedTrees($rotatedArray);
30
+        $expandedArray = $this->expandNestedArraysIntoKeyListAndValue ($nestedArray);
31
+        $rotatedArray = $this->rotateKeys ($expandedArray, 1);
32
+        $mergedArray = $this->mergeExpandedTrees ($rotatedArray);
33 33
         return $mergedArray;
34 34
     }
35 35
 
36 36
     protected function addKeyAsFinalIndex($finalKey, $array)
37 37
     {
38
-        if (!is_array($array)) {
38
+        if (!is_array ($array)) {
39 39
             return [$finalKey => $array];
40 40
         } else {
41 41
             $newArray = [];
42 42
             foreach ($array as $key => $value) {
43
-                $newArray[$key] = $this->addKeyAsFinalIndex($finalKey, $value);
43
+                $newArray[$key] = $this->addKeyAsFinalIndex ($finalKey, $value);
44 44
             }
45 45
             return $newArray;
46 46
         }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     protected function expandNestedArraysIntoKeyListAndValue($nestedArray)
50 50
     {
51
-        if (!is_array($nestedArray)) {
51
+        if (!is_array ($nestedArray)) {
52 52
             $expandedArray = [
53 53
                 [
54 54
                     'keys' => [],
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
         } else {
60 60
             $expandedArray = [];
61 61
             foreach ($nestedArray as $key => $value) {
62
-                $subArray = $this->expandNestedArraysIntoKeyListAndValue($value);
62
+                $subArray = $this->expandNestedArraysIntoKeyListAndValue ($value);
63 63
                 foreach ($subArray as $item) {
64
-                    array_unshift($item['keys'], $key);
64
+                    array_unshift ($item['keys'], $key);
65 65
                     $expandedArray[] = $item;
66 66
                 }
67 67
             }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $mergedArray = [];
75 75
         foreach ($expandedArray as $item) {
76 76
             $tail = &$mergedArray;
77
-            $size = count($item['keys']);
77
+            $size = count ($item['keys']);
78 78
             $i = 0;
79 79
             foreach ($item['keys'] as $key) {
80 80
                 $i = ($i + 1);
@@ -82,17 +82,17 @@  discard block
 block discarded – undo
82 82
                 if ($i == ($size)) {
83 83
                     if (!isset($tail[$key])) {
84 84
                         $tail[$key] = $item['value'];
85
-                    } elseif (!is_array($tail[$key])) {
85
+                    } elseif (!is_array ($tail[$key])) {
86 86
                         $value = $tail[$key];
87 87
                         $tail[$key] = [$value, $item['value']];
88 88
                     } else {
89
-                        array_push($tail[$key], $item['value']);
89
+                        array_push ($tail[$key], $item['value']);
90 90
                     }
91 91
                 } else {
92 92
                     // If this is not the last key, it needs to contain an array.
93 93
                     if (!isset($tail[$key])) {
94 94
                         $tail[$key] = [];
95
-                    } elseif (!is_array($tail[$key])) {
95
+                    } elseif (!is_array ($tail[$key])) {
96 96
                         $value = $tail[$key];
97 97
                         $tail[$key] = [$value];
98 98
                     }
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $rotatedArray = [];
109 109
         foreach ($expandedArray as $item) {
110
-            for ($i=0; $i<$steps; $i++) {
111
-                array_push($item['keys'], array_shift($item['keys']));
110
+            for ($i = 0; $i < $steps; $i++) {
111
+                array_push ($item['keys'], array_shift ($item['keys']));
112 112
             }
113 113
             $rotatedArray[] = $item;
114 114
         }
@@ -123,6 +123,6 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected function formatAjaxResponse(array $content)
125 125
     {
126
-        return response()->json($content);
126
+        return response ()->json ($content);
127 127
     }
128 128
 }
Please login to merge, or discard this patch.
app/Http/Controllers/FaqController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
      */
15 15
     public function __invoke()
16 16
     {
17
-        return view(
17
+        return view (
18 18
             'applicant/static_faq',
19 19
             [
20
-                'faq' => Lang::get('applicant/faq'),
21
-                'breadcrumb_home' => route('home'),
20
+                'faq' => Lang::get ('applicant/faq'),
21
+                'breadcrumb_home' => route ('home'),
22 22
                 'applicant_sidebar_active' => 'active',
23 23
             ]
24 24
         );
Please login to merge, or discard this patch.
app/Http/Controllers/ApplicationReviewController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -19,29 +19,29 @@
 block discarded – undo
19 19
      */
20 20
     public function updateForApplication(Request $request, JobApplication $application)
21 21
     {
22
-        $request->validate([
22
+        $request->validate ([
23 23
             'review_status_id' => [
24 24
                 'nullable',
25
-                Rule::in(ReviewStatus::all()->pluck('id')->toArray())
25
+                Rule::in (ReviewStatus::all ()->pluck ('id')->toArray ())
26 26
             ],
27 27
             'notes' => 'nullable|string'
28 28
         ]);
29 29
 
30 30
         $review = $application->application_review;
31 31
         if ($review === null) {
32
-            $review = new ApplicationReview();
33
-            $review->job_application()->associate($application);
32
+            $review = new ApplicationReview ();
33
+            $review->job_application ()->associate ($application);
34 34
         }
35
-        $review->fill([
36
-            'review_status_id' => $request->input('review_status_id'),
37
-            'notes' => $request->input('notes'),
35
+        $review->fill ([
36
+            'review_status_id' => $request->input ('review_status_id'),
37
+            'notes' => $request->input ('notes'),
38 38
         ]);
39
-        $review->save();
39
+        $review->save ();
40 40
 
41
-        if ($request->ajax()) {
42
-            return $review->fresh()->toJson();
41
+        if ($request->ajax ()) {
42
+            return $review->fresh ()->toJson ();
43 43
         }
44 44
 
45
-        return redirect()->back();
45
+        return redirect ()->back ();
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function redirectTo()
46 46
     {
47
-        $redirectTo = WhichPortal::isManagerPortal() ? route('manager.home') : route('home');
47
+        $redirectTo = WhichPortal::isManagerPortal () ? route('manager.home') : route ('home');
48 48
         return $redirectTo;
49 49
     }
50 50
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function __construct()
57 57
     {
58
-        $this->middleware('guest')->except('logout');
58
+        $this->middleware ('guest')->except ('logout');
59 59
     }
60 60
 
61 61
     /**
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function showLoginForm()
68 68
     {
69
-        $home_url = WhichPortal::isManagerPortal() ? route('manager.home') : route('home');
69
+        $home_url = WhichPortal::isManagerPortal () ? route('manager.home') : route ('home');
70 70
 
71
-        return view('auth/login', [
72
-            'routes' => $this->auth_routes(),
73
-            'login' => Lang::get('common/auth/login'),
71
+        return view ('auth/login', [
72
+            'routes' => $this->auth_routes (),
73
+            'login' => Lang::get ('common/auth/login'),
74 74
             'home_url' => $home_url,
75 75
         ]);
76 76
     }
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function logout(Request $request)
86 86
     {
87
-        $this->guard()->logout();
87
+        $this->guard ()->logout ();
88 88
 
89
-        $request->session()->invalidate();
89
+        $request->session ()->invalidate ();
90 90
 
91 91
         // This causes logout to redirect to the same page as login.
92
-        return redirect($this->redirectPath());
92
+        return redirect ($this->redirectPath ());
93 93
     }
94 94
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -14,25 +14,25 @@
 block discarded – undo
14 14
      */
15 15
     protected function auth_routes()
16 16
     {
17
-        if (WhichPortal::isManagerPortal()) {
17
+        if (WhichPortal::isManagerPortal ()) {
18 18
             $routes = [
19
-                'home' => route('manager.home'),
20
-                'login' => route('manager.login'),
21
-                'register' => route('manager.register'),
19
+                'home' => route ('manager.home'),
20
+                'login' => route ('manager.login'),
21
+                'register' => route ('manager.register'),
22 22
                 'password' => [
23
-                    'email' => route('manager.password.email'),
24
-                    'request' => route('manager.password.request'),
23
+                    'email' => route ('manager.password.email'),
24
+                    'request' => route ('manager.password.request'),
25 25
                 ],
26 26
                 // 'passwords.reset' => route('manager.password.reset'),
27 27
             ];
28 28
         } else {
29 29
             $routes = [
30
-                'home' => route('home'),
31
-                'login' => route('login'),
32
-                'register' => route('register'),
30
+                'home' => route ('home'),
31
+                'login' => route ('login'),
32
+                'register' => route ('register'),
33 33
                 'password' => [
34
-                    'email' => route('password.email'),
35
-                    'request' => route('password.request'),
34
+                    'email' => route ('password.email'),
35
+                    'request' => route ('password.request'),
36 36
                 ],
37 37
                 // 'passwords.reset' => route('password.reset'),
38 38
             ];
Please login to merge, or discard this patch.