| Total Complexity | 8 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class Response |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * status of the server response - fail is not nessisary a fail in this case. |
||
| 10 | * |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | public $status; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * status code of the server response. |
||
| 17 | * |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | public $statusCode; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * message from the response. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | * @author Craig Smith <[email protected]> |
||
| 27 | */ |
||
| 28 | public $message; |
||
| 29 | |||
| 30 | |||
| 31 | public function __construct($body, $format) |
||
| 49 | } |
||
| 50 | |||
| 51 | protected function parseResponseBody($body) |
||
| 72 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.