Skip to content

Commit b5e2a28

Browse files
committed
fix name variable
1 parent c3d38d3 commit b5e2a28

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Symfony/Component/Console/Helper/Table.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public function render()
374374

375375
$isHeader = !$this->horizontal;
376376
$isFirstRow = $this->horizontal;
377-
$isTitleNeed = (bool) $this->headerTitle;
377+
$needsTitle = (bool) $this->headerTitle;
378378
foreach ($rows as $row) {
379379
if ($divider === $row) {
380380
$isHeader = false;
@@ -394,11 +394,11 @@ public function render()
394394
if ($isHeader || $isFirstRow) {
395395
$this->renderRowSeparator(
396396
$isHeader ? self::SEPARATOR_TOP : self::SEPARATOR_TOP_BOTTOM,
397-
$isTitleNeed ? $this->headerTitle : null,
398-
$isTitleNeed ? $this->style->getHeaderTitleFormat() : null
397+
$needsTitle ? $this->headerTitle : null,
398+
$needsTitle ? $this->style->getHeaderTitleFormat() : null
399399
);
400400
$isFirstRow = false;
401-
$isTitleNeed = false;
401+
$needsTitle = false;
402402
}
403403
if ($this->horizontal) {
404404
$this->renderRow($row, $this->style->getCellRowFormat(), $this->style->getCellHeaderFormat());

src/Symfony/Component/Console/Tests/Helper/TableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ public function renderSetTitle()
11181118
/**
11191119
* @dataProvider renderSetTitle2
11201120
*/
1121-
public function testSetTitle2($headerTitle, $headers, $expected)
1121+
public function testSetTitle2(string $headerTitle, array $headers, string $expected)
11221122
{
11231123
(new Table($output = $this->getOutputStream()))
11241124
->setHeaderTitle($headerTitle)

0 commit comments

Comments
 (0)