RunLambda   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

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