Code Duplication    Length = 12-12 lines in 3 locations

src/Filter.php 1 location

@@ 59-70 (lines=12) @@
56
     *
57
     * @return mixed
58
     */
59
    public function getValue()
60
    {
61
        $from_input = $this
62
            ->grid
63
            ->getInputProcessor()
64
            ->getFilterValue($this->config->getId());
65
        if ($from_input === null) {
66
            return $this->config->getDefaultValue();
67
        } else {
68
            return $from_input;
69
        }
70
    }
71
72
    /**
73
     * Renders filtering control.

src/Components/Filters/DateRangePicker.php 2 locations

@@ 80-91 (lines=12) @@
77
        return $this;
78
    }
79
80
    public function getStartValue()
81
    {
82
        $from_input = $this
83
            ->grid
84
            ->getInputProcessor()
85
            ->getFilterValue($this->name . '_start');
86
        if ($from_input === null) {
87
            return $this->getDefaultStartValue();
88
        } else {
89
            return $from_input;
90
        }
91
    }
92
93
94
    public function getEndValue()
@@ 94-105 (lines=12) @@
91
    }
92
93
94
    public function getEndValue()
95
    {
96
        $from_input = $this
97
            ->grid
98
            ->getInputProcessor()
99
            ->getFilterValue($this->name . '_end');
100
        if ($from_input === null) {
101
            return $this->getDefaultEndValue();
102
        } else {
103
            return $from_input;
104
        }
105
    }
106
107
    public function getValue()
108
    {