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

classes/security/htmlpurifier/library/HTMLPurifier/Printer/ConfigForm.php 4 locations

@@ 79-84 (lines=6) @@
76
     * @param $allowed Optional namespace(s) and directives to restrict form to.
77
     */
78
    public function render($config, $allowed = true, $render_controls = true) {
79
        if (is_array($config) && isset($config[0])) {
80
            $gen_config = $config[0];
81
            $config = $config[1];
82
        } else {
83
            $gen_config = $config;
84
        }
85
86
        $this->config = $config;
87
        $this->genConfig = $gen_config;
@@ 201-206 (lines=6) @@
198
        $this->obj = $obj;
199
    }
200
    public function render($ns, $directive, $value, $name, $config) {
201
        if (is_array($config) && isset($config[0])) {
202
            $gen_config = $config[0];
203
            $config = $config[1];
204
        } else {
205
            $gen_config = $config;
206
        }
207
        $this->prepareGenerator($gen_config);
208
209
        $ret = '';
@@ 242-247 (lines=6) @@
239
    public $cols = 18;
240
    public $rows = 5;
241
    public function render($ns, $directive, $value, $name, $config) {
242
        if (is_array($config) && isset($config[0])) {
243
            $gen_config = $config[0];
244
            $config = $config[1];
245
        } else {
246
            $gen_config = $config;
247
        }
248
        $this->prepareGenerator($gen_config);
249
        // this should probably be split up a little
250
        $ret = '';
@@ 322-327 (lines=6) @@
319
 */
320
class HTMLPurifier_Printer_ConfigForm_bool extends HTMLPurifier_Printer {
321
    public function render($ns, $directive, $value, $name, $config) {
322
        if (is_array($config) && isset($config[0])) {
323
            $gen_config = $config[0];
324
            $config = $config[1];
325
        } else {
326
            $gen_config = $config;
327
        }
328
        $this->prepareGenerator($gen_config);
329
        $ret = '';
330
        $ret .= $this->start('div', array('id' => "$name:$ns.$directive"));