Code Duplication    Length = 7-8 lines in 2 locations

src/widgets/IndexPage.php 1 location

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

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
    {