| 1 | <?php |
||
| 15 | class ExpandAll extends Simple |
||
| 16 | { |
||
| 17 | protected $name ='expandall'; |
||
| 18 | |||
| 19 | protected $title = 'Развернуть все'; |
||
| 20 | |||
| 21 | protected $attributes = [ |
||
| 22 | 'class' => 'btn btn-default', |
||
| 23 | 'id' => 'expand-all' |
||
| 24 | ]; |
||
| 25 | |||
| 26 | protected $url = '#'; |
||
| 27 | |||
| 28 | protected $js = |
||
|
|
|||
| 29 | '$("a#expand-all").on("click", function () { |
||
| 30 | NNX.jqGrid.expandAll($("#grid-%gridName%")); |
||
| 31 | return false; |
||
| 32 | });'; |
||
| 33 | } |
||
| 34 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.