Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
26 | 6 | private function variable(): void |
|
27 | { |
||
28 | 6 | if (preg_match_all($this->pattern, $this->content, $this->matches, PREG_SET_ORDER)) { |
|
29 | 6 | for ($i = 0; $i < count($this->matches); $i++) { |
|
30 | 6 | $this->match = $this->matches[$i]; |
|
31 | 6 | $this->getVariable(); |
|
32 | 6 | $this->replace = '<?php echo('.$this->variable.'); ?>'; |
|
33 | 6 | $this->filter('upper'); |
|
34 | 6 | $this->content = str_replace($this->match[0], $this->replace, $this->content); |
|
35 | }; |
||
66 |