@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | use App\Models\TeamCulture; |
| 6 | 6 | use App\Models\Manager; |
| 7 | 7 | |
| 8 | -$factory->define(TeamCulture::class, function (Faker $faker) { |
|
| 8 | +$factory->define(TeamCulture::class, function(Faker $faker){ |
|
| 9 | 9 | $faker_fr = FakerFactory::create('fr'); |
| 10 | 10 | return [ |
| 11 | 11 | 'team_size' => $faker->numberBetween(5, 15), |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | 'operating_context:fr' => $faker_fr->paragraph(), |
| 19 | 19 | 'what_we_value:fr' => $faker_fr->paragraph(), |
| 20 | 20 | 'how_we_work:fr' => $faker_fr->paragraph(), |
| 21 | - 'manager_id' => function () { |
|
| 21 | + 'manager_id' => function(){ |
|
| 22 | 22 | return factory(Manager::class)->create()->id; |
| 23 | 23 | } |
| 24 | 24 | ]; |
@@ -5,9 +5,9 @@ |
||
| 5 | 5 | |
| 6 | 6 | $faker_fr = Faker\Factory::create('fr'); |
| 7 | 7 | |
| 8 | -$factory->define(JobPosterKeyTask::class, function (Faker\Generator $faker) use ($faker_fr) { |
|
| 8 | +$factory->define(JobPosterKeyTask::class, function(Faker\Generator $faker) use ($faker_fr) { |
|
| 9 | 9 | return [ |
| 10 | - 'job_poster_id' => function () { |
|
| 10 | + 'job_poster_id' => function(){ |
|
| 11 | 11 | return factory(JobPoster::class)->create()->id; |
| 12 | 12 | }, |
| 13 | 13 | 'description:en' => $faker->sentence(), |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | class CriteriaController extends Controller |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * Converts a Criteria to the shape sent and recieved by the api. |
|
| 16 | - * |
|
| 17 | - * @param Criteria $model |
|
| 18 | - * @return void |
|
| 19 | - */ |
|
| 15 | + * Converts a Criteria to the shape sent and recieved by the api. |
|
| 16 | + * |
|
| 17 | + * @param Criteria $model |
|
| 18 | + * @return void |
|
| 19 | + */ |
|
| 20 | 20 | public function toApiArray(Criteria $model) |
| 21 | 21 | { |
| 22 | 22 | return array_merge($model->toArray(), $model->getTranslationsArray()); |
@@ -62,7 +62,7 @@ discard block |
||
| 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 | |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $newSkillId = null, |
| 164 | 164 | $newSkillLevelId = null, |
| 165 | 165 | $newCriteriaTypeId = null |
| 166 | - ) { |
|
| 166 | + ){ |
|
| 167 | 167 | $notification = new AssessmentPlanNotification(); |
| 168 | 168 | $notification->job_poster_id = $criteria->job_poster_id; |
| 169 | 169 | $notification->type = $type; |
@@ -20,13 +20,13 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @property \App\Models\WorkEnvironment $work_environment |
| 22 | 22 | */ |
| 23 | -class WorkEnvironmentTranslation extends BaseModel { |
|
| 23 | +class WorkEnvironmentTranslation extends BaseModel{ |
|
| 24 | 24 | |
| 25 | 25 | protected $fillable = [ |
| 26 | 26 | 'things_to_know' |
| 27 | 27 | ]; |
| 28 | 28 | |
| 29 | - public function work_environment() { |
|
| 29 | + public function work_environment(){ |
|
| 30 | 30 | return $this->belongsTo(\App\Models\WorkEnvironment::class); |
| 31 | 31 | } |
| 32 | 32 | } |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * |
| 21 | 21 | * @property \App\Models\JobPosterQuestion $job_poster_question |
| 22 | 22 | */ |
| 23 | -class JobPosterQuestionTranslation extends BaseModel { |
|
| 23 | +class JobPosterQuestionTranslation extends BaseModel{ |
|
| 24 | 24 | |
| 25 | 25 | protected $casts = [ |
| 26 | 26 | 'job_poster_question_id' => 'int' |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | 'description' |
| 31 | 31 | ]; |
| 32 | 32 | |
| 33 | - public function job_poster_question() { |
|
| 33 | + public function job_poster_question(){ |
|
| 34 | 34 | return $this->belongsTo(\App\Models\JobPosterQuestion::class); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * |
| 20 | 20 | * @property \App\Models\JobPosterKeyTask $job_poster_key_task |
| 21 | 21 | */ |
| 22 | -class JobPosterKeyTaskTranslation extends BaseModel { |
|
| 22 | +class JobPosterKeyTaskTranslation extends BaseModel{ |
|
| 23 | 23 | |
| 24 | 24 | protected $casts = [ |
| 25 | 25 | 'job_poster_key_task_id' => 'int' |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | 'description' |
| 30 | 30 | ]; |
| 31 | 31 | |
| 32 | - public function job_poster_key_task() { |
|
| 32 | + public function job_poster_key_task(){ |
|
| 33 | 33 | return $this->belongsTo(\App\Models\JobPosterKeyTask::class); |
| 34 | 34 | } |
| 35 | 35 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * |
| 29 | 29 | * @property \App\Models\Manager $manager |
| 30 | 30 | */ |
| 31 | -class ManagerTranslation extends BaseModel { |
|
| 31 | +class ManagerTranslation extends BaseModel{ |
|
| 32 | 32 | |
| 33 | 33 | protected $casts = [ |
| 34 | 34 | 'manager_id' => 'int' |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | 'learning_path' |
| 47 | 47 | ]; |
| 48 | 48 | |
| 49 | - public function manager() { |
|
| 49 | + public function manager(){ |
|
| 50 | 50 | return $this->belongsTo(\App\Models\Manager::class); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -21,14 +21,14 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @property \App\Models\Lookup\LanguageRequirement $language_requirement |
| 23 | 23 | */ |
| 24 | -class LanguageRequirementTranslation extends BaseModel { |
|
| 24 | +class LanguageRequirementTranslation extends BaseModel{ |
|
| 25 | 25 | |
| 26 | 26 | protected $casts = [ |
| 27 | 27 | 'language_requirement_id' => 'int' |
| 28 | 28 | ]; |
| 29 | 29 | protected $fillable = []; |
| 30 | 30 | |
| 31 | - public function language_requirement() { |
|
| 31 | + public function language_requirement(){ |
|
| 32 | 32 | return $this->belongsTo(\App\Models\Lookup\LanguageRequirement::class); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -21,14 +21,14 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @property \App\Models\Lookup\SecurityClearance $security_clearance |
| 23 | 23 | */ |
| 24 | -class SecurityClearanceTranslation extends BaseModel { |
|
| 24 | +class SecurityClearanceTranslation extends BaseModel{ |
|
| 25 | 25 | |
| 26 | 26 | protected $casts = [ |
| 27 | 27 | 'security_clearance_id' => 'int' |
| 28 | 28 | ]; |
| 29 | 29 | protected $fillable = []; |
| 30 | 30 | |
| 31 | - public function security_clearance() { |
|
| 31 | + public function security_clearance(){ |
|
| 32 | 32 | return $this->belongsTo(\App\Models\Lookup\SecurityClearance::class); |
| 33 | 33 | } |
| 34 | 34 | |