Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMAbstractServiceTest.php 2 locations

@@ 476-483 (lines=8) @@
473
        ]);
474
    }
475
476
    protected static function insert(Connection $connection, string $tableName, array $data): void
477
    {
478
        $quotedData = [];
479
        foreach ($data as $id => $value) {
480
            $quotedData[$connection->quoteIdentifier($id)] = $value;
481
        }
482
        $connection->insert($connection->quoteIdentifier($tableName), $quotedData);
483
    }
484
485
    protected static function delete(Connection $connection, string $tableName, array $data): void
486
    {
@@ 485-492 (lines=8) @@
482
        $connection->insert($connection->quoteIdentifier($tableName), $quotedData);
483
    }
484
485
    protected static function delete(Connection $connection, string $tableName, array $data): void
486
    {
487
        $quotedData = [];
488
        foreach ($data as $id => $value) {
489
            $quotedData[$connection->quoteIdentifier($id)] = $value;
490
        }
491
        $connection->delete($connection->quoteIdentifier($tableName), $quotedData);
492
    }
493
}
494