| Conditions | 4 |
| Paths | 6 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function getLinkLabel(TransDescriptor $trans): string |
||
| 18 | { |
||
| 19 | $title = $trans->title ? $trans->title : $trans->id; |
||
| 20 | if ($trans->type === 'idempotent') { |
||
| 21 | return sprintf('<u>%s</u>', $title); |
||
| 22 | } |
||
| 23 | |||
| 24 | if ($trans->type === 'unsafe') { |
||
| 25 | return sprintf('<b><u>%s</u></b>', $title); |
||
| 26 | } |
||
| 27 | |||
| 28 | return $title; |
||
| 29 | } |
||
| 31 |