Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitb5e2a28

Browse files
committed
fix name variable
1 parentc3d38d3 commitb5e2a28

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 ($rowsas$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-
publicfunctiontestSetTitle2($headerTitle,$headers,$expected)
1121+
publicfunctiontestSetTitle2(string$headerTitle,array$headers,string$expected)
11221122
{
11231123
(newTable($output =$this->getOutputStream()))
11241124
->setHeaderTitle($headerTitle)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp