EvalBlock   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 11
c 0
b 0
f 0
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 8 2
1
<?php
2
namespace Desmond\functions\special;
3
use Desmond\functions\DesmondSpecialFunction;
4
use Desmond\data_types\NilType;
5
6
class EvalBlock extends DesmondSpecialFunction
7
{
8 4
    public function run(array $args)
9
    {
10 4
        if (empty($args)) {
11 1
            return new NilType();
12
        }
13 3
        $return = $this->eval->getReturn($args[0]);
14 3
        return $this->eval->getReturn($return);
15
    }
16
}
17