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

@@ 251-259 (lines=9) @@
248
        echo Html::endForm();
249
    }
250
251
    public function renderBulkButton($text, $action, $color = 'default')
252
    {
253
        return Html::submitButton($text, [
254
            'class'         => "btn btn-$color btn-sm",
255
            'form'          => $this->getBulkFormId(),
256
            'formmethod'    => 'POST',
257
            'formaction'    => $action,
258
        ]);
259
    }
260
}
261