Skip to content

Commit a903332

Browse files
Igor Melnikovvrann
authored andcommitted
MAGETWO-51592: Make single tenant compiler work when Magento not installed
Codding style
1 parent e698e71 commit a903332

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

setup/src/Magento/Setup/Console/Command/AbstractModuleCommand.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,18 @@ protected function cleanup(InputInterface $input, OutputInterface $output)
8484
/** @var \Magento\Framework\App\State\CleanupFiles $cleanupFiles */
8585
$cleanupFiles = $this->objectManager->get('Magento\Framework\App\State\CleanupFiles');
8686
$cleanupFiles->clearCodeGeneratedClasses();
87-
$output->writeln("<info>Generated classes cleared successfully. Please run 'setup:di:compile' command to "
88-
. 'generate classes.</info>');
87+
$output->writeln(
88+
"<info>Generated classes cleared successfully. Please run 'setup:di:compile' command to "
89+
. 'generate classes.</info>'
90+
);
8991
if ($input->getOption(self::INPUT_KEY_CLEAR_STATIC_CONTENT)) {
9092
$cleanupFiles->clearMaterializedViewFiles();
9193
$output->writeln('<info>Generated static view files cleared successfully.</info>');
9294
} else {
9395
$output->writeln(
9496
"<info>Info: Some modules might require static view files to be cleared. To do this, run '"
95-
. $this->getName() . "' with --" . self::INPUT_KEY_CLEAR_STATIC_CONTENT
96-
. ' option to clear them.</info>'
97+
. $this->getName() . "' with --" . self::INPUT_KEY_CLEAR_STATIC_CONTENT
98+
. ' option to clear them.</info>'
9799
);
98100
}
99101
}

setup/src/Magento/Setup/Console/Command/AbstractModuleManageCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ protected function isModuleRequired()
5454

5555
/**
5656
* {@inheritdoc}
57+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
5758
*/
5859
protected function execute(InputInterface $input, OutputInterface $output)
5960
{

setup/src/Magento/Setup/Test/Unit/Console/Command/DiCompileCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testExecuteModulesNotEnabled()
104104
$tester->execute([]);
105105
$this->assertEquals(
106106
'You cannot run this command because modules are not enabled. You can enable modules by running \'module:'
107-
. 'enable --all\' command.' . PHP_EOL,
107+
. 'enable --all\' command.' . PHP_EOL,
108108
$tester->getDisplay()
109109
);
110110
}

0 commit comments

Comments
 (0)