@@ -25,7 +25,7 @@ |
||
25 | 25 | public function rules() : array |
26 | 26 | { |
27 | 27 | return [ |
28 | - 'name' => 'required|unique_translation:skills,name' . (isset($this->id) ? ",{$this->id}" : ''), |
|
28 | + 'name' => 'required|unique_translation:skills,name'.(isset($this->id) ? ",{$this->id}" : ''), |
|
29 | 29 | 'description' => 'required', |
30 | 30 | 'skill_type_id' => 'exists:skill_types,id' |
31 | 31 | ]; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $validator->validate($request->all()); |
133 | 133 | |
134 | 134 | foreach ($questions as $question) { |
135 | - $answerName = $this->answerFormInputName . '.' . $question->id; |
|
135 | + $answerName = $this->answerFormInputName.'.'.$question->id; |
|
136 | 136 | if ($request->has($answerName)) { |
137 | 137 | $answer = ApplicantProfileAnswer::where( |
138 | 138 | [ |
@@ -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); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function passes($attribute, $value) |
25 | 25 | { |
26 | - return preg_match('/' . self::PATTERN . '/', $value); |
|
26 | + return preg_match('/'.self::PATTERN.'/', $value); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -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 | }); |
@@ -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 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | } |
63 | 63 | } |
64 | 64 | |
65 | - $isUnsaved = function ($criteria, $savedIds): bool { |
|
65 | + $isUnsaved = function($criteria, $savedIds): bool { |
|
66 | 66 | return !array_key_exists('id', $criteria) || !in_array($criteria['id'], $savedIds); |
67 | 67 | }; |
68 | 68 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | { |
38 | 38 | $criteria = Criteria::where('job_poster_id', $job->id)->get(); |
39 | 39 | |
40 | - $toApiArray = function ($model) { |
|
40 | + $toApiArray = function($model) { |
|
41 | 41 | return array_merge($model->toArray(), $model->getTranslationsArray()); |
42 | 42 | }; |
43 | 43 | $criteriaTranslated = $criteria->map($toApiArray); |
@@ -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 | ), |
@@ -27,7 +27,7 @@ |
||
27 | 27 | // Custom strings to display within the backpack UI. |
28 | 28 | $this->crud->setEntityNameStrings('classification', 'classifications'); |
29 | 29 | |
30 | - $this->crud->operation(['create', 'update'], function () { |
|
30 | + $this->crud->operation(['create', 'update'], function() { |
|
31 | 31 | $this->crud->addField([ |
32 | 32 | 'name' => 'key', |
33 | 33 | 'type' => 'text', |