Code Duplication    Length = 8-8 lines in 3 locations

application/modules/xbanners/models/Map/BannerImageTableMap.php 1 location

@@ 273-280 (lines=8) @@
270
     *
271
     * @return mixed The primary key of the row
272
     */
273
    public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
274
    {
275
        return (int) $row[
276
            $indexType == TableMap::TYPE_NUM
277
                ? 0 + $offset
278
                : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)
279
        ];
280
    }
281
282
    /**
283
     * The class that the tableMap will make instances of.

application/modules/xbanners/models/Map/BannersTableMap.php 1 location

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

application/modules/core/models/Map/RouteTableMap.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.