Code Duplication    Length = 4-4 lines in 2 locations

src/views/price/formRow/simple.php 1 location

@@ 77-80 (lines=4) @@
74
        <?php endif ?>
75
    </div>
76
    <div class="col-md-1">
77
        <?php if ($model->unitOptions !== []): ?>
78
            <?= $form->field($model, "[$i]unit")->dropDownList($model->unitOptions) ?>
79
        <?php endif ?>
80
    </div>
81
    <div class="col-md-2">
82
        <?php if ($model instanceof RatePrice) : ?>
83
            <?= $form->field($model, "[$i]rate")->input('number') ?>

src/views/price/formRow/template.php 1 location

@@ 50-53 (lines=4) @@
47
        <?php endif ?>
48
    </div>
49
    <div class="col-md-1">
50
        <?php if ($model->unitOptions !== []): ?>
51
            <?= $form->field($model, "[$i]unit")->dropDownList($model->unitOptions) ?>
52
        <?php endif ?>
53
    </div>
54
    <div class="col-md-4">
55
        <div class="col-md-4">
56
            <?php if (StringHelper::startsWith($model->type, Plan::TYPE_REFERRAL)) : ?>