@@ -62,8 +62,8 @@ |
||
62 | 62 | // We mock the DialogHelper |
63 | 63 | $dialog = $this->createMock('N98\Util\Console\Helper\ParameterHelper', ['askPassword']); |
64 | 64 | $dialog->expects($this->at(0)) |
65 | - ->method('askPassword') |
|
66 | - ->willReturn(true); // The user confirms |
|
65 | + ->method('askPassword') |
|
66 | + ->willReturn(true); // The user confirms |
|
67 | 67 | |
68 | 68 | // We override the standard helper with our mock |
69 | 69 | $command->getHelperSet()->set($dialog, 'parameter'); |
@@ -297,7 +297,7 @@ |
||
297 | 297 | $dbHost = $this->config->getString('db_host'); |
298 | 298 | |
299 | 299 | if ($this->config->getInt('db_port') !== 3306) { |
300 | - $dbHost .= ':' . (string)$this->config->getInt('db_port'); |
|
300 | + $dbHost .= ':' . (string) $this->config->getInt('db_port'); |
|
301 | 301 | |
302 | 302 | return $dbHost; |
303 | 303 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | ->addOption('consumer-secret', '', InputOption::VALUE_REQUIRED, 'Consumer Secret (length 32 chars)') |
70 | 70 | ->addOption('access-token', '', InputOption::VALUE_REQUIRED, 'Access-Token (length 32 chars)') |
71 | 71 | ->addOption('access-token-secret', '', InputOption::VALUE_REQUIRED, 'Access-Token Secret (length 32 chars)') |
72 | - ->addOption('resource', 'r', InputOption::VALUE_IS_ARRAY|InputOption::VALUE_REQUIRED, 'Defines a granted ACL resource', []) |
|
72 | + ->addOption('resource', 'r', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Defines a granted ACL resource', []) |
|
73 | 73 | ->setDescription('Create a new integration'); |
74 | 74 | |
75 | 75 | $help = <<<HELP |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @param string $indent |
14 | 14 | * @return string|null |
15 | 15 | */ |
16 | - public static function exportVariable($var, $indent='') |
|
16 | + public static function exportVariable($var, $indent = '') |
|
17 | 17 | { |
18 | 18 | switch (gettype($var)) { |
19 | 19 | case 'string': |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $this->detectDbSettings($output); |
32 | 32 | |
33 | 33 | $dbHelper = $this->getDatabaseHelper(); |
34 | - $connection = $dbHelper->getConnection($output, true); |
|
34 | + $connection = $dbHelper->getConnection($output, true); |
|
35 | 35 | |
36 | 36 | $roleTableName = $dbHelper->getTableName('authorization_role'); |
37 | 37 | $ruleTableName = $dbHelper->getTableName('authorization_rule'); |
@@ -178,7 +178,7 @@ |
||
178 | 178 | if (!isset($this->infos[$settingArgument])) { |
179 | 179 | throw new \InvalidArgumentException('Unknown key: ' . $settingArgument); |
180 | 180 | } |
181 | - $output->writeln((string)$this->infos[$settingArgument]); |
|
181 | + $output->writeln((string) $this->infos[$settingArgument]); |
|
182 | 182 | } else { |
183 | 183 | $this->getHelper('table') |
184 | 184 | ->setHeaders(['name', 'value']) |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | protected function configure(): void |
36 | 36 | { |
37 | 37 | $this->setName('dev:module:detect-composer-dependencies') |
38 | - ->addArgument('path', InputArgument::IS_ARRAY|InputArgument::REQUIRED, 'Path to modules') |
|
38 | + ->addArgument('path', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'Path to modules') |
|
39 | 39 | ->addOption('only-missing', null, InputOption::VALUE_NONE, 'Print only missing dependencies.') |
40 | 40 | ->setDescription( |
41 | 41 | 'This command will search for any soft and hard dependencies ' |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | |
268 | 268 | foreach ($namespaces as $namespace) { |
269 | 269 | if (array_key_exists($namespace, $projectPsr4Namespaces) && $namespace !== 'Magento\\Framework\\') { |
270 | - $dependencyPackagePath = (string)$projectPsr4Namespaces[$namespace][0]; |
|
270 | + $dependencyPackagePath = (string) $projectPsr4Namespaces[$namespace][0]; |
|
271 | 271 | $composerFilePath = preg_replace('/\/src$/', '', $dependencyPackagePath); |
272 | 272 | $composerFilePath = preg_replace('/\/Psr\/Log$/', '', $composerFilePath); |
273 | 273 | $dependencies = \array_merge($dependencies, $this->getComposerJsonVersionConstraint($composerFilePath)); |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | $moduleXmlLoaded = simplexml_load_string($moduleXmlFile->getContents()); |
307 | 307 | if (isset($moduleXmlLoaded->module->sequence)) { |
308 | 308 | foreach ($moduleXmlLoaded->module->sequence->module as $module) { |
309 | - $moduleName = (string)$module->attributes()->name; |
|
309 | + $moduleName = (string) $module->attributes()->name; |
|
310 | 310 | if (array_key_exists($moduleName, $registeredModulesPaths)) { |
311 | 311 | $composerFilePath = preg_replace('/\/src$/', '', $registeredModulesPaths[$moduleName]); |
312 | 312 | $result = \array_merge($result, $this->getComposerJsonVersionConstraint($composerFilePath)); |
@@ -7,4 +7,4 @@ |
||
7 | 7 | $application->setPharMode(true); |
8 | 8 | $application->run(); |
9 | 9 | |
10 | -__HALT_COMPILER(); |
|
10 | +__HALT_COMPILER(); |