@@ -11,6 +11,6 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(ContainerInterface $container): ShowContainer |
| 13 | 13 | { |
| 14 | - return new ShowContainer((array)$container->get('config')); |
|
| 14 | + return new ShowContainer((array) $container->get('config')); |
|
| 15 | 15 | } |
| 16 | 16 | } |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(ContainerInterface $container): SetDevelopmentMode |
| 13 | 13 | { |
| 14 | - return new SetDevelopmentMode((array)$container->get('config')); |
|
| 14 | + return new SetDevelopmentMode((array) $container->get('config')); |
|
| 15 | 15 | } |
| 16 | 16 | } |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(ContainerInterface $container): ClearConfigCache |
| 13 | 13 | { |
| 14 | - return new ClearConfigCache((array)$container->get('config')); |
|
| 14 | + return new ClearConfigCache((array) $container->get('config')); |
|
| 15 | 15 | } |
| 16 | 16 | } |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | |
| 102 | 102 | throw new \InvalidArgumentException(sprintf( |
| 103 | 103 | 'Invalid option %s given, dissable option value should be one of: %s, %s', |
| 104 | - (string)$getOption, |
|
| 104 | + (string) $getOption, |
|
| 105 | 105 | implode(',', self::TRUE_OPTIONS), |
| 106 | 106 | implode(',', self::FALSE_OPTIONS) |
| 107 | 107 | )); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | throw new RuntimeException(sprintf('Directory "%s" was not created', $classDir)); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - $realFilePath = $classDir . DIRECTORY_SEPARATOR . $className . '.php'; |
|
| 23 | + $realFilePath = $classDir.DIRECTORY_SEPARATOR.$className.'.php'; |
|
| 24 | 24 | if (file_exists($realFilePath)) { |
| 25 | 25 | throw new RuntimeException(sprintf('File %s already exist.', $realFilePath)); |
| 26 | 26 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | $getNamespaceFromFQCN, |
| 45 | 45 | new GetRealPathFromNamespace($getClassNameFromFQCN, $getNamespaceFromFQCN), |
| 46 | 46 | new CreateClassFile, |
| 47 | - (array)$container->get('config') |
|
| 47 | + (array) $container->get('config') |
|
| 48 | 48 | ); |
| 49 | 49 | } |
| 50 | 50 | |
@@ -28,12 +28,12 @@ |
||
| 28 | 28 | protected function execute(InputInterface $input, OutputInterface $output): ?int |
| 29 | 29 | { |
| 30 | 30 | foreach (['config_cache_path', 'cli_config_cache_path'] as $key) { |
| 31 | - if (! isset($this->config[$key])) { |
|
| 31 | + if (!isset($this->config[$key])) { |
|
| 32 | 32 | $output->writeln("<comment>No configuration cache path found</comment>"); |
| 33 | 33 | continue; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - if (! file_exists($this->config[$key])) { |
|
| 36 | + if (!file_exists($this->config[$key])) { |
|
| 37 | 37 | $output->writeln(sprintf( |
| 38 | 38 | "<error>Configured config cache file '%s' not found</error>", |
| 39 | 39 | $this->config[$key] |
@@ -46,10 +46,10 @@ |
||
| 46 | 46 | $classLoader = $autoloader[0]; |
| 47 | 47 | $depth = 0; |
| 48 | 48 | while (null === $classDir) { |
| 49 | - if (array_key_exists($namespace . "\\", $classLoader->getPrefixesPsr4())) { |
|
| 50 | - $classDir = $classLoader->getPrefixesPsr4()[$namespace . "\\"][0]; |
|
| 49 | + if (array_key_exists($namespace."\\", $classLoader->getPrefixesPsr4())) { |
|
| 50 | + $classDir = $classLoader->getPrefixesPsr4()[$namespace."\\"][0]; |
|
| 51 | 51 | } else { |
| 52 | - $parts = DIRECTORY_SEPARATOR . $this->getClassNameFromFQCN->__invoke($namespace) . $parts; |
|
| 52 | + $parts = DIRECTORY_SEPARATOR.$this->getClassNameFromFQCN->__invoke($namespace).$parts; |
|
| 53 | 53 | $namespace = $this->getNamespaceFromFQCN->__invoke($namespace); |
| 54 | 54 | } |
| 55 | 55 | if (10 <= $depth) { |