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

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