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

symphony/lib/toolkit/email-gateways/email.sendmail.php 1 location

@@ 73-82 (lines=10) @@
70
            try {
71
                // Encode recipient names (but not any numeric array indexes)
72
                $recipients = array();
73
                foreach ($this->_recipients as $name => $email) {
74
                    // Support Bcc header
75
                    if (isset($this->_header_fields['Bcc']) && $this->_header_fields['Bcc'] === $email) {
76
                        continue;
77
                    }
78
79
                    // if the key is not numeric, qEncode the key.
80
                    $name = General::intval($name) > -1 ? General::intval($name) : EmailHelper::qEncode($name);
81
                    $recipients[$name] = $email;
82
                }
83
84
                // Combine keys and values into a recipient list (name <email>, name <email>).
85
                $recipient_list = EmailHelper::arrayToList($recipients);

symphony/lib/toolkit/email-gateways/email.smtp.php 1 location

@@ 206-215 (lines=10) @@
203
204
                // Encode recipient names (but not any numeric array indexes)
205
                $recipients = array();
206
                foreach ($this->_recipients as $name => $email) {
207
                    // Support Bcc header
208
                    if (isset($this->_header_fields['Bcc']) && $this->_header_fields['Bcc'] === $email) {
209
                        continue;
210
                    }
211
212
                    // if the key is not numeric, qEncode the key.
213
                    $name = General::intval($name) > -1 ? General::intval($name) : EmailHelper::qEncode($name);
214
                    $recipients[$name] = $email;
215
                }
216
217
                // Combine keys and values into a recipient list (name <email>, name <email>).
218
                $recipient_list = EmailHelper::arrayToList($recipients);