Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function evaluate(iterable $data, Entry $matchMeInData): MatchedResultInterface |
||
18 | { |
||
19 | foreach ($data as $item) { |
||
20 | $currentEntry = \strtolower($this->stripQueueSlash($item)); |
||
21 | $matchMeLiteral = \strtolower($this->stripQueueSlash($matchMeInData->get())); |
||
22 | |||
23 | if ($this->isMatchMeNameSpaceInCheckEntry($matchMeLiteral, $currentEntry)) { |
||
24 | return new MatchedResult($item); |
||
25 | } |
||
26 | } |
||
27 | |||
28 | return new EmptyMatchedResult(); |
||
29 | } |
||
57 |