| 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 |
||
| 23 | 17 | private function _push(Token $token) |
|
| 24 | { |
||
| 25 | 17 | if (!isset($this->_tokens[$token->pos])) { |
|
| 26 | 17 | $this->_tokens[$token->pos] = []; |
|
| 27 | 17 | } else { |
|
| 28 | 13 | $this->_pending[$token->pos] = true; |
|
| 29 | } |
||
| 30 | |||
| 31 | 17 | $this->_tokens[$token->pos][spl_object_hash($token)] = $token; |
|
| 32 | |||
| 33 | 17 | return $this; |
|
| 34 | } |
||
| 35 | |||
| 75 |