Completed
Pull Request — master (#305)
by Luc
05:25
created
src/Label/ReadModels/Relations/Repository/Doctrine/DBALWriteRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
     ) {
48 48
         $queryBuilder = $this->createQueryBuilder()
49 49
             ->delete($this->getTableName())
50
-            ->where(SchemaConfigurator::LABEL_NAME . ' = ?')
51
-            ->andWhere(SchemaConfigurator::RELATION_ID . ' = ?')
50
+            ->where(SchemaConfigurator::LABEL_NAME.' = ?')
51
+            ->andWhere(SchemaConfigurator::RELATION_ID.' = ?')
52 52
             ->setParameters([$labelName->toNative(), $relationId->toNative()]);
53 53
 
54 54
         $this->executeTransactional($queryBuilder);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $queryBuilder = $this->createQueryBuilder()
63 63
             ->delete($this->getTableName())
64
-            ->where(SchemaConfigurator::RELATION_ID . ' = ?')
64
+            ->where(SchemaConfigurator::RELATION_ID.' = ?')
65 65
             ->setParameters([$relationId->toNative()]);
66 66
 
67 67
         $this->executeTransactional($queryBuilder);
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $queryBuilder = $this->createQueryBuilder()
76 76
             ->delete($this->getTableName())
77
-            ->where(SchemaConfigurator::RELATION_ID . ' = :relationId')
78
-            ->andWhere(SchemaConfigurator::IMPORTED . ' = :imported')
77
+            ->where(SchemaConfigurator::RELATION_ID.' = :relationId')
78
+            ->andWhere(SchemaConfigurator::IMPORTED.' = :imported')
79 79
             ->setParameters(
80 80
                 [
81 81
                     ':relationId' => $relationId->toNative(),
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     private function executeTransactional(QueryBuilder $queryBuilder)
93 93
     {
94
-        $this->getConnection()->transactional(function () use ($queryBuilder) {
94
+        $this->getConnection()->transactional(function() use ($queryBuilder) {
95 95
             $queryBuilder->execute();
96 96
         });
97 97
     }
Please login to merge, or discard this patch.