From 20839a422bd5fc33d6df1e778daae4999b181460 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 21 Aug 2018 09:51:05 +0200 Subject: [PATCH] Refactor some code Signed-off-by: Morris Jobke --- lib/private/Console/Application.php | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php index 422e78ee06..0e30fa02b9 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( + 'The current PHP memory limit ' . + 'is below the recommended value of 512MB.' + ); } try { @@ -187,20 +190,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( - 'The current PHP memory limit ' . - 'is below the recommended value of 512MB.' - ); - } - /** * Sets whether to automatically exit after a command execution or not. *