Completed
Push — master ( a7b476...58257b )
by Adrian
01:51
created
src/Action/Update.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
         if (count($columns) > 0) {
48 48
             $updateSql = new \Sirius\Sql\Update($connection);
49 49
             $updateSql->table($this->mapper->getTable())
50
-                      ->columns($columns)
51
-                      ->where($this->mapper->getPrimaryKey(), $this->entity->getPk());
50
+                        ->columns($columns)
51
+                        ->where($this->mapper->getPrimaryKey(), $this->entity->getPk());
52 52
             $updateSql->perform();
53 53
         }
54 54
     }
Please login to merge, or discard this patch.
src/Action/Insert.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
         $insertSql = new \Sirius\Sql\Insert($connection);
30 30
         $insertSql->into($this->mapper->getTable())
31
-                  ->columns($columns);
31
+                    ->columns($columns);
32 32
         $insertSql->perform();
33 33
         $this->entity->setPk($connection->lastInsertId());
34 34
     }
Please login to merge, or discard this patch.
src/Action/Delete.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
         $delete = new \Sirius\Sql\Delete($this->mapper->getWriteConnection());
21 21
         $delete->from($this->mapper->getTable())
22
-               ->where('id', $entityId);
22
+                ->where('id', $entityId);
23 23
         $delete->perform();
24 24
     }
25 25
 
Please login to merge, or discard this patch.
src/Action/SoftDelete.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
 
22 22
         $update = new \Sirius\Sql\Update($this->mapper->getWriteConnection());
23 23
         $update->table($this->mapper->getTable())
24
-               ->columns([
25
-                   $this->getOption('deleted_at_column') => $this->now
26
-               ])
27
-               ->where('id', $entityId);
24
+                ->columns([
25
+                    $this->getOption('deleted_at_column') => $this->now
26
+                ])
27
+                ->where('id', $entityId);
28 28
         $update->perform();
29 29
     }
30 30
 
Please login to merge, or discard this patch.
src/Action/AttachEntities.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 
84 84
         $insert = new \Sirius\Sql\Insert($conn);
85 85
         $insert->into($throughTable)
86
-               ->columns($insertColumns)
87
-               ->perform();
86
+                ->columns($insertColumns)
87
+                ->perform();
88 88
     }
89 89
 }
Please login to merge, or discard this patch.
src/Relation/OneToMany.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@
 block discarded – undo
47 47
     {
48 48
         $tableRef = $this->foreignMapper->getTableAlias(true);
49 49
         $subselect = $query->subSelectForJoinWith()
50
-                           ->columns($this->foreignMapper->getTable() . '.*')
51
-                           ->from($this->foreignMapper->getTable())
52
-                           ->as($reference);
50
+                            ->columns($this->foreignMapper->getTable() . '.*')
51
+                            ->from($this->foreignMapper->getTable())
52
+                            ->as($reference);
53 53
 
54 54
         $subselect = $this->applyQueryCallback($subselect);
55 55
 
Please login to merge, or discard this patch.
src/Relation/ManyToOne.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
     {
30 30
         $tableRef = $this->foreignMapper->getTableAlias(true);
31 31
         $subselect = $query->subSelectForJoinWith()
32
-                           ->from($this->foreignMapper->getTable())
33
-                           ->columns($this->foreignMapper->getTable() . '.*')
34
-                           ->as($reference);
32
+                            ->from($this->foreignMapper->getTable())
33
+                            ->columns($this->foreignMapper->getTable() . '.*')
34
+                            ->as($reference);
35 35
 
36 36
         $subselect = $this->applyQueryCallback($subselect);
37 37
 
Please login to merge, or discard this patch.
src/Relation/ManyToMany.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             ->newQuery();
58 58
 
59 59
         $query = $this->joinWithThroughTable($query)
60
-                      ->where($this->options[RelationConfig::THROUGH_NATIVE_COLUMN], $nativePks);
60
+                        ->where($this->options[RelationConfig::THROUGH_NATIVE_COLUMN], $nativePks);
61 61
 
62 62
         $query = $this->applyQueryCallback($query);
63 63
 
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
     {
111 111
         $tableRef  = $this->foreignMapper->getTableAlias(true);
112 112
         $subselect = $query->subSelectForJoinWith()
113
-                           ->from($this->foreignMapper->getTable())
114
-                           ->columns($this->foreignMapper->getTable() . '.*')
115
-                           ->as($reference);
113
+                            ->from($this->foreignMapper->getTable())
114
+                            ->columns($this->foreignMapper->getTable() . '.*')
115
+                            ->as($reference);
116 116
 
117 117
         $subselect = $this->joinWithThroughTable($subselect);
118 118
 
Please login to merge, or discard this patch.