| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 3.1852 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 1 | public function convert(Expr\ClosureUse $node) |
|
| 48 | { |
||
| 49 | 1 | if ($node->byRef) { |
|
| 50 | $this->logger->logNode( |
||
| 51 | 'Zephir not support reference parameters for now. Stay tuned for https://github.com/phalcon/zephir/issues/203', |
||
| 52 | $node, |
||
| 53 | $this->dispatcher->getMetadata()->getClass() |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | |||
| 57 | 1 | return $this->reservedWordReplacer->replace($node->var); |
|
| 58 | } |
||
| 59 | } |
||
| 60 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.