Code Duplication    Length = 8-8 lines in 3 locations

packages/core/src/Models/Task/Map/TaskTableMap.php 1 location

@@ 186-193 (lines=8) @@
183
     *
184
     * @return mixed The primary key of the row
185
     */
186
    public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
187
    {
188
        return (int) $row[
189
            $indexType == TableMap::TYPE_NUM
190
                ? 0 + $offset
191
                : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)
192
        ];
193
    }
194
195
    /**
196
     * The class that the tableMap will make instances of.

packages/core/src/Models/User/Map/UserTableMap.php 1 location

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

packages/selfprice/src/Models/Selfprice/Map/SelfpriceTableMap.php 1 location

@@ 192-199 (lines=8) @@
189
     *
190
     * @return mixed The primary key of the row
191
     */
192
    public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
193
    {
194
        return (int) $row[
195
            $indexType == TableMap::TYPE_NUM
196
                ? 0 + $offset
197
                : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)
198
        ];
199
    }
200
201
    /**
202
     * The class that the tableMap will make instances of.