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

src/Collection.php 2 locations

@@ 959-963 (lines=5) @@
956
        }
957
958
        // get aggregation array
959
        if ($pipeline instanceof Pipeline) {
960
            $pipeline = $pipeline->toArray();
961
        } elseif (!is_array($pipeline)) {
962
            throw new Exception('Wrong pipeline specified');
963
        }
964
965
        // log
966
        $client = $this->_database->getClient();
@@ 992-997 (lines=6) @@
989
            throw new Exception('Explain of aggregation implemented only from 2.6.0');
990
        }
991
992
        if($pipeline instanceof Pipeline) {
993
            $pipeline = $pipeline->toArray();
994
        }
995
        elseif(!is_array($pipeline)) {
996
            throw new Exception('Wrong pipeline specified');
997
        }
998
999
        // aggregate
1000
        return $this->_database->executeCommand(array(