| Conditions | 5 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function contains($value, $index = null) |
||
| 24 | { |
||
| 25 | if (parent::contains($value, $index)) { |
||
| 26 | return true; |
||
| 27 | } |
||
| 28 | foreach ($this->data as $key => $arr) { |
||
| 29 | if (is_traversable($arr)) { |
||
| 30 | $coll = static::factory($arr); |
||
| 31 | if ($coll->contains($value, $index)) { |
||
| 32 | return true; |
||
| 33 | } |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | return false; |
||
| 38 | } |
||
| 39 | |||
| 45 |