| Total Complexity | 8 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class BooleanMatchNameSpace implements MatchCollectionInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param Iterable<mixed> $data |
||
| 16 | */ |
||
| 17 | public function evaluate(iterable $data, Entry $matchMeInData): MatchedResultInterface |
||
| 29 | } |
||
| 30 | |||
| 31 | private function isMatchMeNameSpaceInCheckEntry(string $matchMeInData, string $checkEntry): bool |
||
| 32 | { |
||
| 33 | if ($matchMeInData === $checkEntry) { |
||
| 34 | return true; |
||
| 35 | } |
||
| 36 | |||
| 37 | $pos = \strpos($matchMeInData, $checkEntry); |
||
| 38 | if ($pos === false) { |
||
| 39 | return false; |
||
| 40 | } |
||
| 41 | |||
| 42 | if (\strlen($checkEntry) > \strlen($matchMeInData)) { |
||
| 43 | return false; |
||
| 44 | } |
||
| 45 | |||
| 46 | return true; |
||
| 47 | } |
||
| 48 | |||
| 49 | private function stripQueueSlash(string $token): string |
||
| 55 | } |
||
| 56 | } |
||
| 57 |