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

@@ 240-247 (lines=8) @@
237
        ]);
238
    }
239
240
    public function renderSorter(array $options)
241
    {
242
        return LinkSorter::widget(array_merge([
243
            'show'  => true,
244
            'sort'  => $this->dataProvider->getSort(),
245
            'buttonClass' => 'btn btn-default dropdown-toggle btn-sm',
246
        ], $options));
247
    }
248
249
    public function getViewPath()
250
    {