Code Duplication    Length = 8-8 lines in 3 locations

app/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.

app/Models/User/Map/UserTableMap.php 1 location

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

packages/Price/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.