Passed
Push — bugfix/random-ui-stuff ( 310aaf...d6d2ab )
by Josh
60:17 queued 49:01
created
app/Http/Controllers/Auth/ResetPasswordController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return string
31 31
      */
32
-    protected function redirectTo()
32
+    protected function redirectTo ()
33 33
     {
34
-        $redirectTo = WhichPortal::isManagerPortal() ? route('manager.home') : route('home');
34
+        $redirectTo = WhichPortal::isManagerPortal () ? route('manager.home') : route ('home');
35 35
         return $redirectTo;
36 36
     }
37 37
 
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @return void
42 42
      */
43
-    public function __construct()
43
+    public function __construct ()
44 44
     {
45
-        $this->middleware('guest');
45
+        $this->middleware ('guest');
46 46
     }
47 47
 
48 48
     /**
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
      * @param  string|null              $token   Validation token.
55 55
      * @return \Illuminate\Http\Response
56 56
      */
57
-    public function showResetForm(Request $request, $token = null)
57
+    public function showResetForm (Request $request, $token = null)
58 58
     {
59
-        return view('auth.passwords.reset')->with([
59
+        return view ('auth.passwords.reset')->with ([
60 60
             'token' => $token,
61 61
             'email' => $request->email,
62
-            'routes' => $this->auth_routes(),
63
-            'reset_password' => Lang::get('common/auth/reset_password'),
62
+            'routes' => $this->auth_routes (),
63
+            'reset_password' => Lang::get ('common/auth/reset_password'),
64 64
         ]);
65 65
     }
66 66
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return array
72 72
      */
73
-    protected function rules()
73
+    protected function rules ()
74 74
     {
75 75
         return [
76 76
             'token' => 'required',
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return array
92 92
      */
93
-    protected function validationErrorMessages()
93
+    protected function validationErrorMessages ()
94 94
     {
95 95
         return [];
96 96
     }
Please login to merge, or discard this patch.
app/Http/Controllers/RatingGuideAnswerController.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -15,17 +15,17 @@  discard block
 block discarded – undo
15 15
      * @throws \InvalidArgumentException For missing $expected_answer.
16 16
      * @return mixed
17 17
      */
18
-    public function store(StoreRatingGuideAnswer $request)
18
+    public function store (StoreRatingGuideAnswer $request)
19 19
     {
20 20
         // Authorization handled by the FormRequest.
21 21
         // Data validation handled by this line.
22
-        $data = $request->validated();
23
-        $ratingGuideAnswer = new RatingGuideAnswer($data);
24
-        $ratingGuideAnswer->save();
22
+        $data = $request->validated ();
23
+        $ratingGuideAnswer = new RatingGuideAnswer ($data);
24
+        $ratingGuideAnswer->save ();
25 25
 
26 26
         return [
27 27
             'success' => "Successfully created rating guide answer $ratingGuideAnswer->id",
28
-            'rating_guide_answer' => $ratingGuideAnswer->toArray(),
28
+            'rating_guide_answer' => $ratingGuideAnswer->toArray (),
29 29
         ];
30 30
     }
31 31
 
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
      * @param  \App\Models\RatingGuideAnswer $ratingGuideAnswer Incoming object.
36 36
      * @return mixed
37 37
      */
38
-    public function show(RatingGuideAnswer $ratingGuideAnswer)
38
+    public function show (RatingGuideAnswer $ratingGuideAnswer)
39 39
     {
40
-        $this->authorize('view', $ratingGuideAnswer);
41
-        return $ratingGuideAnswer->toArray();
40
+        $this->authorize ('view', $ratingGuideAnswer);
41
+        return $ratingGuideAnswer->toArray ();
42 42
     }
43 43
 
44 44
     /**
@@ -49,18 +49,18 @@  discard block
 block discarded – undo
49 49
      * @throws \InvalidArgumentException For empty $expected_answer.
50 50
      * @return mixed
51 51
      */
52
-    public function update(UpdateRatingGuideAnswer $request, RatingGuideAnswer $ratingGuideAnswer)
52
+    public function update (UpdateRatingGuideAnswer $request, RatingGuideAnswer $ratingGuideAnswer)
53 53
     {
54 54
         // Authorization handled by the FormRequest.
55 55
         // Data validation handled by this line.
56
-        $data = $request->validated();
56
+        $data = $request->validated ();
57 57
 
58
-        $ratingGuideAnswer->fill($data);
59
-        $ratingGuideAnswer->save();
60
-        $ratingGuideAnswer->refresh();
58
+        $ratingGuideAnswer->fill ($data);
59
+        $ratingGuideAnswer->save ();
60
+        $ratingGuideAnswer->refresh ();
61 61
         return [
62 62
             'success' => "Successfully updated rating guide answer $ratingGuideAnswer->id",
63
-            'rating_guide_answer' => $ratingGuideAnswer->toArray(),
63
+            'rating_guide_answer' => $ratingGuideAnswer->toArray (),
64 64
         ];
65 65
     }
66 66
 
@@ -70,10 +70,10 @@  discard block
 block discarded – undo
70 70
      * @param  \App\Models\RatingGuideAnswer $ratingGuideAnswer Incoming object.
71 71
      * @return mixed
72 72
      */
73
-    public function destroy(RatingGuideAnswer $ratingGuideAnswer)
73
+    public function destroy (RatingGuideAnswer $ratingGuideAnswer)
74 74
     {
75
-        $this->authorize('delete', $ratingGuideAnswer);
76
-        $ratingGuideAnswer->delete();
75
+        $this->authorize ('delete', $ratingGuideAnswer);
76
+        $ratingGuideAnswer->delete ();
77 77
 
78 78
         return [
79 79
             'success' => "Successfully deleted rating guide answer $ratingGuideAnswer->id"
Please login to merge, or discard this patch.
app/Http/Controllers/ApplicantProfileController.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @param  \App\Models\Applicant    $applicant Incoming Applicant object.
28 28
      * @return \Illuminate\Http\Response
29 29
      */
30
-    public function show(Request $request, Applicant $applicant)
30
+    public function show (Request $request, Applicant $applicant)
31 31
     {
32 32
         /*
33 33
          * TODO:
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
          *             description // Question description text
42 42
          */
43 43
 
44
-        return view(
44
+        return view (
45 45
             'manager/applicant_profile',
46 46
             [
47 47
                 // Localization Strings.
48
-                'profile' => Lang::get('manager/applicant_profile'), // Change text
48
+                'profile' => Lang::get ('manager/applicant_profile'), // Change text
49 49
                 // User Data.
50 50
                 'user' => $applicant->user,
51 51
                 'applicant' => $applicant,
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
      * @param  \Illuminate\Http\Request $request Incoming request.
61 61
      * @return \Illuminate\Http\Response
62 62
      */
63
-    public function editAuthenticated(Request $request)
63
+    public function editAuthenticated (Request $request)
64 64
     {
65
-        $applicant = $request->user()->applicant;
66
-        return redirect(route('profile.about.edit', $applicant));
65
+        $applicant = $request->user ()->applicant;
66
+        return redirect (route ('profile.about.edit', $applicant));
67 67
     }
68 68
 
69 69
     /**
@@ -73,16 +73,16 @@  discard block
 block discarded – undo
73 73
      * @param  \App\Models\Applicant    $applicant Applicant to view and edit.
74 74
      * @return \Illuminate\Http\Response
75 75
      */
76
-    public function edit(Request $request, Applicant $applicant)
76
+    public function edit (Request $request, Applicant $applicant)
77 77
     {
78
-        $profileQuestions = ApplicantProfileQuestion::all();
78
+        $profileQuestions = ApplicantProfileQuestion::all ();
79 79
 
80
-        $profileText = Lang::get('applicant/applicant_profile');
80
+        $profileText = Lang::get ('applicant/applicant_profile');
81 81
 
82 82
         $profileQuestionForms = [];
83 83
         foreach ($profileQuestions as $question) {
84 84
             $answerObj = $applicant->applicant_profile_answers
85
-                ->where('applicant_profile_question_id', $question->id)->first();
85
+                ->where ('applicant_profile_question_id', $question->id)->first ();
86 86
             $answer = $answerObj ? $answerObj->answer : null;
87 87
 
88 88
             $formValues = [
@@ -93,13 +93,13 @@  discard block
 block discarded – undo
93 93
                 'answer_label' => $profileText['about_section']['answer_label'],
94 94
                 'input_name' => $this->answerFormInputName.'['.$question->id.']'
95 95
             ];
96
-            array_push($profileQuestionForms, $formValues);
96
+            array_push ($profileQuestionForms, $formValues);
97 97
         }
98 98
 
99 99
         $linkedInUrlPattern = LinkedInUrlRule::PATTERN;
100 100
         $twitterHandlePattern = TwitterHandleRule::PATTERN;
101 101
 
102
-        return view(
102
+        return view (
103 103
             'applicant/profile_01_about',
104 104
             [
105 105
                 // Localized strings.
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 'user' => $applicant->user,
111 111
                 'applicant' => $applicant,
112 112
                 'profile_photo_url' => '/images/user.png', // TODO: get real photos.
113
-                'form_submit_action' => route('profile.about.update', $applicant),
113
+                'form_submit_action' => route ('profile.about.update', $applicant),
114 114
                 'linkedInUrlPattern' => $linkedInUrlPattern,
115 115
                 'twitterHandlePattern' => $twitterHandlePattern,
116 116
             ]
@@ -124,44 +124,44 @@  discard block
 block discarded – undo
124 124
      * @param  \App\Models\Applicant    $applicant Applicant object to update.
125 125
      * @return \Illuminate\Http\Response
126 126
      */
127
-    public function update(Request $request, Applicant $applicant)
127
+    public function update (Request $request, Applicant $applicant)
128 128
     {
129
-        $questions = ApplicantProfileQuestion::all();
129
+        $questions = ApplicantProfileQuestion::all ();
130 130
 
131
-        $validator = new UpdateApplicationProfileValidator($applicant);
132
-        $validator->validate($request->all());
131
+        $validator = new UpdateApplicationProfileValidator ($applicant);
132
+        $validator->validate ($request->all ());
133 133
 
134 134
         foreach ($questions as $question) {
135
-            $answerName = $this->answerFormInputName . '.' . $question->id;
136
-            if ($request->has($answerName)) {
137
-                $answer = ApplicantProfileAnswer::where(
135
+            $answerName = $this->answerFormInputName.'.'.$question->id;
136
+            if ($request->has ($answerName)) {
137
+                $answer = ApplicantProfileAnswer::where (
138 138
                     [
139 139
                         'applicant_id' => $applicant->id,
140 140
                         'applicant_profile_question_id' => $question->id
141 141
                     ]
142
-                )->first();
142
+                )->first ();
143 143
                 if ($answer == null) {
144
-                    $answer = new ApplicantProfileAnswer();
145
-                    $answer->applicant_id =$applicant->id;
144
+                    $answer = new ApplicantProfileAnswer ();
145
+                    $answer->applicant_id = $applicant->id;
146 146
                     $answer->applicant_profile_question_id = $question->id;
147 147
                 }
148
-                $answer->answer = $request->input($answerName);
149
-                $answer->save();
148
+                $answer->answer = $request->input ($answerName);
149
+                $answer->save ();
150 150
             }
151 151
         }
152 152
 
153
-        $input = $request->input();
154
-        $applicant->fill(
153
+        $input = $request->input ();
154
+        $applicant->fill (
155 155
             [
156 156
                 'tagline' => $input['tagline'],
157 157
                 'twitter_username' => $input['twitter_username'],
158 158
                 'linkedin_url' => $input['linkedin_url'],
159 159
             ]
160 160
         );
161
-        $applicant->save();
161
+        $applicant->save ();
162 162
 
163 163
         $user = $applicant->user;
164
-        $user->fill(
164
+        $user->fill (
165 165
             [
166 166
                 'first_name' => $input['profile_first_name'],
167 167
                 'last_name' => $input['profile_last_name'],
@@ -169,10 +169,10 @@  discard block
 block discarded – undo
169 169
             ]
170 170
         );
171 171
         if ($input['new_password']) {
172
-            $user->password = Hash::make($input['new_password']); // TODO: change password in seperate form!
172
+            $user->password = Hash::make ($input['new_password']); // TODO: change password in seperate form!
173 173
         }
174
-        $user->save();
174
+        $user->save ();
175 175
 
176
-        return redirect()->route('profile.about.edit', $applicant);
176
+        return redirect ()->route ('profile.about.edit', $applicant);
177 177
     }
178 178
 }
Please login to merge, or discard this patch.
app/Http/Controllers/JobBuilderController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@
 block discarded – undo
12 12
      * Show the Job Builder mini SPA
13 13
      * @return \Illuminate\Http\Response
14 14
      */
15
-    public function show()
15
+    public function show ()
16 16
     {
17
-        return view(
17
+        return view (
18 18
             'manager/job-builder-root'
19
-        )->with([
20
-            'title' => Lang::get('manager/job_builder.title'),
19
+        )->with ([
20
+            'title' => Lang::get ('manager/job_builder.title'),
21 21
         ]);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
app/Http/Controllers/CourseController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,17 +14,17 @@
 block discarded – undo
14 14
      * @param  \App\Models\Course       $course  Incoming Course.
15 15
      * @return \Illuminate\Http\Response
16 16
      */
17
-    public function destroy(Request $request, Course $course)
17
+    public function destroy (Request $request, Course $course)
18 18
     {
19
-        $this->authorize('delete', $course);
20
-        $course->delete();
19
+        $this->authorize ('delete', $course);
20
+        $course->delete ();
21 21
 
22
-        if ($request->ajax()) {
22
+        if ($request->ajax ()) {
23 23
             return [
24 24
                 'message' => 'Course delete',
25 25
             ];
26 26
         }
27 27
 
28
-        return back();
28
+        return back ();
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
app/Http/Controllers/DegreeController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,17 +14,17 @@
 block discarded – undo
14 14
      * @param  \App\Models\Degree       $degree  Incoming Degree.
15 15
      * @return \Illuminate\Http\Response
16 16
      */
17
-    public function destroy(Request $request, Degree $degree)
17
+    public function destroy (Request $request, Degree $degree)
18 18
     {
19
-        $this->authorize('delete', $degree);
20
-        $degree->delete();
19
+        $this->authorize ('delete', $degree);
20
+        $degree->delete ();
21 21
 
22
-        if ($request->ajax()) {
22
+        if ($request->ajax ()) {
23 23
             return [
24 24
                 'message' => 'Degree deleted',
25 25
             ];
26 26
         }
27 27
 
28
-        return back();
28
+        return back ();
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
app/Http/Controllers/ManagerProfileController.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
      * @param  \App\Models\Manager      $manager Incoming Manager.
25 25
      * @return \Illuminate\Http\Response
26 26
      */
27
-    public function show(Request $request, Manager $manager)
27
+    public function show (Request $request, Manager $manager)
28 28
     {
29
-        $manager_profile = Lang::get('applicant/manager_profile');
29
+        $manager_profile = Lang::get ('applicant/manager_profile');
30 30
 
31 31
         $manager_profile_sections = [
32 32
             [
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
             ]
66 66
         ];
67 67
 
68
-        return view('applicant/manager', [
68
+        return view ('applicant/manager', [
69 69
             'manager_profile' => $manager_profile,
70
-            'urls' => Lang::get('common/urls'),
70
+            'urls' => Lang::get ('common/urls'),
71 71
             'manager' => $manager,
72 72
             'manager_profile_photo_url' => '/images/user.png', // TODO get real photo.
73 73
             'manager_profile_sections' => $manager_profile_sections,
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
      * @param  \Illuminate\Http\Request $request Incoming Request.
82 82
      * @return \Illuminate\Http\Response
83 83
      */
84
-    public function editAuthenticated(Request $request)
84
+    public function editAuthenticated (Request $request)
85 85
     {
86
-        $manager = $request->user()->manager;
87
-        return redirect(route('manager.profile.edit', $manager));
86
+        $manager = $request->user ()->manager;
87
+        return redirect (route ('manager.profile.edit', $manager));
88 88
     }
89 89
 
90 90
     /**
@@ -94,30 +94,30 @@  discard block
 block discarded – undo
94 94
      * @param  \App\Models\Manager      $manager Incoming Manager.
95 95
      * @return \Illuminate\Http\Response
96 96
      */
97
-    public function edit(Request $request, Manager $manager)
97
+    public function edit (Request $request, Manager $manager)
98 98
     {
99 99
         // TODO: Improve workplace photos, and reference them in template direction from WorkEnvironment model.
100 100
         $workplacePhotos = [];
101 101
 
102
-        $frequencies = Frequency::all();
102
+        $frequencies = Frequency::all ();
103 103
         $linkedInUrlPattern = LinkedInUrlRule::PATTERN;
104 104
         $twitterHandlePattern = TwitterHandleRule::PATTERN;
105 105
 
106
-        return view('manager/profile', [
106
+        return view ('manager/profile', [
107 107
             // Localization.
108
-            'profile_l10n' => Lang::get('manager/profile'),
108
+            'profile_l10n' => Lang::get ('manager/profile'),
109 109
             // Data.
110
-            'urls' => Lang::get('common/urls'),
110
+            'urls' => Lang::get ('common/urls'),
111 111
             'user' => $manager->user,
112 112
             'manager' => $manager,
113 113
             'manager_profile_photo_url' => '/images/user.png', // TODO get real photo.
114 114
             'workplace_photos' => $workplacePhotos,
115
-            'departments' => Department::all(),
115
+            'departments' => Department::all (),
116 116
             'telework_options' => $frequencies,
117 117
             'flex_hour_options' => $frequencies,
118 118
             'radio_options' => $frequencies,
119
-            'managerEN' => $manager->translate('en'),
120
-            'managerFR' => $manager->translate('fr'),
119
+            'managerEN' => $manager->translate ('en'),
120
+            'managerFR' => $manager->translate ('fr'),
121 121
             'linkedInUrlPattern' => $linkedInUrlPattern,
122 122
             'twitterHandlePattern' => $twitterHandlePattern,
123 123
         ]);
@@ -130,31 +130,31 @@  discard block
 block discarded – undo
130 130
      * @param  \App\Models\Manager                          $manager Incoming Manager.
131 131
      * @return \Illuminate\Http\Response
132 132
      */
133
-    public function update(UpdateManagerProfileRequest $request, Manager $manager)
133
+    public function update (UpdateManagerProfileRequest $request, Manager $manager)
134 134
     {
135 135
         // TODO: save workplace Photos.
136 136
         // TODO: remove control of name in production.
137
-        $input = $request->input();
137
+        $input = $request->input ();
138 138
 
139 139
         // redirect to error messages element if validation fails
140
-        if (isset($request->validator) && $request->validator->fails()) {
140
+        if (isset($request->validator) && $request->validator->fails ()) {
141 141
             $hash = '#managerProfileFormErrors';
142
-            return redirect(route('manager.profile.edit', $manager).$hash)
143
-                        ->withErrors($request->validator)
144
-                        ->withInput();
142
+            return redirect (route ('manager.profile.edit', $manager).$hash)
143
+                        ->withErrors ($request->validator)
144
+                        ->withInput ();
145 145
         }
146 146
 
147
-        $validated = $request->validated();
147
+        $validated = $request->validated ();
148 148
 
149 149
         $user = $manager->user;
150
-        $user->fill($validated);
150
+        $user->fill ($validated);
151 151
         if (!empty($input['new_password'])) {
152
-            $user->password = Hash::make($input['new_password']);
152
+            $user->password = Hash::make ($input['new_password']);
153 153
         }
154
-        $user->save();
154
+        $user->save ();
155 155
 
156
-        $manager->fill($validated);
157
-        $manager->save();
156
+        $manager->fill ($validated);
157
+        $manager->save ();
158 158
 
159 159
         // Use the button that was clicked to decide which element to redirect to.
160 160
         switch ($input['submit']) {
@@ -172,18 +172,18 @@  discard block
 block discarded – undo
172 172
                 break;
173 173
         }
174 174
 
175
-        return redirect(route('manager.profile.edit', $manager).$hash);
175
+        return redirect (route ('manager.profile.edit', $manager).$hash);
176 176
     }
177 177
 
178
-    public function faq(Request $request)
178
+    public function faq (Request $request)
179 179
     {
180
-        $show_demo_notification = $request->user() && $request->user()->isDemoManager();
180
+        $show_demo_notification = $request->user () && $request->user ()->isDemoManager ();
181 181
 
182
-        return view(
182
+        return view (
183 183
             'applicant/static_faq',
184 184
             [
185
-                'breadcrumb_home' => route('manager.home'),
186
-                'faq' => Lang::get('applicant/faq'),
185
+                'breadcrumb_home' => route ('manager.home'),
186
+                'faq' => Lang::get ('applicant/faq'),
187 187
                 'manager_sidebar_active' => 'active',
188 188
                 'show_demo_notification' => $show_demo_notification,
189 189
             ]
Please login to merge, or discard this patch.
app/Http/Controllers/Api/ManagerApiController.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * Class constructor.
15 15
      */
16
-    public function __construct()
16
+    public function __construct ()
17 17
     {
18 18
         // This applies the appropriate policy to each resource route.
19
-        $this->authorizeResource(Manager::class, 'manager');
19
+        $this->authorizeResource (Manager::class, 'manager');
20 20
     }
21 21
 
22 22
     /**
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @return \Illuminate\Http\Response
26 26
      */
27
-    public function index()
27
+    public function index ()
28 28
     {
29 29
         // TODO: complete.
30 30
     }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @param  \Illuminate\Http\Request $request Incoming Request.
36 36
      * @return \Illuminate\Http\Response
37 37
      */
38
-    public function store(Request $request)
38
+    public function store (Request $request)
39 39
     {
40 40
         // TODO: complete.
41 41
     }
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
      * @param  \App\Models\Manager $manager Incoming Manager.
47 47
      * @return \Illuminate\Http\Response
48 48
      */
49
-    public function show(Manager $manager)
49
+    public function show (Manager $manager)
50 50
     {
51
-        return response()->json($manager->toApiArray());
51
+        return response ()->json ($manager->toApiArray ());
52 52
     }
53 53
 
54 54
     /**
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @return \Illuminate\Http\Response
58 58
      */
59
-    public function showAuthenticated()
59
+    public function showAuthenticated ()
60 60
     {
61
-        $user = Auth::user();
61
+        $user = Auth::user ();
62 62
         if ($user !== null && $user->manager !== null) {
63
-            return response()->json($user->manager->toApiArray());
63
+            return response ()->json ($user->manager->toApiArray ());
64 64
         }
65
-        return response()->json([]);
65
+        return response ()->json ([]);
66 66
     }
67 67
 
68 68
     /**
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
      * @param  \App\Models\Manager                 $manager Incoming Manager.
73 73
      * @return \Illuminate\Http\Response
74 74
      */
75
-    public function update(UpdateManagerApi $request, Manager $manager)
75
+    public function update (UpdateManagerApi $request, Manager $manager)
76 76
     {
77
-        $validated = $request->validated();
78
-        $manager->fill($validated);
79
-        $manager->save();
80
-        return response()->json($manager->toApiArray());
77
+        $validated = $request->validated ();
78
+        $manager->fill ($validated);
79
+        $manager->save ();
80
+        return response ()->json ($manager->toApiArray ());
81 81
     }
82 82
 
83 83
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @param  \App\Models\Manager $manager Incoming Manager.
87 87
      * @return \Illuminate\Http\Response
88 88
      */
89
-    public function destroy(Manager $manager)
89
+    public function destroy (Manager $manager)
90 90
     {
91 91
         // TODO: complete.
92 92
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Api/DepartmentController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
      *
13 13
      * @return mixed
14 14
      */
15
-    public function index()
15
+    public function index ()
16 16
     {
17
-        return Department::all()->map->toApiArray();
17
+        return Department::all ()->map->toApiArray ();
18 18
     }
19 19
 }
Please login to merge, or discard this patch.