Skip to content

Commit 1a3e425

Browse files
authored
Merge pull request #120 from Lynesth/patch-20
Change variables name
2 parents 3440b6e + 7e6b1c0 commit 1a3e425

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/CliMenu.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,10 @@ protected function drawMenuItem(MenuItemInterface $item, bool $selected = false)
380380
{
381381
$rows = $item->getRows($this->style, $selected);
382382

383-
$invertedColour = $selected
383+
$invertedColoursSetCode = $selected
384384
? $this->style->getInvertedColoursSetCode()
385385
: '';
386-
$notInvertedColour = $selected
386+
$invertedColoursUnsetCode = $selected
387387
? $this->style->getInvertedColoursUnsetCode()
388388
: '';
389389

@@ -393,18 +393,18 @@ protected function drawMenuItem(MenuItemInterface $item, bool $selected = false)
393393
$borderColour = '';
394394
}
395395

396-
return array_map(function ($row) use ($invertedColour, $notInvertedColour, $borderColour) {
396+
return array_map(function ($row) use ($invertedColoursSetCode, $invertedColoursUnsetCode, $borderColour) {
397397
return sprintf(
398398
"%s%s%s%s%s%s%s%s%s%s%s%s\n",
399399
str_repeat(' ', $this->style->getMargin()),
400400
$borderColour,
401401
str_repeat(' ', $this->style->getBorderLeftWidth()),
402402
$this->style->getColoursSetCode(),
403-
$invertedColour,
403+
$invertedColoursSetCode,
404404
str_repeat(' ', $this->style->getPadding()),
405405
$row,
406406
str_repeat(' ', $this->style->getRightHandPadding(mb_strlen(s::stripAnsiEscapeSequence($row)))),
407-
$notInvertedColour,
407+
$invertedColoursUnsetCode,
408408
$borderColour,
409409
str_repeat(' ', $this->style->getBorderRightWidth()),
410410
$this->style->getColoursResetCode()

0 commit comments

Comments
 (0)