Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
44 | public function execute(Isolate $isolate, Context $context, string $value): Value |
||
45 | { |
||
46 | $path = Util::normalizePath($value); |
||
47 | |||
48 | $source = new StringValue($isolate, $this->filesystem->read($path)); |
||
49 | $origin = new ScriptOrigin($path); |
||
50 | $script = new Script($context, $source, $origin); |
||
51 | |||
52 | return $script->run($context); |
||
53 | } |
||
54 | |||
56 |