@@ -14,6 +14,6 @@ |
||
14 | 14 | */ |
15 | 15 | public function index() |
16 | 16 | { |
17 | - return Department::all()->map->toApiArray(); |
|
17 | + return Department::all ()->map->toApiArray (); |
|
18 | 18 | } |
19 | 19 | } |
@@ -14,21 +14,21 @@ |
||
14 | 14 | */ |
15 | 15 | public function index() |
16 | 16 | { |
17 | - $skills = Skill::with('classifications')->get(); |
|
17 | + $skills = Skill::with ('classifications')->get (); |
|
18 | 18 | $skillsArray = []; |
19 | 19 | // TODO: improve effiency of getting translations. |
20 | 20 | foreach ($skills as $skill) { |
21 | 21 | $translations = [ |
22 | 22 | 'en' => [ |
23 | - 'name' => $skill->getTranslation('name', 'en'), |
|
24 | - 'description' => $skill->getTranslation('description', 'en'), |
|
23 | + 'name' => $skill->getTranslation ('name', 'en'), |
|
24 | + 'description' => $skill->getTranslation ('description', 'en'), |
|
25 | 25 | ], |
26 | 26 | 'fr' => [ |
27 | - 'name' => $skill->getTranslation('name', 'fr'), |
|
28 | - 'description' => $skill->getTranslation('description', 'fr'), |
|
27 | + 'name' => $skill->getTranslation ('name', 'fr'), |
|
28 | + 'description' => $skill->getTranslation ('description', 'fr'), |
|
29 | 29 | ] |
30 | 30 | ]; |
31 | - $skillsArray[] = array_merge($skill->toArray(), $translations); |
|
31 | + $skillsArray[] = array_merge ($skill->toArray (), $translations); |
|
32 | 32 | } |
33 | 33 | return ['skills' => $skillsArray]; |
34 | 34 | } |
@@ -18,8 +18,8 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function indexByJob(JobPoster $jobPoster) |
20 | 20 | { |
21 | - $tasksByJob = JobPosterKeyTask::where('job_poster_id', $jobPoster->id)->get(); |
|
22 | - return TaskResource::collection($tasksByJob); |
|
21 | + $tasksByJob = JobPosterKeyTask::where ('job_poster_id', $jobPoster->id)->get (); |
|
22 | + return TaskResource::collection ($tasksByJob); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
@@ -31,34 +31,34 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function batchUpdate(BatchUpdateJobTask $request, JobPoster $jobPoster) |
33 | 33 | { |
34 | - $newTasks = collect($request->validated()); // Collection of JobPosterKeyTasks. |
|
34 | + $newTasks = collect ($request->validated ()); // Collection of JobPosterKeyTasks. |
|
35 | 35 | $oldTasks = $jobPoster->job_poster_key_tasks; |
36 | 36 | |
37 | 37 | $savedNewTaskIds = []; |
38 | 38 | |
39 | 39 | // First, delete old tasks that weren't resubmitted, and update those that were. |
40 | 40 | foreach ($oldTasks as $task) { |
41 | - $newTask = $newTasks->firstWhere('id', $task['id']); |
|
41 | + $newTask = $newTasks->firstWhere ('id', $task['id']); |
|
42 | 42 | if ($newTask) { |
43 | 43 | $savedNewTaskIds[] = $newTask['id']; |
44 | - $task->fill(collect($newTask)->toArray()); |
|
45 | - $task->save(); |
|
44 | + $task->fill (collect ($newTask)->toArray ()); |
|
45 | + $task->save (); |
|
46 | 46 | } else { |
47 | - $task->delete(); |
|
47 | + $task->delete (); |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
51 | 51 | // Now, save any new tasks that remain. |
52 | 52 | foreach ($newTasks as $task) { |
53 | - if ($this->isUnsaved($task, $savedNewTaskIds)) { |
|
54 | - $jobPosterTask = new JobPosterKeyTask(); |
|
53 | + if ($this->isUnsaved ($task, $savedNewTaskIds)) { |
|
54 | + $jobPosterTask = new JobPosterKeyTask (); |
|
55 | 55 | $jobPosterTask->job_poster_id = $jobPoster->id; |
56 | - $jobPosterTask->fill(collect($task)->toArray()); |
|
57 | - $jobPosterTask->save(); |
|
56 | + $jobPosterTask->fill (collect ($task)->toArray ()); |
|
57 | + $jobPosterTask->save (); |
|
58 | 58 | } |
59 | 59 | } |
60 | 60 | |
61 | - return TaskResource::collection($jobPoster->fresh()->job_poster_key_tasks); |
|
61 | + return TaskResource::collection ($jobPoster->fresh ()->job_poster_key_tasks); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -70,6 +70,6 @@ discard block |
||
70 | 70 | */ |
71 | 71 | private function isUnsaved($task, array $savedTaskIds): bool |
72 | 72 | { |
73 | - return !array_key_exists('id', $task) || !in_array($task['id'], $savedTaskIds); |
|
73 | + return !array_key_exists ('id', $task) || !in_array ($task['id'], $savedTaskIds); |
|
74 | 74 | } |
75 | 75 | } |
@@ -22,39 +22,39 @@ |
||
22 | 22 | */ |
23 | 23 | public function getForJob(JobPoster $jobPoster) |
24 | 24 | { |
25 | - if (Gate::denies('view-assessment-plan', $jobPoster)) { |
|
26 | - abort(403); |
|
25 | + if (Gate::denies ('view-assessment-plan', $jobPoster)) { |
|
26 | + abort (403); |
|
27 | 27 | } |
28 | 28 | |
29 | - $criteria = Criteria::where('job_poster_id', $jobPoster->id)->get(); |
|
29 | + $criteria = Criteria::where ('job_poster_id', $jobPoster->id)->get (); |
|
30 | 30 | $criteriaTranslated = []; |
31 | 31 | foreach ($criteria as $criterion) { |
32 | 32 | // TODO: getTranslationsArray probably makes DB calls every loop. Find a way to profile & optimize. |
33 | - $criteriaTranslated[] = array_merge($criterion->toArray(), $criterion->getTranslations()); |
|
33 | + $criteriaTranslated[] = array_merge ($criterion->toArray (), $criterion->getTranslations ()); |
|
34 | 34 | } |
35 | - $criteriaIds = $criteria->pluck('id'); |
|
36 | - $assessments = Assessment::whereIn('criterion_id', $criteriaIds)->get(); |
|
35 | + $criteriaIds = $criteria->pluck ('id'); |
|
36 | + $assessments = Assessment::whereIn ('criterion_id', $criteriaIds)->get (); |
|
37 | 37 | // Check for newly created assessment plan, and initialize any empty criteria to have the |
38 | 38 | // "Narrative Review" option set. |
39 | - $assessmentCriteriaIds = $assessments->pluck('criterion_id'); |
|
40 | - $emptyAssessments = array_diff($criteriaIds->toArray(), $assessmentCriteriaIds->toArray()); |
|
39 | + $assessmentCriteriaIds = $assessments->pluck ('criterion_id'); |
|
40 | + $emptyAssessments = array_diff ($criteriaIds->toArray (), $assessmentCriteriaIds->toArray ()); |
|
41 | 41 | if (!empty($emptyAssessments)) { |
42 | - $narrativeReview = AssessmentType::where('key', 'narrative_assessment')->first(); |
|
42 | + $narrativeReview = AssessmentType::where ('key', 'narrative_assessment')->first (); |
|
43 | 43 | foreach ($emptyAssessments as $criterionId) { |
44 | - Assessment::create([ |
|
44 | + Assessment::create ([ |
|
45 | 45 | 'criterion_id' => $criterionId, |
46 | 46 | 'assessment_type_id' => $narrativeReview->id |
47 | 47 | ]); |
48 | 48 | } |
49 | - $assessments = Assessment::whereIn('criterion_id', $criteriaIds)->get(); |
|
49 | + $assessments = Assessment::whereIn ('criterion_id', $criteriaIds)->get (); |
|
50 | 50 | } |
51 | - $questions = RatingGuideQuestion::where('job_poster_id', $jobPoster->id)->get(); |
|
52 | - $answers = RatingGuideAnswer::whereIn('rating_guide_question_id', $questions->pluck('id'))->get(); |
|
51 | + $questions = RatingGuideQuestion::where ('job_poster_id', $jobPoster->id)->get (); |
|
52 | + $answers = RatingGuideAnswer::whereIn ('rating_guide_question_id', $questions->pluck ('id'))->get (); |
|
53 | 53 | return [ |
54 | 54 | 'criteria' => $criteriaTranslated, |
55 | - 'assessments' => $assessments->toArray(), |
|
56 | - 'rating_guide_questions' => $questions->toArray(), |
|
57 | - 'rating_guide_answers' => $answers->toArray() |
|
55 | + 'assessments' => $assessments->toArray (), |
|
56 | + 'rating_guide_questions' => $questions->toArray (), |
|
57 | + 'rating_guide_answers' => $answers->toArray () |
|
58 | 58 | ]; |
59 | 59 | } |
60 | 60 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 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 |
||
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, |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | */ |
84 | 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 | /** |
@@ -99,24 +99,24 @@ discard block |
||
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 | - 'translations' => $manager->getTranslations(), |
|
119 | + 'translations' => $manager->getTranslations (), |
|
120 | 120 | 'linkedInUrlPattern' => $linkedInUrlPattern, |
121 | 121 | 'twitterHandlePattern' => $twitterHandlePattern, |
122 | 122 | ]); |
@@ -133,27 +133,27 @@ discard block |
||
133 | 133 | { |
134 | 134 | // TODO: save workplace Photos. |
135 | 135 | // TODO: remove control of name in production. |
136 | - $input = $request->input(); |
|
136 | + $input = $request->input (); |
|
137 | 137 | |
138 | 138 | // redirect to error messages element if validation fails |
139 | - if (isset($request->validator) && $request->validator->fails()) { |
|
139 | + if (isset($request->validator) && $request->validator->fails ()) { |
|
140 | 140 | $hash = '#managerProfileFormErrors'; |
141 | - return redirect(route('manager.profile.edit', $manager).$hash) |
|
142 | - ->withErrors($request->validator) |
|
143 | - ->withInput(); |
|
141 | + return redirect (route ('manager.profile.edit', $manager).$hash) |
|
142 | + ->withErrors ($request->validator) |
|
143 | + ->withInput (); |
|
144 | 144 | } |
145 | 145 | |
146 | - $validated = $request->validated(); |
|
146 | + $validated = $request->validated (); |
|
147 | 147 | |
148 | 148 | $user = $manager->user; |
149 | - $user->fill($validated); |
|
149 | + $user->fill ($validated); |
|
150 | 150 | if (!empty($input['new_password'])) { |
151 | - $user->password = Hash::make($input['new_password']); |
|
151 | + $user->password = Hash::make ($input['new_password']); |
|
152 | 152 | } |
153 | - $user->save(); |
|
153 | + $user->save (); |
|
154 | 154 | |
155 | - $manager->fill($validated); |
|
156 | - $manager->save(); |
|
155 | + $manager->fill ($validated); |
|
156 | + $manager->save (); |
|
157 | 157 | |
158 | 158 | // Use the button that was clicked to decide which element to redirect to. |
159 | 159 | switch ($input['submit']) { |
@@ -171,18 +171,18 @@ discard block |
||
171 | 171 | break; |
172 | 172 | } |
173 | 173 | |
174 | - return redirect(route('manager.profile.edit', $manager).$hash); |
|
174 | + return redirect (route ('manager.profile.edit', $manager).$hash); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | public function faq(Request $request) |
178 | 178 | { |
179 | - $show_demo_notification = $request->user() && $request->user()->isDemoManager(); |
|
179 | + $show_demo_notification = $request->user () && $request->user ()->isDemoManager (); |
|
180 | 180 | |
181 | - return view( |
|
181 | + return view ( |
|
182 | 182 | 'applicant/static_faq', |
183 | 183 | [ |
184 | - 'breadcrumb_home' => route('manager.home'), |
|
185 | - 'faq' => Lang::get('applicant/faq'), |
|
184 | + 'breadcrumb_home' => route ('manager.home'), |
|
185 | + 'faq' => Lang::get ('applicant/faq'), |
|
186 | 186 | 'manager_sidebar_active' => 'active', |
187 | 187 | 'show_demo_notification' => $show_demo_notification, |
188 | 188 | ] |
@@ -16,15 +16,15 @@ |
||
16 | 16 | */ |
17 | 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 | } |
@@ -41,11 +41,11 @@ discard block |
||
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, |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | */ |
63 | 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 | /** |
@@ -75,14 +75,14 @@ discard block |
||
75 | 75 | */ |
76 | 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 |
||
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 |
||
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 | ] |
@@ -126,42 +126,42 @@ discard block |
||
126 | 126 | */ |
127 | 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 |
||
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 | } |
@@ -17,12 +17,12 @@ discard block |
||
17 | 17 | public function index(Request $request) |
18 | 18 | { |
19 | 19 | $notificationsArray = []; |
20 | - if ($request->has('job_poster_id') && $request->user() != null) { |
|
21 | - $jobPosterId = $request->input('job_poster_id'); |
|
22 | - $notifications = AssessmentPlanNotification::where('job_poster_id', $jobPosterId)->get(); |
|
20 | + if ($request->has ('job_poster_id') && $request->user () != null) { |
|
21 | + $jobPosterId = $request->input ('job_poster_id'); |
|
22 | + $notifications = AssessmentPlanNotification::where ('job_poster_id', $jobPosterId)->get (); |
|
23 | 23 | foreach ($notifications as $notification) { |
24 | - if ($request->user()->can('view', $notification)) { |
|
25 | - $notificationsArray[] = $notification->toArray(); |
|
24 | + if ($request->user ()->can ('view', $notification)) { |
|
25 | + $notificationsArray[] = $notification->toArray (); |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | } |
@@ -37,8 +37,8 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function show(AssessmentPlanNotification $assessmentPlanNotification) |
39 | 39 | { |
40 | - $this->authorize('view', $assessmentPlanNotification); |
|
41 | - return $assessmentPlanNotification->toArray(); |
|
40 | + $this->authorize ('view', $assessmentPlanNotification); |
|
41 | + return $assessmentPlanNotification->toArray (); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -51,15 +51,15 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function update(Request $request, AssessmentPlanNotification $assessmentPlanNotification) |
53 | 53 | { |
54 | - $this->authorize('update', $assessmentPlanNotification); |
|
55 | - $assessmentPlanNotification->fill([ |
|
56 | - 'acknowledged' => $request->input('acknowledged') |
|
54 | + $this->authorize ('update', $assessmentPlanNotification); |
|
55 | + $assessmentPlanNotification->fill ([ |
|
56 | + 'acknowledged' => $request->input ('acknowledged') |
|
57 | 57 | ]); |
58 | - $assessmentPlanNotification->save(); |
|
58 | + $assessmentPlanNotification->save (); |
|
59 | 59 | |
60 | 60 | return [ |
61 | 61 | 'success' => "Successfully updated assessment plan notification $assessmentPlanNotification->id", |
62 | - 'assessment_plan_notification' => $assessmentPlanNotification->toArray(), |
|
62 | + 'assessment_plan_notification' => $assessmentPlanNotification->toArray (), |
|
63 | 63 | ]; |
64 | 64 | } |
65 | 65 | |
@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function destroy(AssessmentPlanNotification $assessmentPlanNotification) |
73 | 73 | { |
74 | - $this->authorize('delete', $assessmentPlanNotification); |
|
75 | - $assessmentPlanNotification->delete(); |
|
74 | + $this->authorize ('delete', $assessmentPlanNotification); |
|
75 | + $assessmentPlanNotification->delete (); |
|
76 | 76 | |
77 | 77 | return [ |
78 | 78 | 'success' => "Successfully deleted assessment plan notification $assessmentPlanNotification->id" |
@@ -14,10 +14,10 @@ |
||
14 | 14 | */ |
15 | 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 | } |