Passed
Push — task/common-translation-packag... ( 61d9a2...d137e8 )
by Grant
18:45 queued 08:27
created
app/Events/ApplicationRetrieved.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      *
17 17
      * @return void
18 18
      */
19
-    public function __construct(JobApplication $application)
19
+    public function __construct (JobApplication $application)
20 20
     {
21 21
         $this->application = $application;
22 22
     }
Please login to merge, or discard this patch.
app/Models/ApplicantProfileAnswer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@
 block discarded – undo
34 34
         'applicant_profile_question'
35 35
     ];
36 36
 
37
-    public function applicant() {
38
-        return $this->belongsTo(\App\Models\Applicant::class);
37
+    public function applicant () {
38
+        return $this->belongsTo (\App\Models\Applicant::class);
39 39
     }
40 40
 
41
-    public function applicant_profile_question() {
42
-        return $this->belongsTo(\App\Models\Lookup\ApplicantProfileQuestion::class);
41
+    public function applicant_profile_question () {
42
+        return $this->belongsTo (\App\Models\Lookup\ApplicantProfileQuestion::class);
43 43
     }
44 44
 
45 45
 }
Please login to merge, or discard this patch.
app/Models/RatingGuideAnswer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param string|null $value Criterion Id, or empty string
35 35
      * @return void
36 36
      */
37
-    public function setCriterionIdAttribute($value): void
37
+    public function setCriterionIdAttribute ($value): void
38 38
     {
39 39
         if (empty($value)) { // will check for empty string, null values
40 40
             $this->attributes['criterion_id'] = null;
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
      *
49 49
      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
50 50
      */
51
-    public function rating_guide_question(): \Illuminate\Database\Eloquent\Relations\BelongsTo
51
+    public function rating_guide_question (): \Illuminate\Database\Eloquent\Relations\BelongsTo
52 52
     {
53
-        return $this->belongsTo(\App\Models\RatingGuideQuestion::class);
53
+        return $this->belongsTo (\App\Models\RatingGuideQuestion::class);
54 54
     }
55 55
 
56 56
     /**
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
60 60
      */
61
-    public function criterion(): \Illuminate\Database\Eloquent\Relations\BelongsTo
61
+    public function criterion (): \Illuminate\Database\Eloquent\Relations\BelongsTo
62 62
     {
63
-        return $this->belongsTo(\App\Models\Criteria::class, 'criterion_id');
63
+        return $this->belongsTo (\App\Models\Criteria::class, 'criterion_id');
64 64
     }
65 65
 }
Please login to merge, or discard this patch.
app/Models/ProfilePic.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
         'image'
32 32
     ];
33 33
 
34
-    public function user() {
35
-        return $this->belongsTo(\App\Models\User::class);
34
+    public function user () {
35
+        return $this->belongsTo (\App\Models\User::class);
36 36
     }
37 37
 
38 38
 }
Please login to merge, or discard this patch.
app/Models/UserRole.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
 
22 22
     protected $fillable = [];
23 23
 
24
-    public function users()
24
+    public function users ()
25 25
     {
26
-        return $this->hasMany(\App\Models\User::class);
26
+        return $this->hasMany (\App\Models\User::class);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
app/Models/JobApplicationAnswer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
         'answer'
31 31
     ];
32 32
 
33
-    public function job_application() {
34
-        return $this->belongsTo(\App\Models\JobApplication::class);
33
+    public function job_application () {
34
+        return $this->belongsTo (\App\Models\JobApplication::class);
35 35
     }
36 36
 
37
-    public function job_poster_question() {
38
-        return $this->belongsTo(\App\Models\JobPosterQuestion::class);
37
+    public function job_poster_question () {
38
+        return $this->belongsTo (\App\Models\JobPosterQuestion::class);
39 39
     }
40 40
 
41 41
 }
Please login to merge, or discard this patch.
app/Models/Assessment.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @return Illuminate\Database\Eloquent\Relations\Relation
37 37
      */
38
-    public function criterion() // phpcs:ignore
38
+    public function criterion () // phpcs:ignore
39 39
     {
40
-        return $this->belongsTo(Criteria::class, 'criterion_id');
40
+        return $this->belongsTo (Criteria::class, 'criterion_id');
41 41
     }
42 42
 
43 43
     /**
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @return Illuminate\Database\Eloquent\Relations\Relation
47 47
      */
48
-    public function assessment_type() // phpcs:ignore
48
+    public function assessment_type () // phpcs:ignore
49 49
     {
50
-        return $this->belongsTo(AssessmentType::class);
50
+        return $this->belongsTo (AssessmentType::class);
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
app/Models/RatingGuideQuestion.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
      *
35 35
      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
36 36
      */
37
-    public function job_poster(): \Illuminate\Database\Eloquent\Relations\BelongsTo
37
+    public function job_poster (): \Illuminate\Database\Eloquent\Relations\BelongsTo
38 38
     {
39
-        return $this->belongsTo(\App\Models\JobPoster::class);
39
+        return $this->belongsTo (\App\Models\JobPoster::class);
40 40
     }
41 41
 
42 42
     /**
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
46 46
      */
47
-    public function assessment_type(): \Illuminate\Database\Eloquent\Relations\BelongsTo
47
+    public function assessment_type (): \Illuminate\Database\Eloquent\Relations\BelongsTo
48 48
     {
49
-        return $this->belongsTo(\App\Models\Lookup\AssessmentType::class);
49
+        return $this->belongsTo (\App\Models\Lookup\AssessmentType::class);
50 50
     }
51 51
 
52 52
     /**
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
      *
55 55
      * @return \Illuminate\Database\Eloquent\Relations\HasMany
56 56
      */
57
-    public function rating_guide_answers(): \Illuminate\Database\Eloquent\Relations\HasMany
57
+    public function rating_guide_answers (): \Illuminate\Database\Eloquent\Relations\HasMany
58 58
     {
59
-        return $this->hasMany(\App\Models\RatingGuideAnswer::class);
59
+        return $this->hasMany (\App\Models\RatingGuideAnswer::class);
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
app/Models/BaseModel.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      *
18 18
      * @return Date
19 19
      */
20
-    public function freshTimestamp()
20
+    public function freshTimestamp ()
21 21
     {
22 22
         return new Date;
23 23
     }
@@ -28,15 +28,15 @@  discard block
 block discarded – undo
28 28
      * @param  mixed $value
29 29
      * @return Date
30 30
      */
31
-    protected function asDateTime($value)
31
+    protected function asDateTime ($value)
32 32
     {
33
-        $timezone = Config::get('app.timezone');
33
+        $timezone = Config::get ('app.timezone');
34 34
 
35 35
         // If this value is already a Carbon instance, we shall just return it as is.
36 36
         // This prevents us having to re-instantiate a Carbon instance when we know
37 37
         // it already is one, which wouldn't be fulfilled by the DateTime check.
38 38
         if ($value instanceof Carbon) {
39
-            return Date::parse($value, $timezone);
39
+            return Date::parse ($value, $timezone);
40 40
         }
41 41
         if ($value instanceof Date) {
42 42
             return $value;
@@ -45,35 +45,35 @@  discard block
 block discarded – undo
45 45
         // these checks since they will be a waste of time, and hinder performance
46 46
         // when checking the field. We will just return the DateTime right away.
47 47
         if ($value instanceof DateTimeInterface) {
48
-            return new Date(
48
+            return new Date (
49 49
                 //$value->format('Y-m-d H:i:s.u'), $value->getTimeZone()
50
-                $value->format('Y-m-d H:i:s.u'), $timezone
50
+                $value->format ('Y-m-d H:i:s.u'), $timezone
51 51
             );
52 52
         }
53 53
         // If this value is an integer, we will assume it is a UNIX timestamp's value
54 54
         // and format a Carbon object from this timestamp. This allows flexibility
55 55
         // when defining your date fields as they might be UNIX timestamps here.
56
-        if (is_numeric($value)) {
57
-            return Date::createFromTimestamp($value, $timezone);
56
+        if (is_numeric ($value)) {
57
+            return Date::createFromTimestamp ($value, $timezone);
58 58
         }
59 59
         // If the value is in simply year, month, day format, we will instantiate the
60 60
         // Carbon instances from that format. Again, this provides for simple date
61 61
         // fields on the database, while still supporting Carbonized conversion.
62
-        if (preg_match('/^(\d{4})-(\d{1,2})-(\d{1,2})$/', $value)) {
63
-            return Date::createFromFormat('Y-m-d', $value, $timezone)->startOfDay();
62
+        if (preg_match ('/^(\d{4})-(\d{1,2})-(\d{1,2})$/', $value)) {
63
+            return Date::createFromFormat ('Y-m-d', $value, $timezone)->startOfDay ();
64 64
         }
65 65
 
66 66
         // If the date follows the api configured date format, use that.
67
-        $apiFormat = Config::get('app.api_datetime_format');
68
-        $date = DateTime::createFromFormat($apiFormat, $value);
69
-        if ($date && $date->format($apiFormat) == $value) {
67
+        $apiFormat = Config::get ('app.api_datetime_format');
68
+        $date = DateTime::createFromFormat ($apiFormat, $value);
69
+        if ($date && $date->format ($apiFormat) == $value) {
70 70
             return $date;
71 71
         }
72 72
 
73 73
         // Finally, we will just assume this date is in the format used by default on
74 74
         // the database connection and use that format to create the Carbon object
75 75
         // that is returned back out to the developers after we convert it here.
76
-        return Date::createFromFormat($this->getDateFormat(), $value, $timezone);
76
+        return Date::createFromFormat ($this->getDateFormat (), $value, $timezone);
77 77
     }
78 78
 
79 79
     /**
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
      * @param DateTimeInterface $date
83 83
      * @return void
84 84
      */
85
-    protected function serializeDate(DateTimeInterface $date)
85
+    protected function serializeDate (DateTimeInterface $date)
86 86
     {
87
-        return $date->format(Config::get('app.api_datetime_format'));
87
+        return $date->format (Config::get ('app.api_datetime_format'));
88 88
     }
89 89
 }
Please login to merge, or discard this patch.