@@ -57,7 +57,7 @@ |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | |
| 60 | - $this->logger->error("(" . json_last_error() . ") " . json_last_error_msg()); |
|
| 60 | + $this->logger->error("(".json_last_error().") ".json_last_error_msg()); |
|
| 61 | 61 | |
| 62 | 62 | return null; |
| 63 | 63 | } |
@@ -48,8 +48,8 @@ |
||
| 48 | 48 | |
| 49 | 49 | public function __construct(string $config) |
| 50 | 50 | { |
| 51 | - $this->configSource = $config; |
|
| 52 | - $this->logger = new \Psr\Log\NullLogger(); |
|
| 51 | + $this->configSource = $config; |
|
| 52 | + $this->logger = new \Psr\Log\NullLogger(); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | public function parse() |
@@ -33,7 +33,6 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Description of Config |
| 36 | - |
|
| 37 | 36 | * @author Enjoys |
| 38 | 37 | */ |
| 39 | 38 | class Config implements \Psr\Log\LoggerAwareInterface |
@@ -85,7 +84,7 @@ discard block |
||
| 85 | 84 | |
| 86 | 85 | private function parse(string $parseClass, string $config, $options, ?string $namespace = null) |
| 87 | 86 | { |
| 88 | - /** @var ParseInterface $parser */ |
|
| 87 | + /** @var ParseInterface $parser */ |
|
| 89 | 88 | $parser = new $parseClass($config); |
| 90 | 89 | $parser->setOptions($options); |
| 91 | 90 | $parser->setLogger($this->logger); |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - if(is_string($config)){ |
|
| 79 | + if (is_string($config)) { |
|
| 80 | 80 | $this->parse($parseClass, $config, $options); |
| 81 | 81 | } |
| 82 | 82 | |