@@ -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 | } |
@@ -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'); |
@@ -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(); |
|
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | ->addOption('consumer-secret', '', InputOption::VALUE_REQUIRED, 'Consumer Secret (length 32 chars)') |
| 72 | 72 | ->addOption('access-token', '', InputOption::VALUE_REQUIRED, 'Access-Token (length 32 chars)') |
| 73 | 73 | ->addOption('access-token-secret', '', InputOption::VALUE_REQUIRED, 'Access-Token Secret (length 32 chars)') |
| 74 | - ->addOption('resource', 'r', InputOption::VALUE_IS_ARRAY|InputOption::VALUE_REQUIRED, 'Defines a granted ACL resource', []) |
|
| 74 | + ->addOption('resource', 'r', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Defines a granted ACL resource', []) |
|
| 75 | 75 | ->addOption( |
| 76 | 76 | 'format', |
| 77 | 77 | null, |
@@ -226,7 +226,7 @@ |
||
| 226 | 226 | if (count($filterAttributes) === 0) { |
| 227 | 227 | $output->writeln( |
| 228 | 228 | '<warning>No filter was specified. To delete all customer, ' . |
| 229 | - 'add the --all option</warning>' |
|
| 229 | + 'add the --all option</warning>' |
|
| 230 | 230 | ); |
| 231 | 231 | |
| 232 | 232 | return Command::FAILURE; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | if (!isset($data[$settingArgument])) { |
| 113 | 113 | throw new \InvalidArgumentException('Unknown key: ' . $settingArgument); |
| 114 | 114 | } |
| 115 | - $output->writeln((string)$data[$settingArgument]); |
|
| 115 | + $output->writeln((string) $data[$settingArgument]); |
|
| 116 | 116 | |
| 117 | 117 | return Command::SUCCESS; |
| 118 | 118 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | if (!isset($data[$settingArgument])) { |
| 130 | 130 | throw new \InvalidArgumentException('Unknown key: ' . $settingArgument); |
| 131 | 131 | } |
| 132 | - $output->writeln((string)$this->infos[$settingArgument]); |
|
| 132 | + $output->writeln((string) $this->infos[$settingArgument]); |
|
| 133 | 133 | } else { |
| 134 | 134 | $this->getHelper('table') |
| 135 | 135 | ->setHeaders(['name', 'value']) |