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

src/GridFS.php 1 location

@@ 127-129 (lines=3) @@
124
                $result = $this->_mongoCollection->delete($id);
125
            }
126
        }
127
        if($result['ok'] !== (double) 1) {
128
            throw new Exception('Error deleting file: ' . $result['err'] . ': ' . $result['errmsg']);
129
        }
130
        
131
        return $this;
132
    }

src/Collection.php 1 location

@@ 833-839 (lines=7) @@
830
        $result = $this->_mongoCollection->insert($document);
831
832
        // if write concern acknowledged
833
        if(is_array($result)) {
834
            if($result['ok'] != 1) {
835
                throw new Exception('Insert error: ' . $result['err'] . ': ' . $result['errmsg']);
836
            }
837
838
            return $this;
839
        }
840
841
        // if write concern unacknowledged
842
        if(!$result) {