| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | protected function createPageButton($label, $page, $class, $hidden, $selected) |
||
| 16 | { |
||
| 17 | if ($hidden) { |
||
| 18 | return false; |
||
| 19 | } |
||
| 20 | |||
| 21 | if ($selected) { |
||
| 22 | $class = 'ui-disabled'; |
||
| 23 | } |
||
| 24 | |||
| 25 | return CHtml::link($label, $this->createPageUrl($page), ['data-role'=>'button', 'data-ajax'=>'false', 'class'=>$class]); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |
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.