Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | protected function addInit($file, array $data) |
||
39 | { |
||
40 | $content = file_get_contents($file); |
||
41 | $array = []; |
||
42 | $array[$data['bind']][$data['name']]['text'] = 'HELLO WORLD'; |
||
43 | $content .= PHP_EOL . PHP_EOL. $this->scriptTags['open'] . PHP_EOL . |
||
44 | json_encode($array, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL . $this->scriptTags['close'] . PHP_EOL; |
||
45 | file_put_contents($file, $content); |
||
46 | } |
||
48 |