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