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

lib/Core/Factory/AutoResponderDataFactory.php 1 location

@@ 69-80 (lines=12) @@
66
            $rendered = trim($rendered);
67
        }
68
69
        if (!empty($rendered)) {
70
71
            $emails = explode(',', $rendered);
72
73
            $emails = array_filter($emails, function($var) {
74
                return filter_var($var, FILTER_VALIDATE_EMAIL);
75
            });
76
77
            if (!empty($emails)) {
78
                return $emails;
79
            }
80
        }
81
82
        $field = 'email';
83
        if (!empty($this->config[ConfigurationConstants::DEFAULT_VARIABLES][ConfigurationConstants::EMAIL_FIELD_IDENTIFIER])) {

lib/Core/Factory/EmailDataFactory.php 1 location

@@ 165-176 (lines=12) @@
162
            $rendered = trim($rendered);
163
        }
164
165
        if (!empty($rendered)) {
166
167
            $emails = explode(',', $rendered);
168
169
            $emails = array_filter($emails, function($var) {
170
                return filter_var($var, FILTER_VALIDATE_EMAIL);
171
            });
172
173
            if (!empty($emails)) {
174
                return $emails;
175
            }
176
        }
177
178
        $content = $data->getContent();
179
        if (array_key_exists($field, $content->fields) &&