| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | protected function runVariableMacro(string & $content): void // Intentionally & |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Remove lines with inline variables definition and put then into DocuScope |
||
| 14 | */ |
||
| 15 | $content = preg_replace_callback( |
||
| 16 | '/\{\$\$([a-zA-Z_0-9]+)\}/m', |
||
| 17 | function(array $input): string { |
||
| 18 | return $this->docuScope->getBlockVariable($input[1]); |
||
| 19 | }, |
||
| 20 | $content |
||
| 21 | ); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |