File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/Symfony/Component/Console Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ public function render()
374
374
375
375
$ isHeader = !$ this ->horizontal ;
376
376
$ isFirstRow = $ this ->horizontal ;
377
- $ isTitleNeed = (bool ) $ this ->headerTitle ;
377
+ $ needsTitle = (bool ) $ this ->headerTitle ;
378
378
foreach ($ rows as $ row ) {
379
379
if ($ divider === $ row ) {
380
380
$ isHeader = false ;
@@ -394,11 +394,11 @@ public function render()
394
394
if ($ isHeader || $ isFirstRow ) {
395
395
$ this ->renderRowSeparator (
396
396
$ 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
399
399
);
400
400
$ isFirstRow = false ;
401
- $ isTitleNeed = false ;
401
+ $ needsTitle = false ;
402
402
}
403
403
if ($ this ->horizontal ) {
404
404
$ this ->renderRow ($ row , $ this ->style ->getCellRowFormat (), $ this ->style ->getCellHeaderFormat ());
Original file line number Diff line number Diff line change @@ -1118,7 +1118,7 @@ public function renderSetTitle()
1118
1118
/**
1119
1119
* @dataProvider renderSetTitle2
1120
1120
*/
1121
- public function testSetTitle2 ($ headerTitle , $ headers , $ expected )
1121
+ public function testSetTitle2 (string $ headerTitle , array $ headers , string $ expected )
1122
1122
{
1123
1123
(new Table ($ output = $ this ->getOutputStream ()))
1124
1124
->setHeaderTitle ($ headerTitle )
You can’t perform that action at this time.
0 commit comments