These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | use hipanel\modules\finance\grid\GroupedByServerChargesGridView; |
||
4 | use hipanel\modules\finance\models\Charge; |
||
5 | use hipanel\widgets\IndexPage; |
||
6 | use yii\data\ArrayDataProvider; |
||
7 | |||
8 | /** |
||
9 | * @var \hipanel\modules\finance\models\Charge $model |
||
10 | * @var IndexPage $page |
||
11 | * @var \hipanel\modules\finance\helpers\ChargesGrouper $grouper |
||
12 | * @var Charge[] $idToNameObject |
||
13 | * @var Charge[][] $chargesByMainObject |
||
14 | */ |
||
15 | [$idToNameObject, $chargesByMainObject] = $grouper->group(); |
||
16 | |||
17 | ?> |
||
18 | <?php $page->beginContent('table') ?> |
||
0 ignored issues
–
show
|
|||
19 | <?php $page->beginBulkForm() ?> |
||
0 ignored issues
–
show
The method
beginBulkForm() does not seem to exist on object<hipanel\tests\_support\Page\IndexPage> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
20 | <?= GroupedByServerChargesGridView::widget([ |
||
21 | 'boxed' => false, |
||
22 | 'showHeader' => false, |
||
23 | 'chargesByMainObject' => $chargesByMainObject, |
||
24 | 'dataProvider' => new ArrayDataProvider([ |
||
25 | 'allModels' => $idToNameObject, |
||
26 | 'pagination' => false, |
||
27 | ]), |
||
28 | 'summaryRenderer' => function () { |
||
29 | return ''; // remove unnecessary summary |
||
30 | }, |
||
31 | 'columns' => [ |
||
32 | 'common_object_link', |
||
33 | ], |
||
34 | ]) ?> |
||
35 | <?php $page->endBulkForm() ?> |
||
0 ignored issues
–
show
The method
endBulkForm() does not seem to exist on object<hipanel\tests\_support\Page\IndexPage> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
36 | <?php $page->endContent() ?> |
||
0 ignored issues
–
show
It is not recommended to use PHP's closing tag
?> in files other than templates.
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore. A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.
Loading history...
The method
endContent() does not seem to exist on object<hipanel\tests\_support\Page\IndexPage> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
37 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.