@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * @param Iterable $config |
| 71 | 71 | * @return Log |
| 72 | 72 | */ |
| 73 | - public function setOptions(? Iterable $config = null): Log |
|
| 73 | + public function setOptions(? Iterable $config = null) : Log |
|
| 74 | 74 | { |
| 75 | 75 | if ($config === null) { |
| 76 | 76 | return $this; |
@@ -78,11 +78,11 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | foreach ($config as $option => $value) { |
| 80 | 80 | if (!isset($value['enabled']) || $value['enabled'] === '1') { |
| 81 | - if(!isset($value['class'])) { |
|
| 81 | + if (!isset($value['class'])) { |
|
| 82 | 82 | throw new Exception('class option is requred'); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - if(isset($value['config'])) { |
|
| 85 | + if (isset($value['config'])) { |
|
| 86 | 86 | $config = $value['config']; |
| 87 | 87 | } else { |
| 88 | 88 | $config = null; |