@@ -70,16 +70,16 @@ 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; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | foreach ($config as $option => $value) { |
| 80 | - switch($option) { |
|
| 80 | + switch ($option) { |
|
| 81 | 81 | case 'adapter': |
| 82 | - foreach($value as $name => $adapter) { |
|
| 82 | + foreach ($value as $name => $adapter) { |
|
| 83 | 83 | $this->injectAdapter($name, $adapter); |
| 84 | 84 | } |
| 85 | 85 | break; |
@@ -113,13 +113,13 @@ discard block |
||
| 113 | 113 | /** |
| 114 | 114 | * {@inheritDoc} |
| 115 | 115 | */ |
| 116 | - public function injectAdapter($adapter, ?string $name=null) : AdapterAwareInterface |
|
| 116 | + public function injectAdapter($adapter, ?string $name = null) : AdapterAwareInterface |
|
| 117 | 117 | { |
| 118 | - if(!($adapter instanceof AdapterInterface)) { |
|
| 118 | + if (!($adapter instanceof AdapterInterface)) { |
|
| 119 | 119 | throw new Exception('adapter needs to implement AdapterInterface'); |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | - if($name === null) { |
|
| 122 | + if ($name === null) { |
|
| 123 | 123 | $name = get_class($adapter); |
| 124 | 124 | } |
| 125 | 125 | |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * |
| 46 | 46 | * @return AdapterInterface |
| 47 | 47 | */ |
| 48 | - public function setOptions(? Iterable $config = null): AdapterInterface |
|
| 48 | + public function setOptions(? Iterable $config = null) : AdapterInterface |
|
| 49 | 49 | { |
| 50 | 50 | if ($config === null) { |
| 51 | 51 | return $this; |