@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $this->silent = $silent ?? $this->silent; |
61 | 61 | |
62 | 62 | $this->iterationNumberGenerator = |
63 | - function (int $iterations, int $i = 1): \Generator { |
|
63 | + function(int $iterations, int $i = 1): \Generator { |
|
64 | 64 | while ($i <= $iterations) { |
65 | 65 | yield $i++; |
66 | 66 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | { |
85 | 85 | if ($iterations < self::MIN_ITERATIONS) { |
86 | 86 | throw new \RuntimeException( |
87 | - '[' . __CLASS__ . '] Number of Iterations should be greater than ' . self::MIN_ITERATIONS . '.' |
|
87 | + '['.__CLASS__.'] Number of Iterations should be greater than '.self::MIN_ITERATIONS.'.' |
|
88 | 88 | ); |
89 | 89 | } |
90 | 90 | } |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | |
300 | 300 | protected function showComment(string $comment = ''): void |
301 | 301 | { |
302 | - echo $comment . PHP_EOL; |
|
302 | + echo $comment.PHP_EOL; |
|
303 | 303 | } |
304 | 304 | |
305 | 305 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | protected function assertArgs(string $name, array $arguments): void |
87 | 87 | { |
88 | 88 | if (1 !== \count($arguments)) { |
89 | - throw new \ArgumentCountError('Method [' . $name . '] accepts only one argument.'); |
|
89 | + throw new \ArgumentCountError('Method ['.$name.'] accepts only one argument.'); |
|
90 | 90 | } |
91 | 91 | } |
92 | 92 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | protected function assertMethodName(string $name): void |
97 | 97 | { |
98 | 98 | if (!\array_key_exists($name, static::THEMES)) { |
99 | - throw new \BadMethodCallException('Unknown method call [' . $name . '] in [' . static::class . '].'); |
|
99 | + throw new \BadMethodCallException('Unknown method call ['.$name.'] in ['.static::class.'].'); |
|
100 | 100 | } |
101 | 101 | } |
102 | 102 | } |
@@ -34,17 +34,17 @@ discard block |
||
34 | 34 | $this->progressBar = new ProgressBar($this->output, $this->advanceSteps); |
35 | 35 | $this->progressBar->setBarWidth($this->progressBarWidth); |
36 | 36 | $progressStart = |
37 | - function (): void { |
|
37 | + function(): void { |
|
38 | 38 | $this->progressBar->start(); |
39 | 39 | }; |
40 | 40 | |
41 | 41 | $progressAdvance = |
42 | - function (): void { |
|
42 | + function(): void { |
|
43 | 43 | $this->progressBar->advance(); |
44 | 44 | }; |
45 | 45 | |
46 | 46 | $progressFinish = |
47 | - function (): void { |
|
47 | + function(): void { |
|
48 | 48 | $this->progressBar->finish(); |
49 | 49 | $this->progressBar->clear(); |
50 | 50 | }; |
@@ -92,6 +92,6 @@ discard block |
||
92 | 92 | // $outputStyle = new OutputFormatterStyle('red', 'yellow', ['bold', 'blink']); |
93 | 93 | // $this->output->getFormatter()->setStyle('fire', $outputStyle); |
94 | 94 | // |
95 | - $this->output->writeln('<comment>' . $comment . '</>'); |
|
95 | + $this->output->writeln('<comment>'.$comment.'</>'); |
|
96 | 96 | } |
97 | 97 | } |