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

@@ 288-296 (lines=9) @@
285
        echo Html::endForm();
286
    }
287
288
    public function renderBulkButton($text, $action, $color = 'default')
289
    {
290
        return Html::submitButton($text, [
291
            'class'         => "btn btn-$color btn-sm",
292
            'form'          => $this->getBulkFormId(),
293
            'formmethod'    => 'POST',
294
            'formaction'    => $action,
295
        ]);
296
    }
297
298
    /**
299
     * @return string