Completed
Push — develop ( c8b05d...f95d1b )
by Christian
30s
created
N98/Magento/Command/Developer/Module/DetectComposerDependenciesCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.