Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function accept() |
||
48 | { |
||
49 | if (count($this->_filter) == 0) { |
||
50 | return true; |
||
51 | } |
||
52 | |||
53 | $it = $this->getInnerIterator(); |
||
54 | $metadata = $it->current(); |
||
55 | |||
56 | foreach ($this->_filter AS $filter) { |
||
57 | if (strpos($metadata->name, $filter) !== false) { |
||
58 | return true; |
||
59 | } |
||
60 | } |
||
61 | return false; |
||
62 | } |
||
63 | |||
72 |