From 4e52941f59b9f2b3786f16262260df96794fc1e2 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 27 Jul 2014 12:54:15 +0530 Subject: [PATCH] Fix CS errors. --- lib/Cake/Console/ConsoleOptionParser.php | 8 ++++---- .../Case/Console/ConsoleOptionParserTest.php | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/Cake/Console/ConsoleOptionParser.php b/lib/Cake/Console/ConsoleOptionParser.php index f55551122..859c5ff79 100644 --- a/lib/Cake/Console/ConsoleOptionParser.php +++ b/lib/Cake/Console/ConsoleOptionParser.php @@ -416,10 +416,10 @@ class ConsoleOptionParser { * @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. diff --git a/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php b/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php index f349922c3..0b68f999a 100644 --- a/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php +++ b/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php @@ -481,15 +481,15 @@ class ConsoleOptionParserTest extends CakeTestCase { * * @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