| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | protected function processEnd(array &$context, Language $language, Result $result, TokenIterator $tokens) |
||
| 38 | { |
||
| 39 | foreach(array_filter($context, function ($name) { |
||
| 40 | return in_array($name, $this->closes); |
||
| 41 | }) as $hash => $name) { |
||
| 42 | $end = new Token([$name, 'pos' => $this->pos]); |
||
| 43 | $tokens[$hash]->setEnd($end); |
||
| 44 | $result->append($end); |
||
| 45 | |||
| 46 | unset($context[$hash]); |
||
| 47 | } |
||
| 48 | |||
| 49 | return true; |
||
| 50 | } |
||
| 51 | |||
| 52 | } |