@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | protected function parseString(string $input) |
| 24 | 24 | { |
| 25 | 25 | try { |
| 26 | - return Symfony\Yaml::parse($input, (int)$this->getOption('flags', 0)); |
|
| 26 | + return Symfony\Yaml::parse($input, (int) $this->getOption('flags', 0)); |
|
| 27 | 27 | } catch (Symfony\Exception\ParseException $e) { |
| 28 | 28 | $this->logger->error($e->getMessage()); |
| 29 | 29 | return null; |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | protected function parseFile(string $filename) |
| 40 | 40 | { |
| 41 | 41 | try { |
| 42 | - return Symfony\Yaml::parseFile($filename, (int)$this->getOption('flags', 0)); |
|
| 42 | + return Symfony\Yaml::parseFile($filename, (int) $this->getOption('flags', 0)); |
|
| 43 | 43 | } catch (Symfony\Exception\ParseException $e) { |
| 44 | 44 | $this->logger->error($e->getMessage()); |
| 45 | 45 | return null; |
@@ -23,8 +23,8 @@ |
||
| 23 | 23 | $result = \json_decode( |
| 24 | 24 | $input, |
| 25 | 25 | true, |
| 26 | - (int)$this->getOption('depth', 512), |
|
| 27 | - (int)$this->getOption('options', 0) |
|
| 26 | + (int) $this->getOption('depth', 512), |
|
| 27 | + (int) $this->getOption('options', 0) |
|
| 28 | 28 | ); |
| 29 | 29 | |
| 30 | 30 | //Clear the most recent error |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public function addConfig($params, array $options = [], string $parseClass = self::INI, bool $replace = true): void |
| 40 | 40 | { |
| 41 | - $params = (array)$params; |
|
| 41 | + $params = (array) $params; |
|
| 42 | 42 | |
| 43 | 43 | if (!class_exists($parseClass)) { |
| 44 | 44 | throw new \Exception(sprintf('Not found parse class: %s', $parseClass)); |
@@ -90,13 +90,13 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | if ($replace === true) { |
| 92 | 92 | $this->config[$namespace] = \array_merge_recursive_distinct( |
| 93 | - (array)$this->config[$namespace], |
|
| 93 | + (array) $this->config[$namespace], |
|
| 94 | 94 | $result |
| 95 | 95 | ); |
| 96 | 96 | } else { |
| 97 | 97 | $this->config[$namespace] = \array_merge_recursive_distinct( |
| 98 | 98 | $result, |
| 99 | - (array)$this->config[$namespace] |
|
| 99 | + (array) $this->config[$namespace] |
|
| 100 | 100 | ); |
| 101 | 101 | } |
| 102 | 102 | } |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | private function getValue(array $parts, $array) |
| 145 | 145 | { |
| 146 | - if (!is_array($array)){ |
|
| 146 | + if (!is_array($array)) { |
|
| 147 | 147 | throw new Exception(); |
| 148 | 148 | } |
| 149 | 149 | |