Skip to content

Commit 338f342

Browse files
committed
reDraw -> redraw + fix indent
1 parent dca981c commit 338f342

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/CliMenu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ protected function executeCurrentItem()
237237
/**
238238
* Redraw the menu
239239
*/
240-
public function reDraw()
240+
public function redraw()
241241
{
242242
if (!$this->isOpen()) {
243243
throw new MenuNotOpenException;

test/CliMenuTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testSimpleOpenClose()
5252
$style = $this->getStyle($terminal);
5353

5454
$item = new SelectableItem('Item 1', function (CliMenu $menu) {
55-
$menu->close();
55+
$menu->close();
5656
});
5757

5858
$this->expectOutputString(file_get_contents($this->getTestFile()));
@@ -81,7 +81,7 @@ public function testReDrawReDrawsImmediately()
8181

8282
$item = new SelectableItem('Item 1', function (CliMenu $menu) {
8383
$menu->getStyle()->setBg('red');
84-
$menu->reDraw();
84+
$menu->redraw();
8585
$menu->close();
8686
});
8787

0 commit comments

Comments
 (0)