| Conditions | 5 |
| Paths | 16 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 5.9256 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 1 | public function convert(Expr\StaticCall $node) |
|
| 24 | { |
||
| 25 | 1 | return (($node->class instanceof Expr\Variable) ? '{'.$this->dispatcher->p($node->class).'}' : $this->dispatcher->p($node->class)).'::' |
|
|
|
|||
| 26 | 1 | .($node->name instanceof Expr |
|
| 27 | 1 | ? ($node->name instanceof Expr\Variable |
|
| 28 | || $node->name instanceof Expr\ArrayDimFetch |
||
| 29 | ? $this->dispatcher->p($node->name) |
||
| 30 | : '{'.$this->dispatcher->p($node->name).'}') |
||
| 31 | 1 | : $node->name) |
|
| 32 | 1 | .'('.$this->dispatcher->pCommaSeparated($node->args).')'; |
|
| 33 | } |
||
| 34 | } |
||
| 35 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.