@@ -58,19 +58,19 @@ discard block |
||
| 58 | 58 | 'description', |
| 59 | 59 | ]; |
| 60 | 60 | |
| 61 | - public function skill_type() // phpcs:ignore |
|
| 61 | + public function skill_type () // phpcs:ignore |
|
| 62 | 62 | { |
| 63 | - return $this->belongsTo(\App\Models\Lookup\SkillType::class); |
|
| 63 | + return $this->belongsTo (\App\Models\Lookup\SkillType::class); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - public function skill_declarations() // phpcs:ignore |
|
| 66 | + public function skill_declarations () // phpcs:ignore |
|
| 67 | 67 | { |
| 68 | - return $this->hasMany(\App\Models\SkillDeclaration::class); |
|
| 68 | + return $this->hasMany (\App\Models\SkillDeclaration::class); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - public function classifications() // phpcs:ignore |
|
| 71 | + public function classifications () // phpcs:ignore |
|
| 72 | 72 | { |
| 73 | - return $this->belongsToMany(\App\Models\Classification::class)->withTimestamps(); |
|
| 73 | + return $this->belongsToMany (\App\Models\Classification::class)->withTimestamps (); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * |
| 81 | 81 | * @return void |
| 82 | 82 | */ |
| 83 | - public function setIsCultureSkillAttribute($value) : void |
|
| 83 | + public function setIsCultureSkillAttribute ($value) : void |
|
| 84 | 84 | { |
| 85 | 85 | if ($value === null) { |
| 86 | 86 | $value = false; |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * |
| 96 | 96 | * @return void |
| 97 | 97 | */ |
| 98 | - public function setIsFutureSkillAttribute($value) : void |
|
| 98 | + public function setIsFutureSkillAttribute ($value) : void |
|
| 99 | 99 | { |
| 100 | 100 | if ($value === null) { |
| 101 | 101 | $value = false; |
@@ -109,9 +109,9 @@ discard block |
||
| 109 | 109 | * |
| 110 | 110 | * @return mixed[] |
| 111 | 111 | */ |
| 112 | - public function toArray() : array |
|
| 112 | + public function toArray () : array |
|
| 113 | 113 | { |
| 114 | - $array = parent::toArray(); |
|
| 114 | + $array = parent::toArray (); |
|
| 115 | 115 | $array['name'] = $this->name; |
| 116 | 116 | $array['description'] = $this->description; |
| 117 | 117 | return $array; |
@@ -32,12 +32,12 @@ |
||
| 32 | 32 | 'description' |
| 33 | 33 | ]; |
| 34 | 34 | |
| 35 | - public function work_environment() { |
|
| 36 | - return $this->belongsTo(\App\Models\WorkEnvironment::class); |
|
| 35 | + public function work_environment () { |
|
| 36 | + return $this->belongsTo (\App\Models\WorkEnvironment::class); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - public function workplace_photo() { |
|
| 40 | - return $this->belongsTo(\App\Models\WorkplacePhoto::class); |
|
| 39 | + public function workplace_photo () { |
|
| 40 | + return $this->belongsTo (\App\Models\WorkplacePhoto::class); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | } |
@@ -37,15 +37,15 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | protected $with = ['review_status']; |
| 39 | 39 | |
| 40 | - public function job_application() { |
|
| 41 | - return $this->belongsTo(JobApplication::class); |
|
| 40 | + public function job_application () { |
|
| 41 | + return $this->belongsTo (JobApplication::class); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - public function review_status() { |
|
| 45 | - return $this->belongsTo(ReviewStatus::class); |
|
| 44 | + public function review_status () { |
|
| 45 | + return $this->belongsTo (ReviewStatus::class); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - public function getStatusAttribute() { |
|
| 48 | + public function getStatusAttribute () { |
|
| 49 | 49 | return $this->review_status->translation; |
| 50 | 50 | } |
| 51 | 51 | } |
@@ -40,8 +40,8 @@ |
||
| 40 | 40 | /** |
| 41 | 41 | * Get the JobPoster relationship |
| 42 | 42 | */ |
| 43 | - public function job_poster() |
|
| 43 | + public function job_poster () |
|
| 44 | 44 | { |
| 45 | - return $this->belongsTo(\App\Models\JobPoster::class); |
|
| 45 | + return $this->belongsTo (\App\Models\JobPoster::class); |
|
| 46 | 46 | } |
| 47 | 47 | } |
@@ -36,13 +36,13 @@ |
||
| 36 | 36 | ]; |
| 37 | 37 | protected $fillable = []; |
| 38 | 38 | |
| 39 | - public function job_poster() //phpcs:ignore |
|
| 39 | + public function job_poster () //phpcs:ignore |
|
| 40 | 40 | { |
| 41 | - return $this->belongsTo(\App\Models\JobPoster::class); |
|
| 41 | + return $this->belongsTo (\App\Models\JobPoster::class); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - public function job_application_answers() //phpcs:ignore |
|
| 44 | + public function job_application_answers () //phpcs:ignore |
|
| 45 | 45 | { |
| 46 | - return $this->hasMany(\App\Models\JobApplicationAnswer::class, 'job_poster_questions_id'); |
|
| 46 | + return $this->hasMany (\App\Models\JobApplicationAnswer::class, 'job_poster_questions_id'); |
|
| 47 | 47 | } |
| 48 | 48 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * @param string $token |
| 33 | 33 | * @return void |
| 34 | 34 | */ |
| 35 | - public function __construct($token) |
|
| 35 | + public function __construct ($token) |
|
| 36 | 36 | { |
| 37 | 37 | $this->token = $token; |
| 38 | 38 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * @param mixed $notifiable |
| 44 | 44 | * @return array |
| 45 | 45 | */ |
| 46 | - public function via($notifiable) |
|
| 46 | + public function via ($notifiable) |
|
| 47 | 47 | { |
| 48 | 48 | return ['mail']; |
| 49 | 49 | } |
@@ -54,14 +54,14 @@ discard block |
||
| 54 | 54 | * @param mixed $notifiable |
| 55 | 55 | * @return \Illuminate\Notifications\Messages\MailMessage |
| 56 | 56 | */ |
| 57 | - public function toMail($notifiable) |
|
| 57 | + public function toMail ($notifiable) |
|
| 58 | 58 | { |
| 59 | 59 | return (new MailMessage) |
| 60 | - ->subject(Lang::get('common/notifications/password_reset.subject')) |
|
| 61 | - ->greeting(Lang::get('common/notifications/password_reset.greeting')) |
|
| 62 | - ->line(Lang::get('common/notifications/password_reset.line_1')) |
|
| 63 | - ->action(Lang::get('common/notifications/password_reset.action'), url(route('password.reset', $this->token, false))) |
|
| 64 | - ->line(Lang::get('common/notifications/password_reset.line_2')) |
|
| 65 | - ->salutation(Lang::get('common/notifications/password_reset.salutation', ['name' => config('mail.from.name')])); |
|
| 60 | + ->subject (Lang::get ('common/notifications/password_reset.subject')) |
|
| 61 | + ->greeting (Lang::get ('common/notifications/password_reset.greeting')) |
|
| 62 | + ->line (Lang::get ('common/notifications/password_reset.line_1')) |
|
| 63 | + ->action (Lang::get ('common/notifications/password_reset.action'), url (route ('password.reset', $this->token, false))) |
|
| 64 | + ->line (Lang::get ('common/notifications/password_reset.line_2')) |
|
| 65 | + ->salutation (Lang::get ('common/notifications/password_reset.salutation', ['name' => config ('mail.from.name')])); |
|
| 66 | 66 | } |
| 67 | 67 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @return void |
| 45 | 45 | */ |
| 46 | - public function __construct(JobPoster $jobPoster, User $manager) |
|
| 46 | + public function __construct (JobPoster $jobPoster, User $manager) |
|
| 47 | 47 | { |
| 48 | 48 | $this->jobPoster = $jobPoster; |
| 49 | 49 | $this->manager = $manager; |
@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @return $this |
| 56 | 56 | */ |
| 57 | - public function build() |
|
| 57 | + public function build () |
|
| 58 | 58 | { |
| 59 | - return $this->text('emails.job_posters.review_requested_plain'); |
|
| 59 | + return $this->text ('emails.job_posters.review_requested_plain'); |
|
| 60 | 60 | } |
| 61 | 61 | } |
@@ -21,9 +21,9 @@ |
||
| 21 | 21 | * @param View $view |
| 22 | 22 | * @return void |
| 23 | 23 | */ |
| 24 | - public function compose(View $view) |
|
| 24 | + public function compose (View $view) |
|
| 25 | 25 | { |
| 26 | - $view->with('footer', Lang::get('common/footer')) |
|
| 27 | - ->with('date_modified', humanizeDate(new Date(self::DATE_MODIFIED, Config::get('app.local_timezone')))); |
|
| 26 | + $view->with ('footer', Lang::get ('common/footer')) |
|
| 27 | + ->with ('date_modified', humanizeDate (new Date (self::DATE_MODIFIED, Config::get ('app.local_timezone')))); |
|
| 28 | 28 | } |
| 29 | 29 | } |
@@ -16,13 +16,13 @@ discard block |
||
| 16 | 16 | * @param View $view |
| 17 | 17 | * @return void |
| 18 | 18 | */ |
| 19 | - public function compose(View $view) |
|
| 19 | + public function compose (View $view) |
|
| 20 | 20 | { |
| 21 | - if (WhichPortal::isApplicantPortal()) { |
|
| 22 | - $menu = Lang::get('applicant/menu'); |
|
| 21 | + if (WhichPortal::isApplicantPortal ()) { |
|
| 22 | + $menu = Lang::get ('applicant/menu'); |
|
| 23 | 23 | |
| 24 | 24 | // Set active on the proper item |
| 25 | - switch (Route::currentRouteName()) { |
|
| 25 | + switch (Route::currentRouteName ()) { |
|
| 26 | 26 | case 'home': |
| 27 | 27 | $menu['items']['home']['active'] = true; |
| 28 | 28 | break; |
@@ -82,15 +82,15 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | // Set route links |
| 85 | - $menu['items']['home']['link'] = route('home'); |
|
| 86 | - $menu['items']['jobs']['link'] = route('jobs.index'); |
|
| 87 | - $menu['items']['applications']['link'] = route('applications.index'); |
|
| 88 | - $menu['items']['profile']['link'] = route('profile'); |
|
| 89 | - $menu['items']['faq']['link'] = route('faq'); |
|
| 90 | - $menu['items']['itp']['link'] = route('itp'); |
|
| 85 | + $menu['items']['home']['link'] = route ('home'); |
|
| 86 | + $menu['items']['jobs']['link'] = route ('jobs.index'); |
|
| 87 | + $menu['items']['applications']['link'] = route ('applications.index'); |
|
| 88 | + $menu['items']['profile']['link'] = route ('profile'); |
|
| 89 | + $menu['items']['faq']['link'] = route ('faq'); |
|
| 90 | + $menu['items']['itp']['link'] = route ('itp'); |
|
| 91 | 91 | |
| 92 | 92 | // Check if use is logged in, and remove invalid menu items |
| 93 | - if (Auth::check()) { |
|
| 93 | + if (Auth::check ()) { |
|
| 94 | 94 | unset($menu['items']['login']); |
| 95 | 95 | unset($menu['items']['register']); |
| 96 | 96 | // TODO set profile like using user slug |
@@ -99,11 +99,11 @@ discard block |
||
| 99 | 99 | unset($menu['items']['applications']); |
| 100 | 100 | unset($menu['items']['profile']); |
| 101 | 101 | } |
| 102 | - } elseif (WhichPortal::isManagerPortal()) { |
|
| 103 | - $menu = Lang::get('manager/menu'); |
|
| 102 | + } elseif (WhichPortal::isManagerPortal ()) { |
|
| 103 | + $menu = Lang::get ('manager/menu'); |
|
| 104 | 104 | |
| 105 | 105 | // Set active on the proper item |
| 106 | - switch (Route::currentRouteName()) { |
|
| 106 | + switch (Route::currentRouteName ()) { |
|
| 107 | 107 | case 'manager.home': |
| 108 | 108 | $menu['items']['home']['active'] = true; |
| 109 | 109 | break; |
@@ -144,15 +144,15 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | // Set route links |
| 147 | - $menu['items']['home']['link'] = route('manager.home'); |
|
| 148 | - $menu['items']['jobs']['link'] = route('manager.jobs.index'); |
|
| 147 | + $menu['items']['home']['link'] = route ('manager.home'); |
|
| 148 | + $menu['items']['jobs']['link'] = route ('manager.jobs.index'); |
|
| 149 | 149 | // TODO: restore when job poster builder complete |
| 150 | 150 | // $menu['items']['create_job']['link'] = route('manager.jobs.create'); |
| 151 | - $menu['items']['profile']['link'] = route('manager.profile'); |
|
| 152 | - $menu['items']['faq']['link'] = route('manager.faq.section'); |
|
| 151 | + $menu['items']['profile']['link'] = route ('manager.profile'); |
|
| 152 | + $menu['items']['faq']['link'] = route ('manager.faq.section'); |
|
| 153 | 153 | |
| 154 | 154 | // Check if use is logged in, and remove invalid menu items |
| 155 | - if (Auth::check()) { |
|
| 155 | + if (Auth::check ()) { |
|
| 156 | 156 | unset($menu['items']['login']); |
| 157 | 157 | unset($menu['items']['register']); |
| 158 | 158 | // TODO set profile like using user slug |
@@ -162,13 +162,13 @@ discard block |
||
| 162 | 162 | unset($menu['items']['create_job']); |
| 163 | 163 | unset($menu['items']['profile']); |
| 164 | 164 | } |
| 165 | - } elseif (WhichPortal::isAdminPortal()) { |
|
| 165 | + } elseif (WhichPortal::isAdminPortal ()) { |
|
| 166 | 166 | // Use the manager menu, keeping only |
| 167 | - $menu = Lang::get('admin/menu'); |
|
| 167 | + $menu = Lang::get ('admin/menu'); |
|
| 168 | 168 | |
| 169 | 169 | |
| 170 | 170 | // Set active on the proper item |
| 171 | - switch (Route::currentRouteName()) { |
|
| 171 | + switch (Route::currentRouteName ()) { |
|
| 172 | 172 | case 'admin.home': |
| 173 | 173 | $menu['items']['home']['active'] = true; |
| 174 | 174 | break; |
@@ -178,10 +178,10 @@ discard block |
||
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | // Set route links |
| 181 | - $menu['items']['home']['link'] = backpack_url(); |
|
| 181 | + $menu['items']['home']['link'] = backpack_url (); |
|
| 182 | 182 | |
| 183 | 183 | // Check if use is logged in, and remove invalid menu items |
| 184 | - if (Auth::check()) { |
|
| 184 | + if (Auth::check ()) { |
|
| 185 | 185 | unset($menu['items']['login']); |
| 186 | 186 | unset($menu['items']['register']); |
| 187 | 187 | // TODO set profile like using user slug |
@@ -190,30 +190,30 @@ discard block |
||
| 190 | 190 | } |
| 191 | 191 | } |
| 192 | 192 | // Set login modals data |
| 193 | - if (WhichPortal::isManagerPortal()) { |
|
| 193 | + if (WhichPortal::isManagerPortal ()) { |
|
| 194 | 194 | $loginModals = [ |
| 195 | - 'modals' => Lang::get('common/login_modals'), |
|
| 196 | - 'register_link' => route('manager.register'), |
|
| 197 | - 'login_link' => route('manager.login'), |
|
| 198 | - 'logout_link' => route('manager.logout'), |
|
| 195 | + 'modals' => Lang::get ('common/login_modals'), |
|
| 196 | + 'register_link' => route ('manager.register'), |
|
| 197 | + 'login_link' => route ('manager.login'), |
|
| 198 | + 'logout_link' => route ('manager.logout'), |
|
| 199 | 199 | ]; |
| 200 | - } elseif (WhichPortal::isAdminPortal()) { |
|
| 200 | + } elseif (WhichPortal::isAdminPortal ()) { |
|
| 201 | 201 | $loginModals = [ |
| 202 | - 'modals' => Lang::get('common/login_modals'), |
|
| 203 | - 'register_link' => route('register'), |
|
| 204 | - 'login_link' => backpack_url('login'), |
|
| 205 | - 'logout_link' => backpack_url('logout'), |
|
| 202 | + 'modals' => Lang::get ('common/login_modals'), |
|
| 203 | + 'register_link' => route ('register'), |
|
| 204 | + 'login_link' => backpack_url ('login'), |
|
| 205 | + 'logout_link' => backpack_url ('logout'), |
|
| 206 | 206 | ]; |
| 207 | 207 | } else { |
| 208 | 208 | $loginModals = [ |
| 209 | - 'modals' => Lang::get('common/login_modals'), |
|
| 210 | - 'register_link' => route('register'), |
|
| 211 | - 'login_link' => route('login'), |
|
| 212 | - 'logout_link' => route('logout'), |
|
| 209 | + 'modals' => Lang::get ('common/login_modals'), |
|
| 210 | + 'register_link' => route ('register'), |
|
| 211 | + 'login_link' => route ('login'), |
|
| 212 | + 'logout_link' => route ('logout'), |
|
| 213 | 213 | ]; |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | - $view->with('menu', $menu) |
|
| 217 | - ->with('login_modals', $loginModals); |
|
| 216 | + $view->with ('menu', $menu) |
|
| 217 | + ->with ('login_modals', $loginModals); |
|
| 218 | 218 | } |
| 219 | 219 | } |