| Conditions | 5 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function parse(string $source) |
||
| 40 | { |
||
| 41 | $pattern = "/^([\S]+) (<) ([\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) && $matches[0][1] < $matches[0][3]) { |
||
| 47 | return $matches[0][4]; |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | return false; |
||
| 52 | } |
||
| 54 |