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