| 1 | <?php |
||
| 8 | class PlayerComponent extends CApplicationComponent |
||
| 9 | { |
||
| 10 | private $model; |
||
| 11 | private $clubChallenge = false; |
||
| 12 | private $newContest = false; |
||
|
|
|||
| 13 | |||
| 14 | public function getModel() |
||
| 18 | |||
| 19 | public function getUid() |
||
| 23 | |||
| 24 | public function getClubChallenge() |
||
| 28 | |||
| 29 | public function getNewContest() |
||
| 34 | |||
| 35 | public function init() |
||
| 42 | |||
| 43 | public function rest() |
||
| 47 | |||
| 48 | protected function checkClubChallenge() |
||
| 59 | |||
| 60 | protected function checkNewContest() |
||
| 64 | } |
||
| 65 |
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.