@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | case 'data': |
88 | 88 | return $this->getData(); |
89 | 89 | case 'status_code': |
90 | - if($e===null) { |
|
90 | + if ($e === null) { |
|
91 | 91 | return 0; |
92 | 92 | } |
93 | 93 | return $this->getStatusCode($e); |
@@ -167,12 +167,12 @@ discard block |
||
167 | 167 | * @param array $data The array to remove keys from |
168 | 168 | * @return void |
169 | 169 | */ |
170 | - protected function excludeKeys(array $data){ |
|
170 | + protected function excludeKeys(array $data) { |
|
171 | 171 | $keys = isset($this->config['excludeKeys']) ? $this->config['excludeKeys'] : []; |
172 | 172 | foreach ($data as $key => &$value) { |
173 | - if(in_array($key,$keys)){ |
|
173 | + if (in_array($key, $keys)) { |
|
174 | 174 | unset($data[$key]); |
175 | - } else if(is_array($value)){ |
|
175 | + } else if (is_array($value)) { |
|
176 | 176 | $value = $this->excludeKeys($value); |
177 | 177 | } |
178 | 178 | } |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Monolog\Handler\HandlerInterface; |
7 | 7 | use Monolog\Logger; |
8 | 8 | use Tylercd100\LERN\Exceptions\NotifierFailedException; |
9 | -use Tylercd100\LERN\Factories\MonologHandlerFactory; |
|
10 | 9 | use Tylercd100\Notify\Drivers\FromConfig as Notify; |
11 | 10 | |
12 | 11 | class Notifier extends Component { |