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

function.php 2 locations

@@ 497-498 (lines=2) @@
494
                $old_mailfrom = ini_get("sendmail_from");
495
                ini_set("sendmail_from", $from);
496
                $params = sprintf("-oi -f %s", '<>');
497
                if (!(mail($to,$sbj, $body,$headers,$params))) $flag=FALSE;
498
                else $flag=TRUE;
499
                if (isset($old_mailfrom))
500
                        ini_set("sendmail_from", $old_mailfrom);
501
        }
@@ 502-505 (lines=4) @@
499
                if (isset($old_mailfrom))
500
                        ini_set("sendmail_from", $old_mailfrom);
501
        }
502
        else {
503
                if (!(mail($to,$sbj, $body,$headers))) $flag=FALSE;
504
                else $flag=TRUE;
505
        }
506
        return $flag;
507
}
508