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

src/Collection.php 2 locations

@@ 1118-1131 (lines=14) @@
1115
     * @param string $field
1116
     * @return \Sokil\Mongo\Collection
1117
     */
1118
    public function ensure2dSphereIndex($field)
1119
    {
1120
        if (is_array($field)) {
1121
            $keys = array_fill_keys($field, '2dsphere');
1122
        } else {
1123
            $keys = array(
1124
                $field => '2dsphere',
1125
            );
1126
        }
1127
1128
        $this->_mongoCollection->ensureIndex($keys);
1129
1130
        return $this;
1131
    }
1132
1133
    /**
1134
     * Create geo index 2dsphere
@@ 1141-1154 (lines=14) @@
1138
     * @param string $field
1139
     * @return \Sokil\Mongo\Collection
1140
     */
1141
    public function ensure2dIndex($field)
1142
    {
1143
        if (is_array($field)) {
1144
            $keys = array_fill_keys($field, '2d');
1145
        } else {
1146
            $keys = array(
1147
                $field => '2d',
1148
            );
1149
        }
1150
1151
        $this->_mongoCollection->ensureIndex($keys);
1152
1153
        return $this;
1154
    }
1155
1156
    /**
1157
     * Create fulltext index