Skip to content

Commit 4e52941

Browse files
committed
Fix CS errors.
1 parent 9e21d04 commit 4e52941

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

lib/Cake/Console/ConsoleOptionParser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ public function addSubcommand($name, $options = array()) {
416416
* @param string $name The subcommand name to remove.
417417
* @return $this
418418
*/
419-
public function removeSubcommand($name) {
420-
unset($this->_subcommands[$name]);
421-
return $this;
422-
}
419+
public function removeSubcommand($name) {
420+
unset($this->_subcommands[$name]);
421+
return $this;
422+
}
423423

424424
/**
425425
* Add multiple subcommands at once.

lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -481,15 +481,15 @@ public function testAddSubcommandObject() {
481481
*
482482
* @return void
483483
*/
484-
public function testRemoveSubcommand() {
485-
$parser = new ConsoleOptionParser('test', false);
486-
$parser->addSubcommand(new ConsoleInputSubcommand('test'));
487-
$result = $parser->subcommands();
488-
$this->assertEquals(1, count($result));
489-
$parser->removeSubcommand('test');
490-
$result = $parser->subcommands();
491-
$this->assertEquals(0, count($result), 'Remove a subcommand does not work');
492-
}
484+
public function testRemoveSubcommand() {
485+
$parser = new ConsoleOptionParser('test', false);
486+
$parser->addSubcommand(new ConsoleInputSubcommand('test'));
487+
$result = $parser->subcommands();
488+
$this->assertEquals(1, count($result));
489+
$parser->removeSubcommand('test');
490+
$result = $parser->subcommands();
491+
$this->assertEquals(0, count($result), 'Remove a subcommand does not work');
492+
}
493493

494494
/**
495495
* test adding multiple subcommands

0 commit comments

Comments
 (0)