| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function matches(string $source): bool |
||
| 42 | { |
||
| 43 | $pattern = "/^([\S]+) (==|eq) ([\S]+) =>/"; |
||
| 44 | |||
| 45 | if ($this->matchesPattern($pattern, $source) === true) { |
||
| 46 | $matches = $this->getMatchesFromPattern($pattern, $source); |
||
| 47 | |||
| 48 | if (isset($matches[0]) === true && count($matches[0]) >= 2) { |
||
| 49 | return ($matches[0][1] === $matches[0][3]); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 53 | return false; |
||
| 54 | } |
||
| 56 |