@@ -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 | } |