Conditions | 5 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
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 | foreach ($matches as $match) { |
||
|
|||
47 | if ((is_array($match) === true && count($match) >= 2)) { |
||
48 | return $match[1] > $match[3]; |
||
49 | } |
||
50 | } |
||
51 | } |
||
52 | |||
53 | return false; |
||
54 | } |
||
56 |