Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 27-34 (lines=8) @@
24
            'data-pjaxPush' => false,
25
        ],
26
    ]) ?>
27
        <?php if (!is_array($model)) : ?>
28
            <?= Html::activeHiddenInput($model, 'id') ?>
29
        <?php else : ?>
30
            <?php foreach ($model as $item) : ?>
31
                <?= Html::activeHiddenInput($item, "[$item->id]id") ?>
32
            <?php endforeach ?>
33
        <?php endif ?>
34
35
        <div class="row" style="margin-top: 15pt;">
36
            <div class="col-md-10 inline-form-selector">
37
                <?php $model = is_array($model) ? reset($model) : $model ?>

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

@@ 23-30 (lines=8) @@
20
    'validationUrl' => Url::toRoute(['@requisite/validate-form', 'scenario' => 'set-templates']),
21
]) ?>
22
23
<?php if (!is_array($model)) : ?>
24
    <?= Html::activeHiddenInput($model, 'id') ?>
25
<?php else : ?>
26
    <?php foreach ($model as $item) : ?>
27
        <?= Html::activeHiddenInput($item, "[$item->id]id") ?>
28
    <?php endforeach ?>
29
<?php endif ?>
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) : ?>