Passed
Push — npm/audit-fix ( 9e66ec )
by Yonathan
29:50 queued 14:40
created
app/Console/Kernel.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,14 +22,14 @@  discard block
 block discarded – undo
22 22
      * @param  \Illuminate\Console\Scheduling\Schedule $schedule
23 23
      * @return void
24 24
      */
25
-    protected function schedule(Schedule $schedule): void
25
+    protected function schedule (Schedule $schedule): void
26 26
     {
27 27
         // $schedule->command('inspire')
28 28
         //          ->hourly();
29 29
 
30 30
         // start the queue daemon, if its not running
31
-        if (!$this->osProcessIsRunning('queue:work')) {
32
-            $schedule->command('queue:work')->everyMinute();
31
+        if (!$this->osProcessIsRunning ('queue:work')) {
32
+            $schedule->command ('queue:work')->everyMinute ();
33 33
         }
34 34
     }
35 35
 
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @return void
40 40
      */
41
-    protected function commands(): void
41
+    protected function commands (): void
42 42
     {
43
-        $this->load(__DIR__.'/Commands');
43
+        $this->load (__DIR__.'/Commands');
44 44
 
45
-        require base_path('routes/console.php');
45
+        require base_path ('routes/console.php');
46 46
     }
47 47
 
48 48
     /**
@@ -51,17 +51,17 @@  discard block
 block discarded – undo
51 51
      * @param string $needle
52 52
      * @return boolean
53 53
      */
54
-    protected function osProcessIsRunning(string $needle): bool
54
+    protected function osProcessIsRunning (string $needle): bool
55 55
     {
56 56
         // get process status. the "-ww"-option is important to get the full output!
57
-        exec('ps aux -ww', $process_status);
57
+        exec ('ps aux -ww', $process_status);
58 58
 
59 59
 
60 60
         // search $needle in process status
61
-        $result = array_filter(
61
+        $result = array_filter (
62 62
             $process_status,
63 63
             function ($var) use ($needle) {
64
-                return strpos($var, $needle);
64
+                return strpos ($var, $needle);
65 65
             }
66 66
         );
67 67
 
Please login to merge, or discard this patch.
app/Helpers/Helper.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 use Illuminate\Support\Facades\Config;
6 6
 use Illuminate\Support\Facades\Lang;
7 7
 
8
-if (!function_exists('humanizeDate')) {
8
+if (!function_exists ('humanizeDate')) {
9 9
     /**
10 10
      * Computes a human readable localized date.
11 11
      *
@@ -13,19 +13,19 @@  discard block
 block discarded – undo
13 13
      *
14 14
      * @return string
15 15
      */
16
-    function humanizeDate(Date $datetime) : string
16
+    function humanizeDate (Date $datetime) : string
17 17
     {
18
-        $dateFormat = Config::get('app.date_format');
19
-        $locale = App::getLocale();
20
-        $timezone = Config::get('app.local_timezone');
18
+        $dateFormat = Config::get ('app.date_format');
19
+        $locale = App::getLocale ();
20
+        $timezone = Config::get ('app.local_timezone');
21 21
 
22
-        $datetime->setTimezone(new \DateTimeZone($timezone));
22
+        $datetime->setTimezone (new \DateTimeZone ($timezone));
23 23
 
24
-        return $datetime->format($dateFormat[$locale]);
24
+        return $datetime->format ($dateFormat[$locale]);
25 25
     }
26 26
 }
27 27
 
28
-if (!function_exists('humanizeTime')) {
28
+if (!function_exists ('humanizeTime')) {
29 29
     /**
30 30
      * Computes a human readable localized time.
31 31
      *
@@ -33,25 +33,25 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @return string
35 35
      */
36
-    function humanizeTime(Date $datetime) : string
36
+    function humanizeTime (Date $datetime) : string
37 37
     {
38
-        $timeFormat = Config::get('app.time_format');
39
-        $locale = App::getLocale();
40
-        $timezone = Config::get('app.local_timezone');
38
+        $timeFormat = Config::get ('app.time_format');
39
+        $locale = App::getLocale ();
40
+        $timezone = Config::get ('app.local_timezone');
41 41
 
42
-        $datetime->setTimezone(new \DateTimeZone($timezone));
42
+        $datetime->setTimezone (new \DateTimeZone ($timezone));
43 43
 
44
-        $displayTime = $datetime->format($timeFormat[$locale]);
44
+        $displayTime = $datetime->format ($timeFormat[$locale]);
45 45
 
46 46
         if ($locale == 'fr') {
47
-            $displayTime = str_replace(['EST', 'EDT'], ['HNE', 'HAE'], $displayTime);
47
+            $displayTime = str_replace (['EST', 'EDT'], ['HNE', 'HAE'], $displayTime);
48 48
         }
49 49
 
50 50
         return $displayTime;
51 51
     }
52 52
 }
53 53
 
54
-if (!function_exists('humanizeDateDiff')) {
54
+if (!function_exists ('humanizeDateDiff')) {
55 55
     /**
56 56
      * Computes a human readable time difference between two dates.
57 57
      *
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @return string
62 62
      */
63
-    function humanizeDateDiff(Date $datetime, Date $origin = null) : string
63
+    function humanizeDateDiff (Date $datetime, Date $origin = null) : string
64 64
     {
65 65
         if (!isset($origin)) {
66
-            $origin = new Date();
66
+            $origin = new Date ();
67 67
         }
68
-        $interval = $datetime->diff($origin);
68
+        $interval = $datetime->diff ($origin);
69 69
 
70 70
         $d = $interval->d;
71 71
         $h = $interval->h;
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
 
89 89
         $key = "common/time.$unit";
90 90
 
91
-        return Lang::choice($key, $count);
91
+        return Lang::choice ($key, $count);
92 92
     }
93 93
 }
94 94
 
95
-if (!function_exists('humanizeLastDay')) {
95
+if (!function_exists ('humanizeLastDay')) {
96 96
     /**
97 97
      * Returns the date of the last full day a person has before a deadline time.
98 98
      *
@@ -100,15 +100,15 @@  discard block
 block discarded – undo
100 100
      *
101 101
      * @return string
102 102
      */
103
-    function humanizeLastDay(Date $datetime) : string
103
+    function humanizeLastDay (Date $datetime) : string
104 104
     {
105
-        $lastday = $datetime->sub('1 day');
105
+        $lastday = $datetime->sub ('1 day');
106 106
 
107
-        return humanizeDate($lastday);
107
+        return humanizeDate ($lastday);
108 108
     }
109 109
 }
110 110
 
111
-if (!function_exists('ptDayStartToUtcTime')) {
111
+if (!function_exists ('ptDayStartToUtcTime')) {
112 112
     /**
113 113
      * Given a date, creates a datetime object representing the start of day
114 114
      * in the most Western timezone in Canada (America/Vancouver).
@@ -117,21 +117,21 @@  discard block
 block discarded – undo
117 117
      *
118 118
      * @return Date
119 119
      */
120
-    function ptDayStartToUtcTime(string $date) : Date
120
+    function ptDayStartToUtcTime (string $date) : Date
121 121
     {
122
-        $jobTimezone = Config::get('app.job_timezone');
123
-        $dbTimezone = Config::get('app.timezone');
122
+        $jobTimezone = Config::get ('app.job_timezone');
123
+        $dbTimezone = Config::get ('app.timezone');
124 124
         // Create a new date that's the beginning of the day in
125 125
         // Pacific Daylight/Standard Time.
126
-        $date = new Date("$date 00:00:00", new \DateTimeZone($jobTimezone));
126
+        $date = new Date ("$date 00:00:00", new \DateTimeZone ($jobTimezone));
127 127
         // Convert to UTC for correct offset.
128
-        $date->setTimezone($dbTimezone);
128
+        $date->setTimezone ($dbTimezone);
129 129
 
130 130
         return $date;
131 131
     }
132 132
 }
133 133
 
134
-if (!function_exists('ptDayEndToUtcTime')) {
134
+if (!function_exists ('ptDayEndToUtcTime')) {
135 135
     /**
136 136
      * Given a date, creates a datetime object representing the start of day
137 137
      * in the most Western timezone in Canada (America/Vancouver).
@@ -140,15 +140,15 @@  discard block
 block discarded – undo
140 140
      *
141 141
      * @return Date
142 142
      */
143
-    function ptDayEndToUtcTime(string $date) : Date
143
+    function ptDayEndToUtcTime (string $date) : Date
144 144
     {
145
-        $jobTimezone = Config::get('app.job_timezone');
146
-        $dbTimezone = Config::get('app.timezone');
145
+        $jobTimezone = Config::get ('app.job_timezone');
146
+        $dbTimezone = Config::get ('app.timezone');
147 147
         // Create a new date that's the beginning of the day in
148 148
         // Pacific Daylight/Standard Time.
149
-        $date = new Date("$date 23:59:59", new \DateTimeZone($jobTimezone));
149
+        $date = new Date ("$date 23:59:59", new \DateTimeZone ($jobTimezone));
150 150
         // Convert to UTC for correct offset.
151
-        $date->setTimezone($dbTimezone);
151
+        $date->setTimezone ($dbTimezone);
152 152
 
153 153
         return $date;
154 154
     }
Please login to merge, or discard this patch.
app/Events/UserUpdated.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(User $user)
19
+    public function __construct (User $user)
20 20
     {
21 21
         $this->user = $user;
22 22
     }
Please login to merge, or discard this patch.
app/Events/JobSaved.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(JobPoster $job)
19
+    public function __construct (JobPoster $job)
20 20
     {
21 21
         $this->job = $job;
22 22
     }
Please login to merge, or discard this patch.
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.