diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-08-21 09:51:05 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-08-21 09:51:05 +0200 |
commit | 20839a422bd5fc33d6df1e778daae4999b181460 (patch) | |
tree | b2a8c977aaf20cb9515673228dbbeab93ce39ac1 /lib/private/Console | |
parent | 2bab916c535173ac723f50fecb33518db3f293d5 (diff) | |
download | nextcloud-server-20839a422bd5fc33d6df1e778daae4999b181460.tar.gz nextcloud-server-20839a422bd5fc33d6df1e778daae4999b181460.zip |
Refactor some code
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Console')
-rw-r--r-- | lib/private/Console/Application.php | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php index 422e78ee06f..0e30fa02b94 100644 --- a/lib/private/Console/Application.php +++ b/lib/private/Console/Application.php @@ -108,7 +108,10 @@ class Application { } if ($this->memoryInfo->isMemoryLimitSufficient() === false) { - $this->writeMemoryLimitInfo($output); + $output->getErrorOutput()->writeln( + '<comment>The current PHP memory limit ' . + 'is below the recommended value of 512MB.</comment>' + ); } try { @@ -188,20 +191,6 @@ class Application { } /** - * Write a memory info output if the limit is below the recommended value. - * - * @param ConsoleOutputInterface $output - * @return void - */ - private function writeMemoryLimitInfo(ConsoleOutputInterface $output) { - $errOutput = $output->getErrorOutput(); - $errOutput->writeln( - '<comment>The current PHP memory limit ' . - 'is below the recommended value of 512MB.</comment>' - ); - } - - /** * Sets whether to automatically exit after a command execution or not. * * @param bool $boolean Whether to automatically exit after a command execution or not |