@@ -27,23 +27,23 @@ discard block |
||
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 | } |
35 | 35 | |
36 | 36 | $pas4CliNamespace = EnvHelper::getPsr4CliNamespace(); |
37 | 37 | $loaders = ClassLoader::getRegisteredLoaders(); |
38 | - if(!empty($loaders)) { |
|
38 | + if (!empty($loaders)) { |
|
39 | 39 | $loader = current($loaders); |
40 | - if($loader instanceof ClassLoader) { |
|
40 | + if ($loader instanceof ClassLoader) { |
|
41 | 41 | $map = $loader->getClassMap(); |
42 | - foreach($map as $class => $path) { |
|
43 | - if(strpos($class, $pas4CliNamespace) === 0) { |
|
42 | + foreach ($map as $class => $path) { |
|
43 | + if (strpos($class, $pas4CliNamespace) === 0) { |
|
44 | 44 | try { |
45 | 45 | $obj = new $class(); |
46 | - if($obj instanceof Command) { |
|
46 | + if ($obj instanceof Command) { |
|
47 | 47 | $this->add($obj); |
48 | 48 | } |
49 | 49 | } catch (\Exception $e) { } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | $exitCode = parent::doRun($input, $output); |
61 | 61 | |
62 | - if($this->isBitrixLoaded) { |
|
62 | + if ($this->isBitrixLoaded) { |
|
63 | 63 | if ($this->getCommandName($input) === null) { |
64 | 64 | $output->writeln(PHP_EOL . sprintf('Using Bitrix <info>kernel v%s</info>.</info>', SM_VERSION), |
65 | 65 | OutputInterface::VERBOSITY_VERY_VERBOSE); |