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 4 locations

app/core/Email.php 4 locations

@@ 94-103 (lines=10) @@
91
      * @param  array   $data
92
      * @return string  The body of the email.
93
      */
94
     private static function getPasswordResetBody($userData, $data){
95
96
         $body = "";
97
         $body .= "Dear " . $userData["name"] . ", \n\nYou can reset your password from the following link: ";
98
         $body .= Config::get('EMAIL_PASSWORD_RESET_URL') . "?id=" . urlencode(Encryption::encryptId($userData["id"])) . "&token=" . urlencode($data["password_token"]);
99
         $body .= "\n\nIf you didn't request to reset your password, Please contact the admin directly.";
100
         $body .= "\n\nRegards\nmini PHP Team";
101
102
         return $body;
103
     }
104
105
     /**
106
      * Construct the body of Email Verification email
@@ 115-124 (lines=10) @@
112
      * @return string  The body of the email.
113
      *
114
      */
115
     private static function getEmailVerificationBody($userData, $data){
116
117
         $body  = "";
118
         $body .= "Dear " . $userData["name"] . ", \n\nPlease verify your email from the following link: ";
119
         $body .= Config::get('EMAIL_EMAIL_VERIFICATION_URL') . "?id=" . urlencode(Encryption::encryptId($userData["id"])) . "&token=" . urlencode($data["email_token"]);
120
         $body .= "\n\nIf you didn't edit/add your email, Please contact the admin directly.";
121
         $body .= "\n\nRegards\nmini PHP Team";
122
123
         return $body;
124
     }
125
126
     /**
127
      * Construct the body of Revoke Email Changes email
@@ 136-145 (lines=10) @@
133
      * @return string  The body of the email.
134
      *
135
      */
136
     private static function getRevokeEmailBody($userData, $data){
137
138
         $body  = "";
139
         $body .= "Dear " . $userData["name"] . ", \n\nYour email has been changed, You can revoke your changes from the following link: ";
140
         $body .= Config::get('EMAIL_REVOKE_EMAIL_URL') . "?id=" . urlencode(Encryption::encryptId($userData["id"])) . "&token=" . urlencode($data["email_token"]);
141
         $body .= "\n\nIf you didn't update your email, Please contact the admin directly.";
142
         $body .= "\n\nRegards\nmini PHP Team";
143
144
         return $body;
145
     }
146
147
     /**
148
      * Construct the body of Update Email email
@@ 157-166 (lines=10) @@
154
      * @return string  The body of the email.
155
      *
156
      */
157
     private static function getUpdateEmailBody($userData, $data){
158
159
         $body  = "";
160
         $body .= "Dear " . $userData["name"] . ", \n\nPlease confirm your new email from the following link: ";
161
         $body .= Config::get('EMAIL_UPDATE_EMAIL_URL') . "?id=" . urlencode(Encryption::encryptId($userData["id"])) . "&token=" . urlencode($data["pending_email_token"]);
162
         $body .= "\n\nIf you have no idea what is this email for, you can ignore it.";
163
         $body .= "\n\nRegards\nmini PHP Team";
164
165
         return $body;
166
     }
167
168
     /**
169
      * Construct the body of Report Bug, Feature or Enhancement email