| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function guessType($class, $property) |
||
| 19 | { |
||
| 20 | if ($property === '_id') { |
||
| 21 | return new TypeGuess('hidden', array(), Guess::LOW_CONFIDENCE); |
||
| 22 | } |
||
| 23 | |||
| 24 | if (!isset($this->data->$property)) { |
||
| 25 | return; |
||
| 26 | } |
||
| 27 | $data = $this->data->$property; |
||
| 28 | |||
| 29 | $type = $this->getType($data); |
||
| 30 | |||
| 31 | return new TypeGuess($type, array(), Guess::LOW_CONFIDENCE); |
||
| 32 | } |
||
| 33 | |||
| 74 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.