Test Failed
Branch main (f016eb)
by Dimitri
12:23
created
phpstan-baseline.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -2,40 +2,40 @@
 block discarded – undo
2 2
 
3 3
 $ignoreErrors = [];
4 4
 $ignoreErrors[] = [
5
-	'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<cronExpression\\>, string given\\.$#',
6
-	'identifier' => 'argument.type',
7
-	'count' => 1,
8
-	'path' => __DIR__ . '/src/Commands/Lister.php',
5
+    'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<cronExpression\\>, string given\\.$#',
6
+    'identifier' => 'argument.type',
7
+    'count' => 1,
8
+    'path' => __DIR__ . '/src/Commands/Lister.php',
9 9
 ];
10 10
 $ignoreErrors[] = [
11
-	'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
12
-	'identifier' => 'argument.type',
13
-	'count' => 1,
14
-	'path' => __DIR__ . '/src/Commands/Lister.php',
11
+    'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
12
+    'identifier' => 'argument.type',
13
+    'count' => 1,
14
+    'path' => __DIR__ . '/src/Commands/Lister.php',
15 15
 ];
16 16
 $ignoreErrors[] = [
17
-	'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
18
-	'identifier' => 'argument.type',
19
-	'count' => 1,
20
-	'path' => __DIR__ . '/src/Commands/Run.php',
17
+    'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
18
+    'identifier' => 'argument.type',
19
+    'count' => 1,
20
+    'path' => __DIR__ . '/src/Commands/Run.php',
21 21
 ];
22 22
 $ignoreErrors[] = [
23
-	'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<cronExpression\\>, string given\\.$#',
24
-	'identifier' => 'argument.type',
25
-	'count' => 1,
26
-	'path' => __DIR__ . '/src/Task.php',
23
+    'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<cronExpression\\>, string given\\.$#',
24
+    'identifier' => 'argument.type',
25
+    'count' => 1,
26
+    'path' => __DIR__ . '/src/Task.php',
27 27
 ];
28 28
 $ignoreErrors[] = [
29
-	'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<httpclient\\>, string given\\.$#',
30
-	'identifier' => 'argument.type',
31
-	'count' => 1,
32
-	'path' => __DIR__ . '/src/Task.php',
29
+    'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<httpclient\\>, string given\\.$#',
30
+    'identifier' => 'argument.type',
31
+    'count' => 1,
32
+    'path' => __DIR__ . '/src/Task.php',
33 33
 ];
34 34
 $ignoreErrors[] = [
35
-	'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
36
-	'identifier' => 'argument.type',
37
-	'count' => 1,
38
-	'path' => __DIR__ . '/src/TaskRunner.php',
35
+    'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
36
+    'identifier' => 'argument.type',
37
+    'count' => 1,
38
+    'path' => __DIR__ . '/src/TaskRunner.php',
39 39
 ];
40 40
 
41 41
 return ['parameters' => ['ignoreErrors' => $ignoreErrors]];
Please login to merge, or discard this 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/Task.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function __construct(string $type, $action)
83 83
     {
84
-        if (! in_array($type, $this->types, true)) {
84
+        if (!in_array($type, $this->types, true)) {
85 85
             throw TasksException::invalidTaskType($type);
86 86
         }
87 87
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     public function run()
128 128
     {
129 129
         $method = 'run' . ucfirst($this->type);
130
-        if (! method_exists($this, $method)) {
130
+        if (!method_exists($this, $method)) {
131 131
             throw TasksException::invalidTaskType($this->type);
132 132
         }
133 133
 
@@ -142,12 +142,12 @@  discard block
 block discarded – undo
142 142
         $cron = service('cronExpression');
143 143
 
144 144
         // Autoriser le réglage des heures pendant les tests
145
-        if (! empty($testTime)) {
145
+        if (!empty($testTime)) {
146 146
             $cron->testTime($testTime);
147 147
         }
148 148
 
149 149
         // Sommes-nous limités aux environnements?
150
-        if (! empty($this->environments) && ! $this->runsInEnvironment(environment())) {
150
+        if (!empty($this->environments) && !$this->runsInEnvironment(environment())) {
151 151
             return false;
152 152
         }
153 153
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      */
242 242
     protected function runEvent(): bool
243 243
     {
244
-        return ! (false === service('event')->emit($this->getAction()));
244
+        return !(false === service('event')->emit($this->getAction()));
245 245
     }
246 246
 
247 247
     /**
Please login to merge, or discard this patch.
src/FrequenciesTrait.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $min = $hour = 0;
67 67
 
68
-        if (! empty($time)) {
68
+        if (!empty($time)) {
69 69
             [$min, $hour] = $this->parseTime($time);
70 70
         }
71 71
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function hours($hours = []): self
131 131
     {
132
-        if (! is_array($hours)) {
132
+        if (!is_array($hours)) {
133 133
             $hours = [$hours];
134 134
         }
135 135
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     public function minutes($minutes = []): self
193 193
     {
194
-        if (! is_array($minutes)) {
194
+        if (!is_array($minutes)) {
195 195
             $minutes = [$minutes];
196 196
         }
197 197
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      */
208 208
     public function days($days): self
209 209
     {
210
-        if (! is_array($days)) {
210
+        if (!is_array($days)) {
211 211
             $days = [$days];
212 212
         }
213 213
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     {
280 280
         $min = $hour = 0;
281 281
 
282
-        if (! empty($time)) {
282
+        if (!empty($time)) {
283 283
             [$min, $hour] = $this->parseTime($time);
284 284
         }
285 285
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      */
298 298
     public function daysOfMonth($days): self
299 299
     {
300
-        if (! is_array($days)) {
300
+        if (!is_array($days)) {
301 301
             $days = [$days];
302 302
         }
303 303
 
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     {
352 352
         $min = $hour = 0;
353 353
 
354
-        if (! empty($time)) {
354
+        if (!empty($time)) {
355 355
             [$min, $hour] = $this->parseTime($time);
356 356
         }
357 357
 
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
     {
372 372
         $min = $hour = 0;
373 373
 
374
-        if (! empty($time)) {
374
+        if (!empty($time)) {
375 375
             [$min, $hour] = $this->parseTime($time);
376 376
         }
377 377
 
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
     {
391 391
         $min = $hour = 0;
392 392
 
393
-        if (! empty($time)) {
393
+        if (!empty($time)) {
394 394
             [$min, $hour] = $this->parseTime($time);
395 395
         }
396 396
 
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
     {
409 409
         $min = $hour = 0;
410 410
 
411
-        if (! empty($time)) {
411
+        if (!empty($time)) {
412 412
             [$min, $hour] = $this->parseTime($time);
413 413
         }
414 414
 
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
     {
427 427
         $min = $hour = '*';
428 428
 
429
-        if (! empty($time)) {
429
+        if (!empty($time)) {
430 430
             [$min, $hour] = $this->parseTime($time);
431 431
         }
432 432
 
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.