| Conditions | 5 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function parse(string $source) |
||
| 42 | { |
||
| 43 | $pattern = "/^([\S]+) (==|eq) ([\S]+) =>\s(.*)$/"; |
||
| 44 | |||
| 45 | if ($this->matchesPattern($pattern, $source) === true) { |
||
| 46 | $matches = $this->getMatchesFromPattern($pattern, $source); |
||
| 47 | |||
| 48 | if (isset($matches[0]) === true and count($matches[0]) >= 2) { |
||
| 49 | if ($matches[0][1] === $matches[0][3]) { |
||
| 50 | return $matches[0][4]; |
||
| 51 | } |
||
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 55 | return false; |
||
| 56 | } |
||
| 58 |