Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
Removing unnecessary variable, fixing showResponse call
  • Loading branch information
Lansoweb committed Feb 21, 2015
1 parent c797ccc commit 0a3000f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Prompt/Checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public function __construct($promptText = 'Please select one option (Enter to fi
*/
public function show()
{
$console = $this->getConsole();
$this->checkedOptions = array();
$mask = $this->prepareMask();

Expand All @@ -75,7 +74,7 @@ public function show()
$response = $this->readOption($mask);

if ($this->echo) {
$this->showResponse();
$this->showResponse($response);
}

$this->checkOrUncheckOption($response);
Expand Down Expand Up @@ -181,5 +180,4 @@ private function setOptions($options)

$this->options = $options;
}

}

0 comments on commit 0a3000f

Please sign in to comment.