Passed
Push — master ( 3849b2...6d2bbe )
by Edson
01:17
created

Statement   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 9
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Bonfim\Tpl\Tag;
4
5
class Statement extends Tag
6
{
7
    public function __construct()
8
    {
9
        $search = "/{(\s?)+([\$\w]+)(\s?)+([<>!=\+\-\*\/]+)(\s?)+(.*?)(\s?)+}/is";
10
11
        Tag::match($search, function($left, $op, $right) {
12
13
            Tag::replace("<?php $$left $op $right ?>");
14
        });
15
    }
16
}
17