| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 1 | public function convert(Stmt\TryCatch $node) |
|
| 24 | { |
||
| 25 | 1 | return 'try {'.$this->dispatcher->pStmts($node->stmts)."\n".'}' |
|
| 26 | 1 | .$this->dispatcher->pImplode($node->catches) |
|
| 27 | 1 | .($node->finallyStmts !== null |
|
| 28 | 1 | ? ' finally {'.$this->dispatcher->pStmts($node->finallyStmts)."\n".'}' |
|
| 29 | 1 | : ''); |
|
| 30 | } |
||
| 31 | } |
||
| 32 |