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/mod_link/models/Map/PageLinkTableMap.php 1 location

@@ 211-218 (lines=8) @@
208
     *
209
     * @return mixed The primary key of the row
210
     */
211
    public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
212
    {
213
        return (int) $row[
214
            $indexType == TableMap::TYPE_NUM
215
                ? 0 + $offset
216
                : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)
217
        ];
218
    }
219
220
    /**
221
     * The class that the tableMap will make instances of.