| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 5.3197 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 29 | public function convert(Expr\ArrayItem $node) |
|
| 24 | { |
||
| 25 | 29 | if ($node->byRef) { |
|
| 26 | $this->logger->logIncompatibility( |
||
| 27 | 'reference', |
||
| 28 | 'Reference not supported', |
||
| 29 | $node, |
||
| 30 | $this->dispatcher->getMetadata()->getClass() |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | |||
| 34 | 29 | return (null !== $node->key ? $this->dispatcher->p($node->key).' : ' : '') |
|
| 35 | 29 | .$this->dispatcher->p($node->value); |
|
| 36 | } |
||
| 37 | } |
||
| 38 |