Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function parse(array $data) |
||
37 | { |
||
38 | $this->id = (String)$data['id']; |
||
|
|||
39 | $this->version = (array)$data['version']; |
||
40 | $this->update = (string)$data['update']; |
||
41 | $this->newInVersion = (array)$data['new_in_version']; |
||
42 | $this->changeLog = (array)$data['change_log']; |
||
43 | $this->fileUrl = (array)$data['file_url']; |
||
44 | } |
||
65 | } |
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.