mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix CS errors.
This commit is contained in:
parent
9e21d048ce
commit
4e52941f59
2 changed files with 13 additions and 13 deletions
|
@ -416,10 +416,10 @@ class ConsoleOptionParser {
|
||||||
* @param string $name The subcommand name to remove.
|
* @param string $name The subcommand name to remove.
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function removeSubcommand($name) {
|
public function removeSubcommand($name) {
|
||||||
unset($this->_subcommands[$name]);
|
unset($this->_subcommands[$name]);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add multiple subcommands at once.
|
* Add multiple subcommands at once.
|
||||||
|
|
|
@ -481,15 +481,15 @@ class ConsoleOptionParserTest extends CakeTestCase {
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testRemoveSubcommand() {
|
public function testRemoveSubcommand() {
|
||||||
$parser = new ConsoleOptionParser('test', false);
|
$parser = new ConsoleOptionParser('test', false);
|
||||||
$parser->addSubcommand(new ConsoleInputSubcommand('test'));
|
$parser->addSubcommand(new ConsoleInputSubcommand('test'));
|
||||||
$result = $parser->subcommands();
|
$result = $parser->subcommands();
|
||||||
$this->assertEquals(1, count($result));
|
$this->assertEquals(1, count($result));
|
||||||
$parser->removeSubcommand('test');
|
$parser->removeSubcommand('test');
|
||||||
$result = $parser->subcommands();
|
$result = $parser->subcommands();
|
||||||
$this->assertEquals(0, count($result), 'Remove a subcommand does not work');
|
$this->assertEquals(0, count($result), 'Remove a subcommand does not work');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test adding multiple subcommands
|
* test adding multiple subcommands
|
||||||
|
|
Loading…
Reference in a new issue