Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CommandApplication.php')
-rw-r--r--lib/CommandApplication.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/CommandApplication.php b/lib/CommandApplication.php
index 94e2175..e79e6fd 100644
--- a/lib/CommandApplication.php
+++ b/lib/CommandApplication.php
@@ -39,8 +39,7 @@ class CommandApplication extends Application {
*
* @return string The command name
*/
- protected function getCommandName(InputInterface $input)
- {
+ protected function getCommandName(InputInterface $input) {
// This should return the name of your command.
return 'update';
}
@@ -50,8 +49,7 @@ class CommandApplication extends Application {
*
* @return array An array of default Command instances
*/
- protected function getDefaultCommands()
- {
+ protected function getDefaultCommands() {
// Keep the core default commands to have the HelpCommand
// which is used when using the --help option
$defaultCommands = parent::getDefaultCommands();
@@ -65,12 +63,11 @@ class CommandApplication extends Application {
* Overridden so that the application doesn't expect the command
* name to be the first argument.
*/
- public function getDefinition()
- {
+ public function getDefinition() {
$inputDefinition = parent::getDefinition();
// clear out the normal first argument, which is the command name
$inputDefinition->setArguments();
return $inputDefinition;
}
-} \ No newline at end of file
+}