| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getFunctions(array $constants = []) |
||
| 19 | { |
||
| 20 | $functions = parent::getFunctions($constants); |
||
| 21 | |||
| 22 | // Add line offset to the functions because vue templates contain template at the top and the script is below. |
||
| 23 | // When we parse, we parse only the script part so we need to add the line number |
||
| 24 | $functions = array_map(function ($v) { |
||
| 25 | $v[1] += $this->lineOffset - 1; |
||
| 26 | return $v; |
||
| 27 | }, $functions); |
||
| 28 | |||
| 29 | return $functions; |
||
| 30 | } |
||
| 31 | } |