| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function reveal($value) |
||
| 29 | { |
||
| 30 | if (is_array($value)) { |
||
| 31 | return array_map(array($this, __FUNCTION__), $value); |
||
| 32 | } |
||
| 33 | |||
| 34 | if (!is_object($value)) { |
||
| 35 | return $value; |
||
| 36 | } |
||
| 37 | |||
| 38 | if ($value instanceof ProphecyInterface) { |
||
| 39 | $value = $value->reveal(); |
||
| 40 | } |
||
| 41 | |||
| 42 | return $value; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |