Passed
Push — dependabot/npm_and_yarn/dev/re... ( 1111e8 )
by
unknown
31:44 queued 16:01
created
database/factories/CriteriaFactory.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 
9 9
 $faker_fr = Faker\Factory::create('fr');
10 10
 
11
-$factory->define(Criteria::class, function (Faker\Generator $faker) use ($faker_fr) {
11
+$factory->define(Criteria::class, function (Faker\Generator $faker) use ($faker_fr){
12 12
     return [
13 13
         'criteria_type_id' => CriteriaType::inRandomOrder()->first()->id,
14
-        'job_poster_id' => function () {
14
+        'job_poster_id' => function (){
15 15
             return factory(JobPoster::class)->create()->id;
16 16
         },
17 17
         'skill_id' => Skill::inRandomOrder()->first()->id,
Please login to merge, or discard this patch.
database/factories/WorkEnvironmentFactory.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 use App\Models\Manager;
7 7
 use App\Models\Lookup\Frequency;
8 8
 
9
-$factory->define(WorkEnvironment::class, function (Faker $faker) {
9
+$factory->define(WorkEnvironment::class, function (Faker $faker){
10 10
     $faker_fr = FakerFactory::create('fr');
11 11
     return [
12 12
         'telework_allowed_frequency_id' => Frequency::inRandomOrder()->first()->id,
13 13
         'flexible_hours_frequency_id' => Frequency::inRandomOrder()->first()->id,
14 14
         'things_to_know:en' => $faker->paragraph(),
15 15
         'things_to_know:fr' => $faker_fr->paragraph(),
16
-        'manager_id' => function () {
16
+        'manager_id' => function (){
17 17
             return factory(Manager::class)->create()->id;
18 18
         }
19 19
     ];
Please login to merge, or discard this patch.
database/factories/JobPosterQuestionFactory.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 
6 6
 $faker_fr = Faker\Factory::create('fr');
7 7
 
8
-$factory->define(JobPosterQuestion::class, function (Faker\Generator $faker) use ($faker_fr) {
8
+$factory->define(JobPosterQuestion::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(),
Please login to merge, or discard this patch.
database/factories/TeamCultureFactory.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     ];
Please login to merge, or discard this patch.
database/factories/JobPosterKeyTaskFactory.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
app/Http/Controllers/Api/JobApiController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/JobPosterCrudController.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             'type' => 'closure',
64 64
             'label' => 'Manager',
65 65
             'orderable' => false,
66
-            'function' => function ($entry) {
66
+            'function' => function ($entry){
67 67
                 return '<a href="' . route('manager.profile.edit', $entry->manager->user->id) . '" target="_blank">' . $entry->manager->user->full_name . '</a>';
68 68
             }
69 69
         ]);
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
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);
Please login to merge, or discard this patch.
app/Models/WorkEnvironmentTranslation.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,13 +20,15 @@
 block discarded – undo
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 26
     protected $fillable = [
26 27
         'things_to_know'
27 28
     ];
28 29
 
29
-    public function work_environment() {
30
+    public function work_environment()
31
+    {
30 32
         return $this->belongsTo(\App\Models\WorkEnvironment::class);
31 33
     }
32 34
 }
Please login to merge, or discard this patch.
app/Models/WorkSample.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@  discard block
 block discarded – undo
25 25
  * @property \Illuminate\Database\Eloquent\Collection $skill_declarations
26 26
  * @property \App\Models\Applicant $applicant
27 27
  */
28
-class WorkSample extends BaseModel {
28
+class WorkSample extends BaseModel
29
+{
29 30
 
30 31
     protected $casts = [
31 32
         'name' => 'string',
@@ -43,19 +44,23 @@  discard block
 block discarded – undo
43 44
         'description'
44 45
     ];
45 46
 
46
-    public function file_type() {
47
+    public function file_type()
48
+    {
47 49
         return $this->belongsTo(\App\Models\Lookup\FileType::class);
48 50
     }
49 51
 
50
-    public function application_work_samples() {
52
+    public function application_work_samples()
53
+    {
51 54
         return $this->hasMany(\App\Models\ApplicationWorkSample::class);
52 55
     }
53 56
 
54
-    public function skill_declarations() {
57
+    public function skill_declarations()
58
+    {
55 59
         return $this->belongsToMany(\App\Models\SkillDeclaration::class);
56 60
     }
57 61
 
58
-    public function applicant() {
62
+    public function applicant()
63
+    {
59 64
         return $this->belongsTo(\App\Models\Applicant::class);
60 65
     }
61 66
 
Please login to merge, or discard this patch.