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

@@ 259-266 (lines=8) @@
256
        ]);
257
    }
258
259
    public function renderSorter(array $options)
260
    {
261
        return LinkSorter::widget(array_merge([
262
            'show'  => true,
263
            'sort'  => $this->dataProvider->getSort(),
264
            'buttonClass' => 'btn btn-default dropdown-toggle btn-sm',
265
        ], $options));
266
    }
267
268
    public function getViewPath()
269
    {