Code Duplication    Length = 9-9 lines in 2 locations

src/widgets/IndexPage.php 1 location

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

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
    {