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

Evaluate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
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 5 1
1
<?php
2
3
namespace Bonfim\Tpl\Tag;
4
5
class Evaluate extends Tag
6
{
7
    public function __construct()
8
    {
9
        self::match('/[^@]{{(.*?)}}/', function ($cond) {
0 ignored issues
show
Bug Best Practice introduced by
The method Bonfim\Tpl\Tag\Tag::match() is not static, but was called statically. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

9
        self::/** @scrutinizer ignore-call */ 
10
              match('/[^@]{{(.*?)}}/', function ($cond) {
Loading history...
10
11
            self::replace("<?= $cond ?>");
0 ignored issues
show
Bug Best Practice introduced by
The method Bonfim\Tpl\Tag\Tag::replace() is not static, but was called statically. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

11
            self::/** @scrutinizer ignore-call */ 
12
                  replace("<?= $cond ?>");
Loading history...
12
        });
13
    }
14
}
15