| Conditions | 1 |
| Paths | 1 |
| Total Lines | 36 |
| Code Lines | 30 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | private function parseRegexp(string $source): iterable |
||
| 16 | { |
||
| 17 | $pattern = <<<REGEXP |
||
| 18 | / |
||
| 19 | (?:\#\d\s{main}[^$]*) |
||
| 20 | | |
||
| 21 | (?: |
||
| 22 | (?: |
||
| 23 | \#\d+\s+ |
||
| 24 | ( |
||
| 25 | (?:\[internal\sfunction\]) |
||
| 26 | | |
||
| 27 | (?<FILE>.+?) |
||
| 28 | \( |
||
| 29 | (?<LINE>\d+) |
||
| 30 | \) |
||
| 31 | ) |
||
| 32 | :\s+ |
||
| 33 | (?: |
||
| 34 | (?<CLASS>[\w\\\]+) |
||
| 35 | (?<TYPE>::|->) |
||
| 36 | )? |
||
| 37 | (?<FUNCTION>[\w_]+) |
||
| 38 | \(.*?\)\n |
||
| 39 | ) |
||
| 40 | ) |
||
| 41 | /x |
||
| 42 | REGEXP; |
||
| 43 | |||
| 44 | |||
| 45 | $matches = []; |
||
| 46 | |||
| 47 | $matches = $this->runRegexp($pattern, $source, $matches); |
||
| 48 | $matches = $this->filterMatches($matches); |
||
| 49 | |||
| 50 | return $this->mapResult($matches); |
||
| 51 | } |
||
| 88 | } |