| 1 | <?php |
||
| 22 | final class PostController |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Blog posts page. |
||
| 26 | * |
||
| 27 | * @return bool|string |
||
| 28 | */ |
||
| 29 | public function listAction() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Category list action. |
||
| 39 | * |
||
| 40 | * @return bool|string |
||
| 41 | */ |
||
| 42 | public function categoryListAction() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Show action. |
||
| 52 | * |
||
| 53 | * @return bool|string |
||
| 54 | */ |
||
| 55 | public function showAction() |
||
| 62 | } |
||
| 63 |
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.