| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Block extends Tag |
||
| 6 | { |
||
| 7 | 2 | public function __construct() |
|
| 11 | 2 | } |
|
| 12 | |||
| 13 | 2 | private function content() |
|
| 14 | { |
||
| 15 | 2 | foreach (Tag::$blocks as $blockName => $blockContent) { |
|
| 16 | |||
| 17 | $search = "/{(\s?)+{$blockName}(\s?)+}.*?{(\s?)+\/{$blockName}(\s?)+}/is"; |
||
| 18 | |||
| 19 | Tag::match($search, function() use ($blockContent) { |
||
| 20 | Tag::replace($blockContent); |
||
| 21 | $this->content(); |
||
| 22 | }); |
||
| 23 | } |
||
| 24 | 2 | } |
|
| 25 | |||
| 26 | 2 | private function default() |
|
| 33 | 2 | }); |
|
| 34 | 2 | } |
|
| 36 |