Completed
Push — master ( c6b5de...db50e7 )
by Dmitry
04:45
created

src/views/bill/_grouping.php (4 issues)

Upgrade to new PHP Analysis Engine

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
The method beginContent() 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...
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
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