Code Duplication    Length = 7-8 lines in 2 locations

src/widgets/ActionBox.php 1 location

@@ 168-174 (lines=7) @@
165
        ]);
166
    }
167
168
    public function renderSorter(array $options)
169
    {
170
        return LinkSorter::widget(array_merge([
171
            'show'  => true,
172
            'sort'  => $this->dataProvider->getSort(),
173
        ], $options));
174
    }
175
176
    public function renderBulkActions(array $options)
177
    {

src/widgets/IndexPage.php 1 location

@@ 222-229 (lines=8) @@
219
        ]);
220
    }
221
222
    public function renderSorter(array $options)
223
    {
224
        return LinkSorter::widget(array_merge([
225
            'show'  => true,
226
            'sort'  => $this->dataProvider->getSort(),
227
            'buttonClass' => 'btn btn-default dropdown-toggle btn-sm',
228
        ], $options));
229
    }
230
231
    public function getViewPath()
232
    {