Conditions | 3 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function evaluate(Frame $frame) |
||
46 | { |
||
47 | $iter = tail(function ($rest) use (&$iter, $frame) { |
||
48 | if (empty($rest)) { |
||
49 | return true; |
||
50 | } |
||
51 | |||
52 | list ($head, $tail) = toHeadTail($rest); |
||
53 | |||
54 | if (!$frame($head)) { |
||
55 | return false; |
||
56 | } |
||
57 | |||
58 | return $iter($tail); |
||
59 | }); |
||
60 | |||
61 | return $iter($this->getExpressions()); |
||
62 | } |
||
63 | } |
||
64 |