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 = 18-19 lines in 2 locations

symphony/lib/toolkit/fields/field.input.php 1 location

@@ 99-116 (lines=18) @@
96
            Settings:
97
        -------------------------------------------------------------------------*/
98
99
        public function commit()
100
        {
101
            if (!parent::commit()) {
102
                return false;
103
            }
104
105
            $id = $this->get('id');
106
107
            if ($id === false) {
108
                return false;
109
            }
110
111
            $fields = array('validator' => null);
112
113
            $fields['validator'] = ($fields['validator'] === 'custom' ? null : $this->get('validator'));
114
115
            return FieldManager::saveSettings($id, $fields);
116
        }
117
118
        public function displayPublishPanel(
119
            XMLElement &$wrapper,

symphony/lib/toolkit/fields/field.upload.php 1 location

@@ 205-223 (lines=19) @@
202
            parent::checkFields($errors, $checkForDuplicates);
203
        }
204
205
        public function commit()
206
        {
207
            if (!parent::commit()) {
208
                return false;
209
            }
210
211
            $id = $this->get('id');
212
213
            if ($id === false) {
214
                return false;
215
            }
216
217
            $fields = array();
218
219
            $fields['destination'] = $this->get('destination');
220
            $fields['validator'] = ($fields['validator'] === 'custom' ? null : $this->get('validator'));
221
222
            return FieldManager::saveSettings($id, $fields);
223
        }
224
225
        public function displayPublishPanel(
226
            XMLElement &$wrapper,