GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 14-18 lines in 2 locations

src/Display/Column/Filter/Date.php 1 location

@@ 145-162 (lines=18) @@
142
     *
143
     * @return string
144
     */
145
    public function parseValue($date)
146
    {
147
        if (empty($date)) {
148
            return;
149
        }
150
151
        try {
152
            $date = Carbon::parse($date);
153
        } catch (Exception $e) {
154
            try {
155
                $date = Carbon::createFromFormat($this->getPickerFormat(), $date);
156
            } catch (Exception $e) {
157
                return;
158
            }
159
        }
160
161
        return $date->format($this->getFormat());
162
    }
163
}
164

src/Form/Element/DateTime.php 1 location

@@ 129-142 (lines=14) @@
126
     *
127
     * @return string|void
128
     */
129
    protected function parseValue($value)
130
    {
131
        try {
132
            $time = Carbon::parse($value);
133
        } catch (Exception $e) {
134
            try {
135
                $time = Carbon::createFromFormat($this->getPickerFormat(), $value);
136
            } catch (Exception $e) {
137
                return;
138
            }
139
        }
140
141
        return $time->format(
142
            $this->getPickerFormat()
143
        );
144
    }
145
}