@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * Implementation based on https://www.php-fig.org/psr/psr-4/examples/ |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -spl_autoload_register(function ($class) { |
|
| 9 | +spl_autoload_register(function($class) { |
|
| 10 | 10 | |
| 11 | 11 | $prefix = 'IntegerNet\\DeployerTimer\\'; |
| 12 | 12 | $base_dir = __DIR__ . '/src/'; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public function createCsvResultTask($fileName): string |
| 27 | 27 | { |
| 28 | 28 | $taskName = uniqid('timer_result-', true); |
| 29 | - $taskBody = function () use ($fileName) { |
|
| 29 | + $taskBody = function() use ($fileName) { |
|
| 30 | 30 | file_put_contents($fileName, $this->timer->resultsAsCsv()); |
| 31 | 31 | }; |
| 32 | 32 | $this->deployer->tasks->set($taskName, new Task($taskName, $taskBody)); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | public function callbackBefore(string $taskName): callable |
| 35 | 35 | { |
| 36 | - return function () use ($taskName) { |
|
| 36 | + return function() use ($taskName) { |
|
| 37 | 37 | \array_push($this->startTimeStack, $this->clock->microtime()); |
| 38 | 38 | $this->events->append(new TimerEvent(TimerEvent::TYPE_BEGIN, $taskName, $this->clock->microtime(), 0)); |
| 39 | 39 | }; |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | public function callbackAfter(string $taskName): callable |
| 43 | 43 | { |
| 44 | - return function () use ($taskName) { |
|
| 44 | + return function() use ($taskName) { |
|
| 45 | 45 | $startTime = \array_pop($this->startTimeStack); |
| 46 | 46 | $duration = $this->clock->microtime() - $startTime; |
| 47 | 47 | $this->events->append( |