| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 17 | private function _push(Token $token) |
|
| 25 | { |
||
| 26 | 17 | if (!isset($this->_tokens[$token->pos])) { |
|
| 27 | 17 | $this->_tokens[$token->pos] = []; |
|
| 28 | 17 | } else { |
|
| 29 | 13 | $this->_pending[$token->pos] = true; |
|
| 30 | } |
||
| 31 | |||
| 32 | 17 | $this->_tokens[$token->pos][spl_object_hash($token)] = $token; |
|
| 33 | |||
| 34 | 17 | return $this; |
|
| 35 | } |
||
| 36 | |||
| 74 | } |