@@ -35,7 +35,7 @@ |
||
35 | 35 | // If no profile exists yet create one. |
36 | 36 | // Admins should be given an applicant and manager profile |
37 | 37 | if ($user->isApplicant() || |
38 | - $user->isAdmin() ) { |
|
38 | + $user->isAdmin()) { |
|
39 | 39 | $applicantProfile = $user->applicant; |
40 | 40 | if ($applicantProfile === null) { |
41 | 41 | $applicantProfile = new Applicant(); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | // redirect to error messages element if validation fails |
139 | 139 | if (isset($request->validator) && $request->validator->fails()) { |
140 | 140 | $hash = '#managerProfileFormErrors'; |
141 | - return redirect(route('manager.profile.edit', $manager).$hash) |
|
141 | + return redirect(route('manager.profile.edit', $manager) . $hash) |
|
142 | 142 | ->withErrors($request->validator) |
143 | 143 | ->withInput(); |
144 | 144 | } |
@@ -171,7 +171,7 @@ 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) |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | 'description' => $question->description, |
92 | 92 | 'answer' => $answer, |
93 | 93 | 'answer_label' => $profileText['about_section']['answer_label'], |
94 | - 'input_name' => $this->answerFormInputName.'['.$question->id.']' |
|
94 | + 'input_name' => $this->answerFormInputName . '[' . $question->id . ']' |
|
95 | 95 | ]; |
96 | 96 | array_push($profileQuestionForms, $formValues); |
97 | 97 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | )->first(); |
143 | 143 | if ($answer == null) { |
144 | 144 | $answer = new ApplicantProfileAnswer(); |
145 | - $answer->applicant_id =$applicant->id; |
|
145 | + $answer->applicant_id = $applicant->id; |
|
146 | 146 | $answer->applicant_profile_question_id = $question->id; |
147 | 147 | } |
148 | 148 | $answer->answer = $request->input($answerName); |
@@ -107,7 +107,7 @@ |
||
107 | 107 | { |
108 | 108 | $rotatedArray = []; |
109 | 109 | foreach ($expandedArray as $item) { |
110 | - for ($i=0; $i<$steps; $i++) { |
|
110 | + for ($i = 0; $i < $steps; $i++) { |
|
111 | 111 | array_push($item['keys'], array_shift($item['keys'])); |
112 | 112 | } |
113 | 113 | $rotatedArray[] = $item; |
@@ -9,7 +9,7 @@ |
||
9 | 9 | use Jenssegers\Date\Date; |
10 | 10 | use DateTime; |
11 | 11 | |
12 | -abstract class BaseModel extends Eloquent { |
|
12 | +abstract class BaseModel extends Eloquent{ |
|
13 | 13 | //Override date functions to return Jenssegers Data instead of Carbon |
14 | 14 | |
15 | 15 | /** |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * @property \Jenssegers\Date\Date $created_at |
13 | 13 | * @property \Jenssegers\Date\Date $updated_at |
14 | 14 | */ |
15 | -class Frequency extends BaseModel { |
|
15 | +class Frequency extends BaseModel{ |
|
16 | 16 | |
17 | 17 | protected $fillable = []; |
18 | 18 |
@@ -12,8 +12,8 @@ |
||
12 | 12 | public function before($user, $ability) |
13 | 13 | { |
14 | 14 | if ($user->isAdmin()) { |
15 | - $userText = '{id='.$user->id.'}'; |
|
16 | - Log::notice('User '.$userText.' has bypassed policy as an Admin'); |
|
15 | + $userText = '{id=' . $user->id . '}'; |
|
16 | + Log::notice('User ' . $userText . ' has bypassed policy as an Admin'); |
|
17 | 17 | return true; |
18 | 18 | } |
19 | 19 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $authManager = ($user->isManager() && |
26 | 26 | $jobApplication->job_poster->manager->user->is($user)); |
27 | 27 | |
28 | - return $authApplicant||$authManager; |
|
28 | + return $authApplicant || $authManager; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | // Ensure the user can make answers, question exists, and user is the owner of the question it answers. |
21 | 21 | if ($this->user()->can('create', RatingGuideAnswer::class)) { |
22 | - $questionId = (int) $this->input('rating_guide_question_id'); |
|
22 | + $questionId = (int)$this->input('rating_guide_question_id'); |
|
23 | 23 | if ($questionId) { |
24 | 24 | $question = RatingGuideQuestion::find($questionId); |
25 | 25 | return $question && $this->user()->can('update', $question); |