Code Duplication    Length = 17-17 lines in 2 locations

src/ZfcDatagrid/Renderer/AbstractRenderer.php 2 locations

@@ 504-520 (lines=17) @@
501
    /**
502
     * @return array
503
     */
504
    public function getSortConditions()
505
    {
506
        if (is_array($this->sortConditions)) {
507
            return $this->sortConditions;
508
        }
509
510
        if ($this->isExport() === true && $this->getCacheSortConditions() !== false) {
511
            // Export renderer should always retrieve the sort conditions from cache!
512
            $this->sortConditions = $this->getCacheSortConditions();
513
514
            return $this->sortConditions;
515
        }
516
517
        $this->sortConditions = $this->getSortConditionsDefault();
518
519
        return $this->sortConditions;
520
    }
521
522
    /**
523
     * Get the default sort conditions defined for the columns.
@@ 569-585 (lines=17) @@
566
    /**
567
     * @return Filter[]
568
     */
569
    public function getFilters()
570
    {
571
        if (is_array($this->filters)) {
572
            return $this->filters;
573
        }
574
575
        if ($this->isExport() === true && $this->getCacheFilters() !== false) {
576
            // Export renderer should always retrieve the filters from cache!
577
            $this->filters = $this->getCacheFilters();
578
579
            return $this->filters;
580
        }
581
582
        $this->filters = $this->getFiltersDefault();
583
584
        return $this->filters;
585
    }
586
587
    /**
588
     * Get the default filter conditions defined for the columns.