Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1.2963 |
Changes | 0 |
1 | <?php |
||
34 | 2 | private function getParentContent(): void |
|
35 | { |
||
36 | 2 | $search = "/{(\s?)+extends ['\"]([\w\.]+)['\"](\s?)+}/is"; |
|
37 | |||
38 | Tag::match($search, function($layoutName) { |
||
39 | |||
40 | $layoutName = str_replace('.', '/', $layoutName); |
||
41 | |||
42 | $content = \Sketch\Tpl\Content::getContent($layoutName, Tag::$config); |
||
43 | |||
44 | Tag::replace($content); |
||
45 | |||
46 | $this->__construct(); |
||
47 | 2 | }); |
|
50 |