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

src/Document.php 2 locations

@@ 918-923 (lines=6) @@
915
            }
916
            $value = array($value);
917
        } // field already exist and has single value
918
        elseif (!is_array($oldValue)) {
919
            $value = array_merge((array) $oldValue, array($value));
920
            if ($this->getId()) {
921
                $this->operator->set($fieldName, $value);
922
            }
923
        } // field exists and is array
924
        else {
925
            if ($this->getId()) {
926
                $setValue = $this->operator->get('$set', $fieldName);
@@ 957-960 (lines=4) @@
954
        if ($this->getId()) {
955
            if (!$oldValue) {
956
                $this->operator->pushEach($fieldName, $values);
957
            } elseif (!is_array($oldValue)) {
958
                $values = array_merge((array) $oldValue, $values);
959
                $this->operator->set($fieldName, $values);
960
            } else {
961
                $this->operator->pushEach($fieldName, $values);
962
                $values = array_merge($oldValue, $values);
963
            }