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