@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | private function removeEmptyInArray($value) |
| 24 | 24 | { |
| 25 | - return array_filter($value, function ($item) { |
|
| 25 | + return array_filter($value, function($item) { |
|
| 26 | 26 | return !empty((is_array($item)) ? $this->removeEmptyInArray($item) : $item); |
| 27 | 27 | }); |
| 28 | 28 | } |
@@ -68,9 +68,9 @@ |
||
| 68 | 68 | $maxWait = max($waits); |
| 69 | 69 | |
| 70 | 70 | // Convert all wait times to float |
| 71 | - $waits = array_map(function ($item) { return (int) $item; }, $waits); |
|
| 71 | + $waits = array_map(function($item) { return (int) $item; }, $waits); |
|
| 72 | 72 | // Skip tasks not wait |
| 73 | - $waits = array_filter($waits, function ($item) { return 0 != $item; }); |
|
| 73 | + $waits = array_filter($waits, function($item) { return 0 != $item; }); |
|
| 74 | 74 | |
| 75 | 75 | $reference = $maxWait / 100; |
| 76 | 76 | |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $currentOutput = $this->process->getIncrementalOutput(); |
| 51 | 51 | |
| 52 | 52 | $lines = explode(PHP_EOL, $currentOutput); |
| 53 | - $lines = array_filter($lines, function ($item) { return !empty($item); }); |
|
| 53 | + $lines = array_filter($lines, function($item) { return !empty($item); }); |
|
| 54 | 54 | |
| 55 | 55 | $state->debug('{count} lines', ['count' => count($lines)]); |
| 56 | 56 | |