Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Output/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@ public function table(array $rows, array $styles = []): self
}

/**
* writes a key/value set to two columns in a row
* writes a key/value set to two columns in a row.
*
* @example PHP Version ............................................................. 8.1.4
*
* @param string $first The text to write in left side
* @param string|null $second The text to write in right side
* @param array $options Options to use when writing Eg: ['fg' => Color::GREEN, 'bold' => 1, 'sep' => '-']
* @param string $first The text to write in left side
* @param string|null $second The text to write in right side
* @param array $options Options to use when writing Eg: ['fg' => Color::GREEN, 'bold' => 1, 'sep' => '-']
*
* @return self
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/Output/WriterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ public function test_justify()
$w = new Writer(static::$ou);

$w->justify('PHP Version', PHP_VERSION, [
'sep' => '-'
'sep' => '-',
]);

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

$this->assertStringContainsString("PHP Version", $buffer);
$this->assertStringContainsString('PHP Version', $buffer);
$this->assertStringContainsString('---', $buffer);
$this->assertStringContainsString(PHP_VERSION, $buffer);
}
Expand Down