Passed
Push — dependabot/npm_and_yarn/dev/co... ( c231c8 )
by
unknown
11:30
created
app/Services/Validation/Rules/PasswordFormatRule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
      * https://laraveldaily.com/how-to-create-custom-validation-rules-laravel/
20 20
      */
21 21
 
22
-    public function passes($attribute, $value) {
22
+    public function passes($attribute, $value){
23 23
         $passwordPattern = "~^.*(?=.{3,})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[.!@#$%^&*]).*$~";
24
-        return preg_match($passwordPattern, $value);
24
+        return preg_match ($passwordPattern, $value);
25 25
     }
26 26
 
27
-    public function message() {
28
-        return Lang::get('validation.custom.password');
27
+    public function message(){
28
+        return Lang::get ('validation.custom.password');
29 29
     }
30 30
 
31 31
 }
Please login to merge, or discard this patch.
app/Services/Validation/Rules/ContainsObjectWithAttributeRule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     protected function array_any(array $array, callable $fn)
28 28
     {
29 29
         foreach ($array as $value) {
30
-            if ($fn($value)) {
30
+            if ($fn ($value)) {
31 31
                 return true;
32 32
             }
33 33
         }
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
         // debugbar()->debug($value);
47 47
         // debugbar()->debug($this->attributeName);
48 48
         // debugbar()->debug($this->attributeValue);
49
-        return $this->array_any($value, function ($object) {
49
+        return $this->array_any ($value, function ($object){
50 50
             return $object[$this->attributeName] == $this->attributeValue;
51 51
         });
52 52
     }
53 53
 
54 54
     public function message()
55 55
     {
56
-        return Lang::get('validation.contains_object_with_attribute', ['relation' => $this->attributeName, 'attributeValue' => $this->attributeValue]);
56
+        return Lang::get ('validation.contains_object_with_attribute', ['relation' => $this->attributeName, 'attributeValue' => $this->attributeValue]);
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
app/Services/Validation/PasswordValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     public function validate($request)
10 10
     {
11
-        abort(404, 'incomplete');
11
+        abort (404, 'incomplete');
12 12
     }
13 13
 
14 14
     public function rules()
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         ];
22 22
     }
23 23
 
24
-    public function messages() {
25
-        return Lang::get('validation.custom.password');
24
+    public function messages(){
25
+        return Lang::get ('validation.custom.password');
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
database/seeds/SkillClassificationSeeder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
      */
15 15
     public function run()
16 16
     {
17
-        $skills = Skill::all();
17
+        $skills = Skill::all ();
18 18
 
19 19
         foreach ($skills as $skill) {
20
-            $skill->classifications()->attach(Classification::inRandomOrder()->first());
21
-            $skill->is_culture_skill = (bool)random_int(0, 1);
22
-            $skill->is_future_skill = (bool)random_int(0, 1);
23
-            $skill->save();
20
+            $skill->classifications ()->attach (Classification::inRandomOrder ()->first ());
21
+            $skill->is_culture_skill = (bool)random_int (0, 1);
22
+            $skill->is_future_skill = (bool)random_int (0, 1);
23
+            $skill->save ();
24 24
         }
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
database/factories/ReferenceFactory.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -6,31 +6,31 @@
 block discarded – undo
6 6
 use App\Models\Applicant;
7 7
 use App\Models\Project;
8 8
 
9
-$factory->define(Reference::class, function (Faker $faker) {
9
+$factory->define (Reference::class, function (Faker $faker){
10 10
     return [
11
-        'name' => $faker->name(),
12
-        'email' => $faker->safeEmail(),
13
-        'description' => $faker->paragraphs(2, true),
14
-        'relationship_id' => Relationship::inRandomOrder()->first()->id,
15
-        'applicant_id' => function () {
16
-            return factory(Applicant::class)->create()->id;
11
+        'name' => $faker->name (),
12
+        'email' => $faker->safeEmail (),
13
+        'description' => $faker->paragraphs (2, true),
14
+        'relationship_id' => Relationship::inRandomOrder ()->first ()->id,
15
+        'applicant_id' => function (){
16
+            return factory (Applicant::class)->create ()->id;
17 17
         },
18 18
     ];
19 19
 });
20 20
 
21
-$factory->define(Project::class, function (Faker $faker) {
21
+$factory->define (Project::class, function (Faker $faker){
22 22
     return [
23
-        'name' => $faker->sentence(),
24
-        'start_date' => $faker->dateTimeBetween('-3 years', '-1 years'),
25
-        'end_date' => $faker->dateTimeBetween('-1 years', '-1 day'),
26
-        'applicant_id' => function () {
27
-            return factory(Applicant::class)->create()->id;
23
+        'name' => $faker->sentence (),
24
+        'start_date' => $faker->dateTimeBetween ('-3 years', '-1 years'),
25
+        'end_date' => $faker->dateTimeBetween ('-1 years', '-1 day'),
26
+        'applicant_id' => function (){
27
+            return factory (Applicant::class)->create ()->id;
28 28
         },
29 29
     ];
30 30
 });
31 31
 
32
-$factory->afterCreating(Reference::class, function ($reference) : void {
33
-    $reference->projects()->saveMany(factory(Project::class, 3)->make([
32
+$factory->afterCreating (Reference::class, function ($reference) : void {
33
+    $reference->projects ()->saveMany (factory (Project::class, 3)->make ([
34 34
         'applicant_id' => $reference->applicant_id
35 35
     ]));
36 36
 });
Please login to merge, or discard this patch.
database/factories/RatingGuideQuestionFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,12 +5,12 @@
 block discarded – undo
5 5
 use App\Models\RatingGuideQuestion;
6 6
 use App\Models\JobPoster;
7 7
 
8
-$factory->define(RatingGuideQuestion::class, function (Faker\Generator $faker) {
8
+$factory->define (RatingGuideQuestion::class, function (Faker\Generator $faker){
9 9
     return [
10
-        'job_poster_id' => function () {
11
-            return factory(JobPoster::class)->create()->id;
10
+        'job_poster_id' => function (){
11
+            return factory (JobPoster::class)->create ()->id;
12 12
         },
13
-        'assessment_type_id' => AssessmentType::inRandomOrder()->first()->id,
14
-        'question' => $faker->sentence(),
13
+        'assessment_type_id' => AssessmentType::inRandomOrder ()->first ()->id,
14
+        'question' => $faker->sentence (),
15 15
     ];
16 16
 });
Please login to merge, or discard this patch.
database/factories/RatingGuideAnswerFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,12 +5,12 @@
 block discarded – undo
5 5
 use App\Models\Skill;
6 6
 use App\Models\Criteria;
7 7
 
8
-$factory->define(RatingGuideAnswer::class, function (Faker\Generator $faker) {
8
+$factory->define (RatingGuideAnswer::class, function (Faker\Generator $faker){
9 9
     return [
10
-        'rating_guide_question_id' => function () {
11
-            return factory(RatingGuideQuestion::class)->create()->id;
10
+        'rating_guide_question_id' => function (){
11
+            return factory (RatingGuideQuestion::class)->create ()->id;
12 12
         },
13 13
         'criterion_id' => null,
14
-        'expected_answer' => $faker->sentence(),
14
+        'expected_answer' => $faker->sentence (),
15 15
     ];
16 16
 });
Please login to merge, or discard this patch.
database/factories/JobApplicationAnswerFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@
 block discarded – undo
5 5
 use App\Models\JobApplication;
6 6
 use App\Models\JobApplicationAnswer;
7 7
 
8
-$factory->define(JobApplicationAnswer::class, function (Faker\Generator $faker) {
8
+$factory->define (JobApplicationAnswer::class, function (Faker\Generator $faker){
9 9
     return [
10
-        'job_poster_question_id' => function () {
11
-            return factory(JobPosterQuestion::class)->create()->id;
10
+        'job_poster_question_id' => function (){
11
+            return factory (JobPosterQuestion::class)->create ()->id;
12 12
         },
13
-        'job_application_id' => function () {
14
-            return factory(JobApplication::class)->create()->id;
13
+        'job_application_id' => function (){
14
+            return factory (JobApplication::class)->create ()->id;
15 15
         },
16
-        'answer' => $faker->paragraph()
16
+        'answer' => $faker->paragraph ()
17 17
     ];
18 18
 });
Please login to merge, or discard this patch.
database/factories/SkillDeclarationFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 use App\Models\Lookup\SkillLevel;
7 7
 use App\Models\Applicant;
8 8
 
9
-$factory->define(SkillDeclaration::class, function (Faker\Generator $faker) {
9
+$factory->define (SkillDeclaration::class, function (Faker\Generator $faker){
10 10
     return [
11
-        'skill_id' => Skill::inRandomOrder()->first()->id,
12
-        'skill_status_id' => SkillStatus::inRandomOrder()->first()->id,
13
-        'skill_level_id' => SkillLevel::inRandomOrder()->first()->id,
14
-        'applicant_id' => function () {
15
-            return factory(Applicant::class)->create()->id;
11
+        'skill_id' => Skill::inRandomOrder ()->first ()->id,
12
+        'skill_status_id' => SkillStatus::inRandomOrder ()->first ()->id,
13
+        'skill_level_id' => SkillLevel::inRandomOrder ()->first ()->id,
14
+        'applicant_id' => function (){
15
+            return factory (Applicant::class)->create ()->id;
16 16
         },
17
-        'description' => $faker->paragraphs(3, true),
17
+        'description' => $faker->paragraphs (3, true),
18 18
     ];
19 19
 });
Please login to merge, or discard this patch.