Code Duplication    Length = 8-8 lines in 2 locations

src/eXpansion/Bundle/LocalRecords/Model/Map/RecordTableMap.php 1 location

@@ 248-255 (lines=8) @@
245
     *
246
     * @return mixed The primary key of the row
247
     */
248
    public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
249
    {
250
        return (int) $row[
251
            $indexType == TableMap::TYPE_NUM
252
                ? 0 + $offset
253
                : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)
254
        ];
255
    }
256
257
    /**
258
     * The class that the tableMap will make instances of.

src/eXpansion/Framework/PlayersBundle/Model/Map/PlayerTableMap.php 1 location

@@ 224-231 (lines=8) @@
221
     *
222
     * @return mixed The primary key of the row
223
     */
224
    public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
225
    {
226
        return (int) $row[
227
            $indexType == TableMap::TYPE_NUM
228
                ? 0 + $offset
229
                : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)
230
        ];
231
    }
232
233
    /**
234
     * The class that the tableMap will make instances of.