Code Duplication    Length = 11-11 lines in 2 locations

src/Repository/AbstractDoctrineRepository.php 2 locations

@@ 258-268 (lines=11) @@
255
     * @param string $id
256
     * @param array  $row
257
     */
258
    protected function insert(string $id, array $row)
259
    {
260
        $table = $this->getTable();
261
262
        $this->logger->info(
263
            'model: insert row into table {table} with id {id}',
264
            ['table' => $table, 'id' => $id]
265
        );
266
267
        $this->connection->insert($table, $row);
268
    }
269
270
    /**
271
     * @param string $id
@@ 274-284 (lines=11) @@
271
     * @param string $id
272
     * @param array  $row
273
     */
274
    protected function update(string $id, array $row)
275
    {
276
        $table = $this->getTable();
277
278
        $this->logger->info(
279
            'model: update row into table {table} with id {id}',
280
            ['table' => $table, 'id' => $id]
281
        );
282
283
        $this->connection->update($table, $row, ['id' => $id]);
284
    }
285
286
    /**
287
     * @param ModelCollectionInterface $modelCollection