@@ -223,7 +223,7 @@ |
||
| 223 | 223 | } |
| 224 | 224 | $client = new Client(); |
| 225 | 225 | $response = $client->get($changeLogUrl); |
| 226 | - $changeLogContent = (string)$response->getBody(); |
|
| 226 | + $changeLogContent = (string) $response->getBody(); |
|
| 227 | 227 | if ($changeLogContent) { |
| 228 | 228 | $versionFilePrinter = new VersionFilePrinter($changeLogContent); |
| 229 | 229 | $previousVersion = $this->getApplication()->getVersion(); |
@@ -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)); |