1 | <?php |
||
7 | class Wall extends CModel |
||
8 | { |
||
9 | const TYPE_DUEL = 'duel'; |
||
|
|||
10 | const TYPE_LEVEL = 'level'; |
||
11 | const TYPE_NEW_COUNTY = 'new_county'; |
||
12 | const TYPE_CLUB_FIRE = 'club_fire'; |
||
13 | const TYPE_CLUB_APPROVE = 'club_approve'; |
||
14 | const TYPE_CLUB_DELETE = 'club_delete'; |
||
15 | const TYPE_CLUB_CLOSE = 'club_close'; |
||
16 | const TYPE_BADGE = 'badge'; |
||
17 | const TYPE_NEW_AWARD = 'new_award'; |
||
18 | |||
19 | private $uid; |
||
20 | private $content_type = '?'; |
||
21 | private $posts = []; |
||
22 | |||
23 | public function attributeNames() |
||
27 | |||
28 | public function getPosts() |
||
32 | |||
33 | public function setUid($uid) |
||
37 | |||
38 | public function setContent_type($type) |
||
42 | |||
43 | public function add($data) |
||
54 | |||
55 | public function fetchPosts() |
||
86 | } |
||
87 |
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.