Passed
Push — master ( 9e2b32...3849b2 )
by Edson
02:50
created

Evaluate::script()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace EdsonOnildo\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 EdsonOnildo\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 EdsonOnildo\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