Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1.4218 |
Changes | 0 |
1 | <?php |
||
48 | 2 | private function elseif() |
|
49 | { |
||
50 | 2 | $search = "/{(\s?)+elseif(\s?)+([\$\w\.]+)(\s?)+([<>!=]+)(\s?)+([\$\w\d\.\"' ]+)(\s?)+}(.*?)/is"; |
|
51 | |||
52 | Tag::match($search, function($left, $op, $right, $content = "") { |
||
53 | |||
54 | $left = str_replace('.', '->', $left); |
||
55 | $right = str_replace('.', '->', $right); |
||
56 | |||
57 | $res = "<?php } elseif ($left $op $right) { ?>"; |
||
58 | $res .= $content; |
||
59 | |||
60 | Tag::replace($res); |
||
61 | |||
62 | $this->elseif(); |
||
63 | 2 | }); |
|
66 |