Test Failed
Push — main ( d75e4f...57e80b )
by Dimitri
03:34 queued 01:38
created
src/Task.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function __construct(protected string $type, protected mixed $action, protected array $parameters = [])
80 80
     {
81
-        if (! in_array($type, $this->types, true)) {
81
+        if (!in_array($type, $this->types, true)) {
82 82
             throw TasksException::invalidTaskType($type);
83 83
         }
84 84
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     public function run()
122 122
     {
123 123
         $method = 'run' . ucfirst($this->type);
124
-        if (! method_exists($this, $method)) {
124
+        if (!method_exists($this, $method)) {
125 125
             throw TasksException::invalidTaskType($this->type);
126 126
         }
127 127
 
@@ -136,12 +136,12 @@  discard block
 block discarded – undo
136 136
         $cron = service('cronExpression')->setTimezone($this->timezone);
137 137
 
138 138
         // Autoriser le réglage des heures pendant les tests
139
-        if (! empty($testTime)) {
139
+        if (!empty($testTime)) {
140 140
             $cron->testTime($testTime);
141 141
         }
142 142
 
143 143
         // Sommes-nous limités aux environnements?
144
-        if (! empty($this->environments) && ! $this->runsInEnvironment(environment())) {
144
+        if (!empty($this->environments) && !$this->runsInEnvironment(environment())) {
145 145
             return false;
146 146
         }
147 147
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     protected function runEvent(): bool
250 250
     {
251
-        return ! (false === service('event')->emit($this->getAction()));
251
+        return !(false === service('event')->emit($this->getAction()));
252 252
     }
253 253
 
254 254
     /**
Please login to merge, or discard this patch.
src/FrequenciesTrait.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $min = $hour = 0;
77 77
 
78
-        if (! empty($time)) {
78
+        if (!empty($time)) {
79 79
             [$min, $hour] = $this->parseTime($time);
80 80
         }
81 81
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     public function everyOddHour($minute = null): self
180 180
     {
181
-		$this->expression['min']  = $minute ?? '0';
181
+		$this->expression['min'] = $minute ?? '0';
182 182
         $this->expression['hour'] = '1-23/2';
183 183
 
184 184
         return $this;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function hours($hours = []): self
203 203
     {
204
-        if (! is_array($hours)) {
204
+        if (!is_array($hours)) {
205 205
             $hours = [$hours];
206 206
         }
207 207
 
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
      */
296 296
     public function minutes($minutes = []): self
297 297
     {
298
-        if (! is_array($minutes)) {
298
+        if (!is_array($minutes)) {
299 299
             $minutes = [$minutes];
300 300
         }
301 301
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      */
312 312
     public function days($days): self
313 313
     {
314
-        if (! is_array($days)) {
314
+        if (!is_array($days)) {
315 315
             $days = [$days];
316 316
         }
317 317
 
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
     {
394 394
         $min = $hour = 0;
395 395
 
396
-        if (! empty($time)) {
396
+        if (!empty($time)) {
397 397
             [$min, $hour] = $this->parseTime($time);
398 398
         }
399 399
 
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
      */
412 412
     public function daysOfMonth($days): self
413 413
     {
414
-        if (! is_array($days)) {
414
+        if (!is_array($days)) {
415 415
             $days = [$days];
416 416
         }
417 417
 
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 	{
484 484
         $min = $hour = 0;
485 485
 
486
-        if (! empty($time)) {
486
+        if (!empty($time)) {
487 487
             [$min, $hour] = $this->parseTime($time);
488 488
         }
489 489
 
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
     {
514 514
         $min = $hour = 0;
515 515
 
516
-        if (! empty($time)) {
516
+        if (!empty($time)) {
517 517
             [$min, $hour] = $this->parseTime($time);
518 518
         }
519 519
 
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
     {
533 533
         $min = $hour = 0;
534 534
 
535
-        if (! empty($time)) {
535
+        if (!empty($time)) {
536 536
             [$min, $hour] = $this->parseTime($time);
537 537
         }
538 538
 
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
     {
551 551
         $min = $hour = 0;
552 552
 
553
-        if (! empty($time)) {
553
+        if (!empty($time)) {
554 554
             [$min, $hour] = $this->parseTime($time);
555 555
         }
556 556
 
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
     {
569 569
         $min = $hour = '*';
570 570
 
571
-        if (! empty($time)) {
571
+        if (!empty($time)) {
572 572
             [$min, $hour] = $this->parseTime($time);
573 573
         }
574 574
 
Please login to merge, or discard this patch.