| Conditions | 5 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function contains($value, $index = null) |
||
| 36 | { |
||
| 37 | if (parent::contains($value, $index)) { |
||
| 38 | return true; |
||
| 39 | } |
||
| 40 | foreach ($this->data as $key => $arr) { |
||
| 41 | if (is_traversable($arr)) { |
||
| 42 | $coll = static::factory($arr); |
||
| 43 | if ($coll->contains($value, $index)) { |
||
| 44 | return true; |
||
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | return false; |
||
| 50 | } |
||
| 51 | |||
| 57 |