RunLambda::run()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 1
crap 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