@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | View::composer( |
| 66 | 66 | ['common/relatives','common/reference','common/relatives-projects', |
| 67 | - 'common/sample', 'common/skill', 'common/modals/create_reference'], |
|
| 67 | + 'common/sample', 'common/skill', 'common/modals/create_reference'], |
|
| 68 | 68 | 'App\Http\ViewComposers\RelativeComposer' |
| 69 | 69 | ); |
| 70 | 70 | |
@@ -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 | ); |
@@ -198,12 +198,12 @@ |
||
| 198 | 198 | 'logout_link' => route('manager.logout'), |
| 199 | 199 | ]; |
| 200 | 200 | } elseif (WhichPortal::isAdminPortal()) { |
| 201 | - $loginModals = [ |
|
| 201 | + $loginModals = [ |
|
| 202 | 202 | 'modals' => Lang::get('common/login_modals'), |
| 203 | 203 | 'register_link' => route('register'), |
| 204 | 204 | 'login_link' => backpack_url('login'), |
| 205 | 205 | 'logout_link' => backpack_url('logout'), |
| 206 | - ]; |
|
| 206 | + ]; |
|
| 207 | 207 | } else { |
| 208 | 208 | $loginModals = [ |
| 209 | 209 | 'modals' => Lang::get('common/login_modals'), |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * Convert a job poster to the array expected by API requests, |
| 30 | 30 | * with all criteria, |
| 31 | 31 | * and with translation arrays in both languages. |
| 32 | - * |
|
| 32 | + * |
|
| 33 | 33 | * @param \App\Models\JobPoster $job Incoming Job Poster object. |
| 34 | 34 | * @return mixed[] |
| 35 | 35 | */ |
@@ -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); |
@@ -26,12 +26,12 @@ |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * Show the form for editing the applicant's experience |
|
| 30 | - * |
|
| 31 | - * @param \Illuminate\Http\Request $request Incoming request object. |
|
| 32 | - * @param \App\Models\Applicant $applicant Incoming applicant object. |
|
| 33 | - * @return \Illuminate\Http\Response |
|
| 34 | - */ |
|
| 29 | + * Show the form for editing the applicant's experience |
|
| 30 | + * |
|
| 31 | + * @param \Illuminate\Http\Request $request Incoming request object. |
|
| 32 | + * @param \App\Models\Applicant $applicant Incoming applicant object. |
|
| 33 | + * @return \Illuminate\Http\Response |
|
| 34 | + */ |
|
| 35 | 35 | public function edit(Request $request, Applicant $applicant) |
| 36 | 36 | { |
| 37 | 37 | return view('applicant/profile_02_experience', [ |
@@ -177,8 +177,8 @@ |
||
| 177 | 177 | 'type' => 'date_picker', |
| 178 | 178 | 'label' => 'Letter of Offer Issuance Date', |
| 179 | 179 | 'date_picker_options' => [ |
| 180 | - 'todayBtn' => 'linked', |
|
| 181 | - 'format' => 'yyyy-mm-dd', |
|
| 180 | + 'todayBtn' => 'linked', |
|
| 181 | + 'format' => 'yyyy-mm-dd', |
|
| 182 | 182 | ], |
| 183 | 183 | ]); |
| 184 | 184 | if ($this->crud->getCurrentEntry() && |
@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | 'type' => 'closure', |
| 64 | 64 | 'label' => 'Manager', |
| 65 | 65 | 'orderable' => false, |
| 66 | - 'function' => function ($entry) { |
|
| 67 | - return '<a href="' . route('manager.profile.edit', $entry->manager->user->id) . '" target="_blank">' . $entry->manager->user->full_name . '</a>'; |
|
| 66 | + 'function' => function($entry) { |
|
| 67 | + return '<a href="'.route('manager.profile.edit', $entry->manager->user->id).'" target="_blank">'.$entry->manager->user->full_name.'</a>'; |
|
| 68 | 68 | } |
| 69 | 69 | ]); |
| 70 | 70 | $this->crud->addColumn([ |
@@ -84,10 +84,10 @@ discard block |
||
| 84 | 84 | 'name' => 'departments', |
| 85 | 85 | 'type' => 'select2_multiple', |
| 86 | 86 | 'label' => 'Departments' |
| 87 | - ], function () { |
|
| 87 | + ], function() { |
|
| 88 | 88 | return Department::all()->pluck('name', 'id')->toArray(); |
| 89 | - }, function ($values) { |
|
| 90 | - $this->crud->addClause('WhereHas', 'department', function ($query) use ($values) { |
|
| 89 | + }, function($values) { |
|
| 90 | + $this->crud->addClause('WhereHas', 'department', function($query) use ($values) { |
|
| 91 | 91 | foreach (json_decode($values) as $key => $value) { |
| 92 | 92 | if ($key === 0) { |
| 93 | 93 | $query->where('id', $value); |
@@ -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; |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function getFunctions(): array |
| 14 | 14 | { |
| 15 | 15 | return [ |
| 16 | - new Twig_SimpleFunction('handleNullState', [$this, 'handleNullState']), |
|
| 16 | + new Twig_SimpleFunction('handleNullState', [$this, 'handleNullState']), |
|
| 17 | 17 | ]; |
| 18 | 18 | } |
| 19 | 19 | |
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | * @property string $level_description The localized description of the skill level (accounts for skill type). |
| 29 | 29 | * |
| 30 | 30 | * Localized Properties: |
| 31 | - * @property string $description |
|
| 32 | - * @property string $specificity |
|
| 31 | + * @property string $description |
|
| 32 | + * @property string $specificity |
|
| 33 | 33 | */ |
| 34 | 34 | class Criteria extends BaseModel |
| 35 | 35 | { |
@@ -173,10 +173,10 @@ discard block |
||
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | /** |
| 176 | - * Check if the user has the specified role. |
|
| 177 | - * @param string $role This may be either 'applicant', 'manager' or 'admin'. |
|
| 178 | - * @return boolean |
|
| 179 | - */ |
|
| 176 | + * Check if the user has the specified role. |
|
| 177 | + * @param string $role This may be either 'applicant', 'manager' or 'admin'. |
|
| 178 | + * @return boolean |
|
| 179 | + */ |
|
| 180 | 180 | public function hasRole($role) |
| 181 | 181 | { |
| 182 | 182 | switch ($role) { |
@@ -195,8 +195,8 @@ discard block |
||
| 195 | 195 | * Set this user to the specified role. |
| 196 | 196 | * |
| 197 | 197 | * @param string $role Must be either 'applicant', 'manager' or 'admin. |
| 198 | - * @return void |
|
| 199 | - */ |
|
| 198 | + * @return void |
|
| 199 | + */ |
|
| 200 | 200 | public function setRole(string $role): void |
| 201 | 201 | { |
| 202 | 202 | $this->user_role()->associate(UserRole::where('name', $role)->firstOrFail()); |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | * Returns a user's full name. |
| 232 | 232 | * |
| 233 | 233 | * @return string |
| 234 | - */ |
|
| 234 | + */ |
|
| 235 | 235 | public function getFullNameAttribute(): string |
| 236 | 236 | { |
| 237 | 237 | return $this->first_name . ' ' . $this->last_name; |
@@ -234,6 +234,6 @@ |
||
| 234 | 234 | */ |
| 235 | 235 | public function getFullNameAttribute(): string |
| 236 | 236 | { |
| 237 | - return $this->first_name . ' ' . $this->last_name; |
|
| 237 | + return $this->first_name.' '.$this->last_name; |
|
| 238 | 238 | } |
| 239 | 239 | } |