@@ -43,7 +43,7 @@ |
||
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; |
@@ -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').'.prefix').$instance->getTable(); |
|
27 | + $table = Config::get('database.connections.' . Config::get('database.default') . '.prefix') . $instance->getTable(); |
|
28 | 28 | // MongoDB columns are alway nullable. |
29 | 29 | if ($conn->getConfig()['driver'] === 'mongodb') { |
30 | 30 | return true; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | 'first_name' => $faker->firstName(), |
31 | 31 | 'last_name' => $faker->lastName(), |
32 | 32 | 'email' => $faker->unique()->safeEmail(), |
33 | - 'password' => $password ? : $password = Hash::make('password'), |
|
33 | + 'password' => $password ?: $password = Hash::make('password'), |
|
34 | 34 | 'is_confirmed' => 1, |
35 | 35 | 'user_role_id' => UserRole::where('name', 'basic')->first()->id, // Users should default to basic user role. |
36 | 36 | 'remember_token' => str_random(10), |
@@ -606,7 +606,7 @@ discard block |
||
606 | 606 | ->name('api.jobs.submit'); |
607 | 607 | Route::resource('jobs', 'Api\JobApiController')->only([ |
608 | 608 | 'show', 'store', 'update' |
609 | - ])->names([ // Specify custom names because default names collied with existing routes. |
|
609 | + ])->names([// Specify custom names because default names collied with existing routes. |
|
610 | 610 | 'show' => 'api.jobs.show', |
611 | 611 | 'store' => 'api.jobs.store', |
612 | 612 | 'update' => 'api.jobs.update' |
@@ -614,7 +614,7 @@ discard block |
||
614 | 614 | |
615 | 615 | Route::resource('managers', 'Api\ManagerApiController')->only([ |
616 | 616 | 'show', 'update' |
617 | - ])->names([ // Specify custom names because default names collied with existing routes. |
|
617 | + ])->names([// Specify custom names because default names collied with existing routes. |
|
618 | 618 | 'show' => 'api.managers.show', |
619 | 619 | 'update' => 'api.managers.update' |
620 | 620 | ]); |
@@ -20,8 +20,8 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public function getRememberDeviceToken() |
22 | 22 | { |
23 | - if (! empty($this->getRememberDeviceTokenName())) { |
|
24 | - return (string) $this->{$this->getRememberDeviceTokenName()}; |
|
23 | + if (!empty($this->getRememberDeviceTokenName())) { |
|
24 | + return (string)$this->{$this->getRememberDeviceTokenName()}; |
|
25 | 25 | } |
26 | 26 | } |
27 | 27 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function setRememberDeviceToken($value) |
35 | 35 | { |
36 | - if (! empty($this->getRememberDeviceTokenName())) { |
|
36 | + if (!empty($this->getRememberDeviceTokenName())) { |
|
37 | 37 | $this->{$this->getRememberDeviceTokenName()} = $value; |
38 | 38 | } |
39 | 39 | } |
@@ -70,6 +70,6 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function getRememberDeviceKey(): string |
72 | 72 | { |
73 | - return 'remember_device_'.sha1(static::class); |
|
73 | + return 'remember_device_' . sha1(static::class); |
|
74 | 74 | } |
75 | 75 | } |