Passed
Push — master ( 84c376...16b57b )
by Ioannes
01:42
created
src/Application.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 
28 28
         $this->isBitrixLoaded = $loader->initializeBitrix();
29 29
 
30
-        if($this->isBitrixLoaded) {
31
-            foreach($loader->getModulesCommands() as $command) {
30
+        if ($this->isBitrixLoaded) {
31
+            foreach ($loader->getModulesCommands() as $command) {
32 32
                 $this->add($command);
33 33
             }
34 34
         }
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
         $pas4CliNamespace = EnvHelper::getPsr4CliNamespace();
37 37
         /** @scrutinizer ignore-call */
38 38
         $loaders = ClassLoader::getRegisteredLoaders();
39
-        if(!empty($loaders)) {
39
+        if (!empty($loaders)) {
40 40
             $loader = current($loaders);
41
-            if($loader instanceof ClassLoader) {
41
+            if ($loader instanceof ClassLoader) {
42 42
                 $map = $loader->getClassMap();
43
-                foreach($map as $class => $path) {
44
-                    if(strpos($class, $pas4CliNamespace) === 0) {
43
+                foreach ($map as $class => $path) {
44
+                    if (strpos($class, $pas4CliNamespace) === 0) {
45 45
                         try {
46 46
                             $obj = new $class();
47
-                            if($obj instanceof Command) {
47
+                            if ($obj instanceof Command) {
48 48
                                 $this->add($obj);
49 49
                             }
50 50
                         } catch (\Exception $e) { }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         $exitCode = parent::doRun($input, $output);
62 62
 
63
-        if($this->isBitrixLoaded) {
63
+        if ($this->isBitrixLoaded) {
64 64
             if ($this->getCommandName($input) === null) {
65 65
                 $output->writeln(PHP_EOL . sprintf('Using Bitrix <info>kernel v%s</info>.</info>', SM_VERSION),
66 66
                     OutputInterface::VERBOSITY_VERY_VERBOSE);
Please login to merge, or discard this patch.