Code Duplication    Length = 8-8 lines in 2 locations

src/views/requisite/modal/_bulkSetTemplates.php 1 location

@@ 63-70 (lines=8) @@
60
                        <b><?= "{$model->name} / {$model->organization}" ?></b>
61
                    </div>
62
                    <?= Html::activeHiddenInput($model, "[$model->id]id") ?>
63
                    <?php foreach (['invoice', 'acceptance', 'contract', 'probation', 'internal_invoice'] as $template) : ?>
64
                        <div class="col-md-6">
65
                            <?= $form->field($model, "[$model->id]{$template}_id")->widget(RefCombo::class, [
66
                                'gtype' => "type,document,{$template}",
67
                            ]) ?>
68
                        </div>
69
                    <?php endforeach ?>
70
                    <hr>
71
                <?php endforeach ?>
72
            </div>
73
            <hr>

src/widgets/views/requisite-templates.php 1 location

@@ 33-40 (lines=8) @@
30
31
<div class="row" style="padding: 1em 5px 0;">
32
    <?php $model = is_array($model) ? reset($model) : $model ?>
33
    <?php foreach (['invoice', 'acceptance', 'contract', 'probation', 'internal_invoice'] as $reqtemplate) : ?>
34
        <div class="col-md-6">
35
            <?= $form->field($model, "{$reqtemplate}_id")->widget(RefCombo::class, [
36
                'gtype' => "type,document,{$reqtemplate}",
37
            ]) ?>
38
        </div>
39
    <?php endforeach ?>
40
</div>
41
42
<?= Html::submitButton(Yii::t('hipanel', 'Save'), [
43
    'class' => 'btn btn-success',