Skip to content

Commit

Permalink
Fix CS errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jul 27, 2014
1 parent 9e21d04 commit 4e52941
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions lib/Cake/Console/ConsoleOptionParser.php
Expand Up @@ -416,10 +416,10 @@ public function addSubcommand($name, $options = array()) {
* @param string $name The subcommand name to remove.
* @return $this
*/
public function removeSubcommand($name) {
unset($this->_subcommands[$name]);
return $this;
}
public function removeSubcommand($name) {
unset($this->_subcommands[$name]);
return $this;
}

/**
* Add multiple subcommands at once.
Expand Down
18 changes: 9 additions & 9 deletions lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php
Expand Up @@ -481,15 +481,15 @@ public function testAddSubcommandObject() {
*
* @return void
*/
public function testRemoveSubcommand() {
$parser = new ConsoleOptionParser('test', false);
$parser->addSubcommand(new ConsoleInputSubcommand('test'));
$result = $parser->subcommands();
$this->assertEquals(1, count($result));
$parser->removeSubcommand('test');
$result = $parser->subcommands();
$this->assertEquals(0, count($result), 'Remove a subcommand does not work');
}
public function testRemoveSubcommand() {
$parser = new ConsoleOptionParser('test', false);
$parser->addSubcommand(new ConsoleInputSubcommand('test'));
$result = $parser->subcommands();
$this->assertEquals(1, count($result));
$parser->removeSubcommand('test');
$result = $parser->subcommands();
$this->assertEquals(0, count($result), 'Remove a subcommand does not work');
}

/**
* test adding multiple subcommands
Expand Down

0 comments on commit 4e52941

Please sign in to comment.