Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function evaluate(string $ruleIdentifier, callable $compiler): void |
||
28 | { |
||
29 | $fileName = $this->directory.DIRECTORY_SEPARATOR.'rulerz_executor_'.$ruleIdentifier; |
||
30 | |||
31 | if (!$this->fs->has($fileName)) { |
||
32 | $this->fs->write($fileName, '<?php'."\n".$compiler()); |
||
33 | } |
||
34 | |||
35 | require $fileName; |
||
36 | } |
||
37 | } |
||
38 |