Code Duplication    Length = 7-8 lines in 2 locations

src/widgets/ActionBox.php 1 location

@@ 152-158 (lines=7) @@
149
        ]);
150
    }
151
152
    public function renderSorter(array $options)
153
    {
154
        return LinkSorter::widget(array_merge([
155
            'show'  => true,
156
            'sort'  => $this->dataProvider->getSort(),
157
        ], $options));
158
    }
159
160
    public function renderBulkActions(array $options)
161
    {

src/widgets/IndexPage.php 1 location

@@ 324-331 (lines=8) @@
321
        ]);
322
    }
323
324
    public function renderSorter(array $options)
325
    {
326
        return LinkSorter::widget(array_merge([
327
            'show' => true,
328
            'sort' => $this->dataProvider->getSort(),
329
            'buttonClass' => 'btn btn-default dropdown-toggle btn-sm',
330
        ], $options));
331
    }
332
333
    public function getViewPath()
334
    {