Code Duplication    Length = 9-9 lines in 2 locations

src/widgets/ActionBox.php 1 location

@@ 169-177 (lines=9) @@
166
        $this->endBulkActions();
167
    }
168
169
    public function renderBulkButton($text, $action, $color = 'default')
170
    {
171
        return Html::submitButton($text, [
172
            'class'         => "btn btn-$color btn-sm",
173
            'form'          => $this->getBulkFormId(),
174
            'formmethod'    => 'POST',
175
            'formaction'    => $action,
176
        ]);
177
    }
178
179
    public function renderDeleteButton($text = null)
180
    {

src/widgets/IndexPage.php 1 location

@@ 353-361 (lines=9) @@
350
        echo Html::endForm();
351
    }
352
353
    public function renderBulkButton($text, $action, $color = 'default')
354
    {
355
        return Html::submitButton($text, [
356
            'class' => "btn btn-$color btn-sm",
357
            'form' => $this->getBulkFormId(),
358
            'formmethod' => 'POST',
359
            'formaction' => $action,
360
        ]);
361
    }
362
363
    /**
364
     * @return string