@@ -24,7 +24,7 @@ |
||
24 | 24 | // create an instance of the model to be able to get the table name |
25 | 25 | $instance = new static(); |
26 | 26 | $conn = DB::connection($instance->getConnectionName()); |
27 | - $table = Config::get('database.connections.'.Config::get('database.default').'.pr e fix').$instance->getTable(); |
|
27 | + $table = Config::get('database.connections.' . Config::get('database.default') . '.pr e fix') . $instance->getTable(); |
|
28 | 28 | // MongoDB columns are alway nullable |
29 | 29 | if ($conn->getConfig()['driver'] === 'mongodb') { |
30 | 30 | return true; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | // If job is being modified, only want to log when it goes from unpublished to published |
33 | 33 | if (($job->wasRecentlyCreated && $job->published) || |
34 | 34 | (!$job->wasRecentlyCreated && $job->published && !$job->getOriginal('published'))) { |
35 | - Log::notice('Job published: job {id='.$job->id.'} published by manager {id='.$job->manager->id.', email='.$job->manager->user->email.'}'); |
|
35 | + Log::notice('Job published: job {id=' . $job->id . '} published by manager {id=' . $job->manager->id . ', email=' . $job->manager->user->email . '}'); |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | ); |
64 | 64 | |
65 | 65 | View::composer( |
66 | - ['common/relatives','common/reference','common/relatives-projects', |
|
66 | + ['common/relatives', 'common/reference', 'common/relatives-projects', |
|
67 | 67 | 'common/sample', 'common/skill', 'common/modals/create_reference'], |
68 | 68 | 'App\Http\ViewComposers\RelativeComposer' |
69 | 69 | ); |
@@ -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; |
@@ -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); |