Code Duplication    Length = 9-9 lines in 2 locations

src/widgets/ActionBox.php 1 location

@@ 185-193 (lines=9) @@
182
        $this->endBulkActions();
183
    }
184
185
    public function renderBulkButton($text, $action, $color = 'default')
186
    {
187
        return Html::submitButton($text, [
188
            'class'         => "btn btn-$color btn-sm",
189
            'form'          => $this->getBulkFormId(),
190
            'formmethod'    => 'POST',
191
            'formaction'    => $action,
192
        ]);
193
    }
194
195
    public function renderDeleteButton($text = null)
196
    {

src/widgets/IndexPage.php 1 location

@@ 269-277 (lines=9) @@
266
        echo Html::endForm();
267
    }
268
269
    public function renderBulkButton($text, $action, $color = 'default')
270
    {
271
        return Html::submitButton($text, [
272
            'class'         => "btn btn-$color btn-sm",
273
            'form'          => $this->getBulkFormId(),
274
            'formmethod'    => 'POST',
275
            'formaction'    => $action,
276
        ]);
277
    }
278
}
279