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

@@ 392-400 (lines=9) @@
389
        echo Html::endForm();
390
    }
391
392
    public function renderBulkButton($text, $action, $color = 'default')
393
    {
394
        return Html::submitButton($text, [
395
            'class' => "btn btn-$color btn-sm",
396
            'form' => $this->getBulkFormId(),
397
            'formmethod' => 'POST',
398
            'formaction' => $action,
399
        ]);
400
    }
401
402
    /**
403
     * @return string