Skip to content

Commit 0039a85

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 4102c8e commit 0039a85

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Output/ProgressBar.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function option(string|array $key, ?string $value = null): self
145145
}
146146

147147
/**
148-
* Force end of progress
148+
* Force end of progress.
149149
*/
150150
public function finish(): void
151151
{
@@ -328,11 +328,11 @@ protected function labelFormatted(string $label): string
328328
}
329329

330330
/**
331-
* Format the output of the progress bar by placing the label in the right place (top, right, bottom or left)
331+
* Format the output of the progress bar by placing the label in the right place (top, right, bottom or left).
332332
*/
333333
protected function progressBarFormatted(string $bar, string $number, string $label): string
334334
{
335-
if (! $this->options['showPercentage']) {
335+
if (!$this->options['showPercentage']) {
336336
$number = '';
337337
}
338338

@@ -342,7 +342,7 @@ protected function progressBarFormatted(string $bar, string $number, string $lab
342342
$progress[] = '<' . $this->options['color'] . '>' . $bar . '</end> ';
343343
$progress[] = '<' . $this->options['labelColor'] . '>' . $label . '</end> ';
344344
$progress[] = '<' . $this->options['color'] . '>' . $number . '</end>';
345-
} else if ($this->options['labelPosition'] === 'top') {
345+
} elseif ($this->options['labelPosition'] === 'top') {
346346
// display :Label
347347
// ====> 50%
348348
$progress[] = '<' . $this->options['labelColor'] . '>' . $label . "\n" . '</end>';

src/Output/Writer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,13 @@ public function table(array $rows, array $styles = []): self
303303
}
304304

305305
/**
306-
* writes a key/value set to two columns in a row
306+
* writes a key/value set to two columns in a row.
307307
*
308308
* @example PHP Version ............................................................. 8.1.4
309309
*
310-
* @param string $first The text to write in left side
311-
* @param string|null $second The text to write in right side
312-
* @param array $options Options to use when writing Eg: ['fg' => Color::GREEN, 'bold' => 1, 'sep' => '-']
310+
* @param string $first The text to write in left side
311+
* @param string|null $second The text to write in right side
312+
* @param array $options Options to use when writing Eg: ['fg' => Color::GREEN, 'bold' => 1, 'sep' => '-']
313313
*
314314
* @return self
315315
*/

tests/Output/WriterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ public function test_justify()
123123
$w = new Writer(static::$ou);
124124

125125
$w->justify('PHP Version', PHP_VERSION, [
126-
'sep' => '-'
126+
'sep' => '-',
127127
]);
128128

129129
$buffer = trim($this->buffer());
130130

131-
$this->assertStringContainsString("PHP Version", $buffer);
131+
$this->assertStringContainsString('PHP Version', $buffer);
132132
$this->assertStringContainsString('---', $buffer);
133133
$this->assertStringContainsString(PHP_VERSION, $buffer);
134134
}

0 commit comments

Comments
 (0)