Code Duplication    Length = 11-11 lines in 2 locations

src/widget/GridViewWidget.php 1 location

@@ 209-219 (lines=11) @@
206
     *
207
     * @return string
208
     */
209
    protected function getPager()
210
    {
211
        if (!$this->rows) {
212
            return '';
213
        }
214
215
        $pager = new PaginationWidget($this->paginationConfig);
216
        $pager->init();
217
218
        return $pager->run();
219
    }
220
221
    /**
222
     * Get table

src/widget/ListViewWidget.php 1 location

@@ 217-227 (lines=11) @@
214
     *
215
     * @return string
216
     */
217
    protected function getPager()
218
    {
219
        if (!$this->rows) {
220
            return '';
221
        }
222
223
        $pager = new PaginationWidget($this->paginationConfig);
224
        $pager->init();
225
226
        return $pager->run();
227
    }
228
}
229