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