@@ -107,7 +107,7 @@ |
||
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | 109 | * Validates that the subject is an unempty string |
| 110 | - * @param mixed $subject The value to check |
|
| 110 | + * @param string $subject The value to check |
|
| 111 | 111 | * @return void |
| 112 | 112 | */ |
| 113 | 113 | private function checkSubject($subject) { |
@@ -86,8 +86,9 @@ |
||
| 86 | 86 | case 'data': |
| 87 | 87 | return $this->getData(); |
| 88 | 88 | case 'status_code': |
| 89 | - if($e===null) |
|
| 90 | - return 0; |
|
| 89 | + if($e===null) { |
|
| 90 | + return 0; |
|
| 91 | + } |
|
| 91 | 92 | return $this->getStatusCode($e); |
| 92 | 93 | default: |
| 93 | 94 | throw new Exception("{$key} is not supported! Therefore it cannot be collected!"); |