Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
46 | 42 | public function denormalize($data, $class, $format = null, array $context = array()) |
|
47 | { |
||
48 | 42 | $id = IRI::fromString($data['id']); |
|
49 | 42 | $display = null; |
|
50 | |||
51 | 42 | if (isset($data['display'])) { |
|
52 | 40 | $display = $this->denormalizeData($data['display'], 'Xabbuh\XApi\Model\LanguageMap', $format, $context); |
|
53 | } |
||
54 | |||
55 | 42 | return new Verb($id, $display); |
|
56 | } |
||
57 | |||
66 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.