@@ -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 | ); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | $locale = LaravelLocalization::getCurrentLocale(); |
20 | 20 | |
21 | - switch($locale) { |
|
21 | + switch ($locale) { |
|
22 | 22 | case 'en': |
23 | 23 | $linkLocale = 'fr'; |
24 | 24 | break; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | if (isset($view->getData()['job_application'])) { |
31 | 31 | $job_application = $view->getData()['job_application']; |
32 | 32 | if ($job_application != null && $job_application instanceof JobApplication) { |
33 | - foreach($app_tracker['items'] as $key => $value) { |
|
33 | + foreach ($app_tracker['items'] as $key => $value) { |
|
34 | 34 | $app_tracker['items'][$key]['status'] = $job_application->getSectionStatus($key); |
35 | 35 | } |
36 | 36 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $profileMenu['portfolio']['link'] = route('profile.work_samples.edit', $view->getData()['applicant']); |
27 | 27 | |
28 | 28 | //Set active on the proper item |
29 | - switch(Route::currentRouteName()) { |
|
29 | + switch (Route::currentRouteName()) { |
|
30 | 30 | case('profile.about'): |
31 | 31 | case('profile.about.edit'): |
32 | 32 | case('profile.about.update'): |
@@ -35,7 +35,7 @@ |
||
35 | 35 | // If no profile exists yet create one. |
36 | 36 | // Admins should be given an applicant and manager profile |
37 | 37 | if ($user->isApplicant() || |
38 | - $user->isAdmin() ) { |
|
38 | + $user->isAdmin()) { |
|
39 | 39 | $applicantProfile = $user->applicant; |
40 | 40 | if ($applicantProfile === null) { |
41 | 41 | $applicantProfile = new Applicant(); |
@@ -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; |
@@ -9,7 +9,7 @@ |
||
9 | 9 | use Jenssegers\Date\Date; |
10 | 10 | use DateTime; |
11 | 11 | |
12 | -abstract class BaseModel extends Eloquent { |
|
12 | +abstract class BaseModel extends Eloquent{ |
|
13 | 13 | //Override date functions to return Jenssegers Data instead of Carbon |
14 | 14 | |
15 | 15 | /** |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * @property \Jenssegers\Date\Date $created_at |
13 | 13 | * @property \Jenssegers\Date\Date $updated_at |
14 | 14 | */ |
15 | -class Frequency extends BaseModel { |
|
15 | +class Frequency extends BaseModel{ |
|
16 | 16 | |
17 | 17 | protected $fillable = []; |
18 | 18 |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | $user_id = $user->id; |
24 | 24 | return JobPoster::whereHas( |
25 | 25 | 'manager', |
26 | - function ($q) use ($user_id) { |
|
26 | + function($q) use ($user_id) { |
|
27 | 27 | $q->where('user_id', $user_id); |
28 | 28 | } |
29 | 29 | )->whereHas( |
30 | 30 | 'submitted_applications', |
31 | - function ($q) use ($applicant_id) { |
|
31 | + function($q) use ($applicant_id) { |
|
32 | 32 | $q->where('applicant_id', $applicant_id); |
33 | 33 | } |
34 | 34 | )->get()->isNotEmpty(); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function view(User $user, Applicant $applicant) |
45 | 45 | { |
46 | - $authApplicant = $user->isApplicant() && |
|
46 | + $authApplicant = $user->isApplicant() && |
|
47 | 47 | $applicant->user->is($user); |
48 | 48 | $authManager = $user->isManager() && $this->ownsJobApplicantAppliedTo($user, $applicant); |
49 | 49 | return $authApplicant || $authManager; |