@@ -41,12 +41,12 @@ |
||
41 | 41 | $configPath = $input->getArgument('config-path'); |
42 | 42 | } |
43 | 43 | |
44 | - if (! file_exists($configPath)) { |
|
44 | + if (!file_exists($configPath)) { |
|
45 | 45 | throw new InvalidConfigException(sprintf('Config file "%s" does not exists.', $configPath)); |
46 | 46 | } |
47 | 47 | |
48 | 48 | $extension = pathinfo($configPath, PATHINFO_EXTENSION); |
49 | - if (! Validator::key($extension)->validate(static::CONSOLE_CONFIG_FACTORIES)) { |
|
49 | + if (!Validator::key($extension)->validate(static::CONSOLE_CONFIG_FACTORIES)) { |
|
50 | 50 | throw new InvalidConfigException( |
51 | 51 | sprintf('Config file "%s" must have .yml, .json or .php extension.', $configPath) |
52 | 52 | ); |
@@ -42,8 +42,7 @@ discard block |
||
42 | 42 | public function getNamespaceString(): ?string |
43 | 43 | { |
44 | 44 | return Validator::notEmpty()->validate($this->namespace) ? |
45 | - implode('\\', $this->namespace) : |
|
46 | - null; |
|
45 | + implode('\\', $this->namespace) : null; |
|
47 | 46 | } |
48 | 47 | |
49 | 48 | /** |
@@ -52,7 +51,6 @@ discard block |
||
52 | 51 | public function getNamespaceLast(): ?string |
53 | 52 | { |
54 | 53 | return Validator::notEmpty()->validate($this->namespace) ? |
55 | - $this->namespace[(count($this->namespace) - 1)] : |
|
56 | - null; |
|
54 | + $this->namespace[(count($this->namespace) - 1)] : null; |
|
57 | 55 | } |
58 | 56 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * {@inheritdoc} |
46 | 46 | */ |
47 | - public function catch(Exception $exception, string $path): void |
|
47 | + public function catch (Exception $exception, string $path): void |
|
48 | 48 | { |
49 | 49 | if ($this->config->hasIgnore()) { |
50 | 50 | $this->output->note(sprintf('On file "%s": %s', $path, $exception->getMessage())); |
@@ -23,5 +23,5 @@ |
||
23 | 23 | * |
24 | 24 | * @throws Exception If the configuration does not allow ignoring errors. |
25 | 25 | */ |
26 | - public function catch(Exception $exception, string $path): void; |
|
26 | + public function catch (Exception $exception, string $path): void; |
|
27 | 27 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function parse(Node $node, NodeInterface $parent): NodeInterface |
35 | 35 | { |
36 | - if (! method_exists($this, 'invoke')) { |
|
36 | + if (!method_exists($this, 'invoke')) { |
|
37 | 37 | throw new NodeParserException(sprintf( |
38 | 38 | 'Class "%s" must implements method invoke described in AbstractNodeParser', |
39 | 39 | get_class($this) |