Code Duplication    Length = 6-8 lines in 2 locations

src/views/tariff/certificate/_form.php 1 location

@@ 35-40 (lines=6) @@
32
            <tr>
33
                <th></th>
34
                <?php foreach ($model->getResourceTypes() as $type) : ?>
35
                    <?php foreach ($model->getPeriods() as $period => $periodLabel) : ?>
36
                        <?= Html::tag('th', Yii::t('hipanel:finance:tariff', '{operation} for {duration}', [
37
                            'operation' => $type,
38
                            'duration' => $periodLabel,
39
                        ])); ?>
40
                    <?php endforeach; ?>
41
                <?php endforeach; ?>
42
            </tr>
43
            </thead>

src/views/plan/certificate/_form.php 1 location

@@ 64-71 (lines=8) @@
61
                    <thead>
62
                    <tr>
63
                        <?= Html::tag('th', Yii::t('hipanel:finance:tariff', 'Name')); ?>
64
                        <?php foreach (CertificatePrice::getTypes() as $name) : ?>
65
                            <?php foreach (CertificatePrice::getPeriods() as $period) : ?>
66
                                <?= Html::tag('th', Yii::t('hipanel:finance:tariff', '{operation} for {duration}', [
67
                                    'operation' => $name,
68
                                    'duration' => $period,
69
                                ])); ?>
70
                            <?php endforeach; ?>
71
                        <?php endforeach; ?>
72
                    </tr>
73
                    </thead>
74
                    <tbody>