@@ -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 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | protected function defineGates(): void |
67 | 67 | { |
68 | - Gate::define('view-assessment-plan', function ($user, $jobPoster) { |
|
68 | + Gate::define('view-assessment-plan', function($user, $jobPoster){ |
|
69 | 69 | return $user->isAdmin() || |
70 | 70 | $user->isManager() && $jobPoster->manager->user_id === $user->id; |
71 | 71 | }); |
@@ -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 | ); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function register() |
32 | 32 | { |
33 | - $this->app->singleton(WhichPortal::class, function ($app) { |
|
33 | + $this->app->singleton(WhichPortal::class, function($app){ |
|
34 | 34 | return new WhichPortal(); |
35 | 35 | }); |
36 | 36 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | public function indexByJob(JobPoster $jobPoster) |
24 | 24 | { |
25 | - $toApiArray = array($this, 'toApiArray'); |
|
25 | + $toApiArray = array ($this, 'toApiArray'); |
|
26 | 26 | $taskArray = JobPosterKeyTask::where('job_poster_id', $jobPoster->id)->get()->map($toApiArray); |
27 | 27 | return response()->json($taskArray); |
28 | 28 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function batchUpdate(BatchUpdateJobTask $request, JobPoster $jobPoster) |
38 | 38 | { |
39 | - $toApiArray = array($this, 'toApiArray'); |
|
39 | + $toApiArray = array ($this, 'toApiArray'); |
|
40 | 40 | |
41 | 41 | $newTasks = collect($request->validated()); // Collection of JobPosterKeyTasks. |
42 | 42 | $oldTasks = $jobPoster->job_poster_key_tasks; |
@@ -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); |
@@ -126,12 +126,12 @@ |
||
126 | 126 | // TODO: replace route('manager.show',manager.id) in templates with link using slug. |
127 | 127 | $criteria = [ |
128 | 128 | 'essential' => $jobPoster->criteria->filter( |
129 | - function ($value, $key) { |
|
129 | + function($value, $key){ |
|
130 | 130 | return $value->criteria_type->name == 'essential'; |
131 | 131 | } |
132 | 132 | ), |
133 | 133 | 'asset' => $jobPoster->criteria->filter( |
134 | - function ($value, $key) { |
|
134 | + function($value, $key){ |
|
135 | 135 | return $value->criteria_type->name == 'asset'; |
136 | 136 | } |
137 | 137 | ), |