Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b5e2a28

Browse filesBrowse files
committed
fix name variable
1 parent c3d38d3 commit b5e2a28
Copy full SHA for b5e2a28

File tree

2 files changed

+5
-5
lines changed
Filter options

2 files changed

+5
-5
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Helper/Table.php
+4-4Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/Helper/TableTest.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.