Test Failed
Push — main ( d75e4f...57e80b )
by Dimitri
03:34 queued 01:38
created
phpstan-baseline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 $ignoreErrors = [];
4 4
 $ignoreErrors[] = [
Please login to merge, or discard this patch.
kahlan-config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,4 +42,4 @@
 block discarded – undo
42 42
     $reporters->add('coverage', $coverage);
43 43
 });
44 44
 
45
-require_once realpath(rtrim(getcwd(), '\\/ ')).DIRECTORY_SEPARATOR.'spec'.DIRECTORY_SEPARATOR.'bootstrap.php';
45
+require_once realpath(rtrim(getcwd(), '\\/ ')) . DIRECTORY_SEPARATOR . 'spec' . DIRECTORY_SEPARATOR . 'bootstrap.php';
Please login to merge, or discard this patch.
src/RunResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
                 }
100 100
 
101 101
                 // Si nous ne le faisons pas correspondre, recommencez les itérations
102
-                if (! $satisfied) {
102
+                if (!$satisfied) {
103 103
                     $next = $this->increment($next, $position);
104 104
 
105 105
                     continue 2;
Please login to merge, or discard this patch.
src/Test/MockTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function run()
34 34
     {
35 35
         $method = 'run' . ucfirst($this->type);
36
-        if (! method_exists($this, $method)) {
36
+        if (!method_exists($this, $method)) {
37 37
             throw TasksException::invalidTaskType($this->type);
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/Config/tasks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * Enregistrez toutes les tâches dans cette méthode pour l'application.
39 39
      * Appelé par TaskRunner.
40 40
      */
41
-    'init' => function (Scheduler $schedule) {
41
+    'init' => function(Scheduler $schedule) {
42 42
         $schedule->command('foo:bar')->daily();
43 43
 
44 44
         $schedule->shell('cp foo bar')->daily('11:00 pm');
Please login to merge, or discard this patch.
src/CronExpression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
         if (str_contains($time, '/')) {
145 145
             $period = substr($time, strpos($time, '/') + 1) ?: '';
146 146
 
147
-            if ($period === '' || ! ctype_digit($period)) {
147
+            if ($period === '' || !ctype_digit($period)) {
148 148
                 throw TasksException::invalidCronExpression($this->currentExpression);
149 149
             }
150 150
 
Please login to merge, or discard this patch.
src/TaskRunner.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
 
59 59
         foreach ($tasks as $task) {
60 60
             // Si des tâches spécifiques ont été choisies, sauter l'exécution des tâches restantes.
61
-            if (! empty($this->only) && ! in_array($task->name, $this->only, true)) {
61
+            if (!empty($this->only) && !in_array($task->name, $this->only, true)) {
62 62
                 continue;
63 63
             }
64 64
 
65
-            if (! $task->shouldRun($this->testTime) && empty($this->only)) {
65
+            if (!$task->shouldRun($this->testTime) && empty($this->only)) {
66 66
                 continue;
67 67
             }
68 68
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             return;
131 131
         }
132 132
 
133
-        if (! is_cli()) {
133
+        if (!is_cli()) {
134 134
             return;
135 135
         }
136 136
 
Please login to merge, or discard this patch.
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.