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

vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/PH5P.php 2 locations

@@ 3425-3460 (lines=36) @@
3422
            return $this->mainPhase($token);
3423
3424
            /* An end tag whose tag name is "table" */
3425
        } elseif ($token['type'] === HTML5::ENDTAG &&
3426
            $token['name'] === 'table'
3427
        ) {
3428
            /* If the stack of open elements does not have an element in table
3429
            scope with the same tag name as the token, this is a parse error.
3430
            Ignore the token. (innerHTML case) */
3431
            if (!$this->elementInScope($token['name'], true)) {
3432
                return false;
3433
3434
                /* Otherwise: */
3435
            } else {
3436
                /* Generate implied end tags. */
3437
                $this->generateImpliedEndTags();
3438
3439
                /* Now, if the current node is not a table element, then this
3440
                is a parse error. */
3441
                // w/e
3442
3443
                /* Pop elements from this stack until a table element has been
3444
                popped from the stack. */
3445
                while (true) {
3446
                    $current = end($this->stack)->nodeName;
3447
                    array_pop($this->stack);
3448
3449
                    if ($current === 'table') {
3450
                        break;
3451
                    }
3452
                }
3453
3454
                /* Reset the insertion mode appropriately. */
3455
                $this->resetInsertionMode();
3456
            }
3457
3458
            /* An end tag whose tag name is one of: "body", "caption", "col",
3459
            "colgroup", "html", "tbody", "td", "tfoot", "th", "thead", "tr" */
3460
        } elseif ($token['type'] === HTML5::ENDTAG && in_array(
3461
                $token['name'],
3462
                array(
3463
                    'body',
@@ 4122-4149 (lines=28) @@
4119
            }
4120
4121
            /* An end tag whose tag name is "select" */
4122
        } elseif ($token['type'] === HTML5::ENDTAG &&
4123
            $token['name'] === 'select'
4124
        ) {
4125
            /* If the stack of open elements does not have an element in table
4126
            scope with the same tag name as the token, this is a parse error.
4127
            Ignore the token. (innerHTML case) */
4128
            if (!$this->elementInScope($token['name'], true)) {
4129
                // w/e
4130
4131
                /* Otherwise: */
4132
            } else {
4133
                /* Pop elements from the stack of open elements until a select
4134
                element has been popped from the stack. */
4135
                while (true) {
4136
                    $current = end($this->stack)->nodeName;
4137
                    array_pop($this->stack);
4138
4139
                    if ($current === 'select') {
4140
                        break;
4141
                    }
4142
                }
4143
4144
                /* Reset the insertion mode appropriately. */
4145
                $this->resetInsertionMode();
4146
            }
4147
4148
            /* A start tag whose tag name is "select" */
4149
        } elseif ($token['name'] === 'select' &&
4150
            $token['type'] === HTML5::STARTTAG
4151
        ) {
4152
            /* Parse error. Act as if the token had been an end tag with the