| Conditions | 6 |
| Paths | 32 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 11.6215 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 1 | public function convert(Node\Param $node) |
|
| 24 | { |
||
| 25 | 1 | if ($node->byRef) { |
|
| 26 | $this->logger->logIncompatibility( |
||
| 27 | 'reference', |
||
| 28 | 'Reference not supported', |
||
| 29 | $node, |
||
| 30 | $this->dispatcher->getMetadata()->getClass() |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | |||
| 34 | 1 | return ($node->type ? (is_string($node->type) ? $node->type : $this->dispatcher->p($node->type)).' ' : '') |
|
| 35 | 1 | .($node->variadic ? '... ' : '') |
|
| 36 | 1 | .''.$node->name |
|
| 37 | 1 | .($node->default ? ' = '.$this->dispatcher->p($node->default) : '').''; |
|
| 38 | } |
||
| 39 | } |
||
| 40 |