| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | public function actionTest($id = 0) |
||
| 5 | { |
||
| 6 | $ch = new Challenge; |
||
|
|
|||
| 7 | $ch->id = $id; |
||
| 8 | $ch->fetch(); |
||
| 9 | |||
| 10 | $res = "<p class='ui-li-desc'>{$ch->point_caller} pont</p><p class='ui-li-desc'>{$ch->cnt_won_caller}x győzött</p><p class='ui-li-desc'>{$ch->loot_caller}$ zsákmány</p>"; |
||
| 11 | $res .= "|"; |
||
| 12 | $res .= "<p class='ui-li-desc'>{$ch->point_opponent} pont</p><p class='ui-li-desc'>{$ch->cnt_won_opponent}x győzött</p><p class='ui-li-desc'>{$ch->loot_opponent}$ zsákmány</p>"; |
||
| 13 | |||
| 14 | echo $res; |
||
| 15 | } |
||
| 16 | } |
||
| 17 |
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.