Code Duplication    Length = 9-9 lines in 2 locations

src/widgets/ActionBox.php 1 location

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

src/widgets/IndexPage.php 1 location

@@ 400-408 (lines=9) @@
397
        echo Html::endForm();
398
    }
399
400
    public function renderBulkButton($text, $action, $color = 'default')
401
    {
402
        return Html::submitButton($text, [
403
            'class' => "btn btn-$color btn-sm",
404
            'form' => $this->getBulkFormId(),
405
            'formmethod' => 'POST',
406
            'formaction' => $action,
407
        ]);
408
    }
409
410
    /**
411
     * @return string