Test Failed
Push — main ( 6b8274...60a3ae )
by Dimitri
03:24 queued 01:04
created
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.
phpstan-baseline.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -2,58 +2,58 @@
 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' => '#^Cannot call method startOfMinute\\(\\) on BlitzPHP\\\\Utilities\\\\Date\\|string\\.$#',
24
-	'identifier' => 'method.nonObject',
25
-	'count' => 2,
26
-	'path' => __DIR__ . '/src/Commands/Work.php',
23
+    'message' => '#^Cannot call method startOfMinute\\(\\) on BlitzPHP\\\\Utilities\\\\Date\\|string\\.$#',
24
+    'identifier' => 'method.nonObject',
25
+    'count' => 2,
26
+    'path' => __DIR__ . '/src/Commands/Work.php',
27 27
 ];
28 28
 $ignoreErrors[] = [
29
-	'message' => '#^While loop condition is always true\\.$#',
30
-	'identifier' => 'while.alwaysTrue',
31
-	'count' => 1,
32
-	'path' => __DIR__ . '/src/Commands/Work.php',
29
+    'message' => '#^While loop condition is always true\\.$#',
30
+    'identifier' => 'while.alwaysTrue',
31
+    'count' => 1,
32
+    'path' => __DIR__ . '/src/Commands/Work.php',
33 33
 ];
34 34
 $ignoreErrors[] = [
35
-	'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<container\\>, string given\\.$#',
36
-	'identifier' => 'argument.type',
37
-	'count' => 1,
38
-	'path' => __DIR__ . '/src/Task.php',
35
+    'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<container\\>, string given\\.$#',
36
+    'identifier' => 'argument.type',
37
+    'count' => 1,
38
+    'path' => __DIR__ . '/src/Task.php',
39 39
 ];
40 40
 $ignoreErrors[] = [
41
-	'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<cronExpression\\>, string given\\.$#',
42
-	'identifier' => 'argument.type',
43
-	'count' => 1,
44
-	'path' => __DIR__ . '/src/Task.php',
41
+    'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<cronExpression\\>, string given\\.$#',
42
+    'identifier' => 'argument.type',
43
+    'count' => 1,
44
+    'path' => __DIR__ . '/src/Task.php',
45 45
 ];
46 46
 $ignoreErrors[] = [
47
-	'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<httpclient\\>, string given\\.$#',
48
-	'identifier' => 'argument.type',
49
-	'count' => 1,
50
-	'path' => __DIR__ . '/src/Task.php',
47
+    'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<httpclient\\>, string given\\.$#',
48
+    'identifier' => 'argument.type',
49
+    'count' => 1,
50
+    'path' => __DIR__ . '/src/Task.php',
51 51
 ];
52 52
 $ignoreErrors[] = [
53
-	'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
54
-	'identifier' => 'argument.type',
55
-	'count' => 1,
56
-	'path' => __DIR__ . '/src/TaskRunner.php',
53
+    'message' => '#^Parameter \\#1 \\$name of function service expects class\\-string\\<scheduler\\>, string given\\.$#',
54
+    'identifier' => 'argument.type',
55
+    'count' => 1,
56
+    'path' => __DIR__ . '/src/TaskRunner.php',
57 57
 ];
58 58
 
59 59
 return ['parameters' => ['ignoreErrors' => $ignoreErrors]];
Please login to merge, or discard this patch.
src/HooksTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
         $addresses = Arr::wrap($addresses);
91 91
 
92
-        return $this->then(function (MailerInterface $mailer) use ($addresses, $onlyIfOutputExists) {
92
+        return $this->then(function(MailerInterface $mailer) use ($addresses, $onlyIfOutputExists) {
93 93
             $this->emailOutput($mailer, $addresses, $onlyIfOutputExists);
94 94
         });
95 95
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         $addresses = Arr::wrap($addresses);
119 119
 
120
-        return $this->onFailure(function (MailerInterface $mailer) use ($addresses) {
120
+        return $this->onFailure(function(MailerInterface $mailer) use ($addresses) {
121 121
             $this->emailOutput($mailer, $addresses, false);
122 122
         });
123 123
     }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function onSuccess(Closure $callback): self
157 157
     {
158
-        return $this->then(function (ContainerInterface $container) use ($callback) {
158
+        return $this->then(function(ContainerInterface $container) use ($callback) {
159 159
             if ($this->exitCode === EXIT_SUCCESS) {
160 160
                 $container->call($callback);
161 161
             }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      */
168 168
     public function onFailure(Closure $callback): self
169 169
     {
170
-        return $this->then(function (ContainerInterface $container) use ($callback) {
170
+        return $this->then(function(ContainerInterface $container) use ($callback) {
171 171
             if ($this->exitCode !== EXIT_SUCCESS) {
172 172
                 $container->call($callback, array_filter([$this->exception]));
173 173
             }
Please login to merge, or discard this patch.
src/Commands/Work.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         while (true) {
66 66
             usleep(100 * 1000);
67 67
 
68
-            if ((int) (Date::now()->getSecond()) === 0 && ! Date::now()->startOfMinute()->equalTo($lastExecutionStartedAt)) {
68
+            if ((int) (Date::now()->getSecond()) === 0 && !Date::now()->startOfMinute()->equalTo($lastExecutionStartedAt)) {
69 69
                 $executions[] = $execution = Process::fromShellCommandline($command);
70 70
 
71 71
                 $execution->start();
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
                 $this->write(ltrim($output, "\n"))->eol();
80 80
 
81
-                if (! $execution->isRunning()) {
81
+                if (!$execution->isRunning()) {
82 82
                     unset($executions[$key]);
83 83
                 }
84 84
             }
Please login to merge, or discard this patch.