@@ -31,17 +31,17 @@ discard block |
||
31 | 31 | $this->progressBar = $progressBar ?? $this->createProgressBar(); |
32 | 32 | |
33 | 33 | $progressStart = |
34 | - function (): void { |
|
34 | + function(): void { |
|
35 | 35 | $this->progressBar->start(); |
36 | 36 | }; |
37 | 37 | |
38 | 38 | $progressAdvance = |
39 | - function (): void { |
|
39 | + function(): void { |
|
40 | 40 | $this->progressBar->advance(); |
41 | 41 | }; |
42 | 42 | |
43 | 43 | $progressFinish = |
44 | - function (): void { |
|
44 | + function(): void { |
|
45 | 45 | $this->progressBar->finish(); |
46 | 46 | $this->progressBar->clear(); |
47 | 47 | }; |
@@ -110,15 +110,15 @@ discard block |
||
110 | 110 | |
111 | 111 | protected function showComment(string $comment = ''): void |
112 | 112 | { |
113 | - $this->output->writeln('<comment>' . $comment . '</>'); |
|
113 | + $this->output->writeln('<comment>'.$comment.'</>'); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | protected function sectionSeparator(?string $char): string |
117 | 117 | { |
118 | 118 | return |
119 | - ' ' . str_repeat( |
|
119 | + ' '.str_repeat( |
|
120 | 120 | $char ?? static::DEFAULT_SEPARATOR_CHAR, |
121 | 121 | $this->terminalWidth - 2 |
122 | - ) . ' ' . PHP_EOL . PHP_EOL; |
|
122 | + ).' '.PHP_EOL.PHP_EOL; |
|
123 | 123 | } |
124 | 124 | } |
@@ -15,19 +15,19 @@ |
||
15 | 15 | $width = $this->advanceSteps = $this->terminalWidth(); |
16 | 16 | if (!$quiet) { |
17 | 17 | $progressStart = |
18 | - static function () use ($width): void { |
|
19 | - echo ' [' . str_repeat('░', $width) . ']'; |
|
20 | - echo "\e[" . ($width + 1) . 'D'; |
|
18 | + static function() use ($width): void { |
|
19 | + echo ' ['.str_repeat('░', $width).']'; |
|
20 | + echo "\e[".($width + 1).'D'; |
|
21 | 21 | }; |
22 | 22 | |
23 | 23 | $progressAdvance = |
24 | - static function (): void { |
|
24 | + static function(): void { |
|
25 | 25 | echo '█'; |
26 | 26 | }; |
27 | 27 | |
28 | 28 | $progressFinish = |
29 | - static function () use ($width): void { |
|
30 | - echo "\e[" . ($width + 1) . 'D'; |
|
29 | + static function() use ($width): void { |
|
30 | + echo "\e[".($width + 1).'D'; |
|
31 | 31 | echo "\e[K"; |
32 | 32 | }; |
33 | 33 |