Passed
Push — master ( ea0818...92b4a6 )
by Adrian
01:28
created
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/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.
src/Entity/GenericEntityHydrator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function hydrate(array $attributes = [])
33 33
     {
34 34
         $attributes = $this->castingManager
35
-                           ->castArray($attributes, $this->mapper->getCasts());
35
+                            ->castArray($attributes, $this->mapper->getCasts());
36 36
         $attributes = Arr::renameKeys($attributes, $this->mapper->getColumnAttributeMap());
37 37
         $class      = $this->mapper->getEntityClass() ?? GenericEntity::class;
38 38
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             array_flip($this->mapper->getColumnAttributeMap())
47 47
         );
48 48
         $data = $this->castingManager
49
-                     ->castArrayForDb($data, $this->mapper->getCasts());
49
+                        ->castArrayForDb($data, $this->mapper->getCasts());
50 50
 
51 51
         return Arr::only($data, $this->mapper->getColumns());
52 52
     }
Please login to merge, or discard this patch.
src/Action/Update.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
         if (count($columns) > 0) {
56 56
             $updateSql = new \Sirius\Sql\Update($connection);
57 57
             $updateSql->table($this->mapper->getTable())
58
-                      ->columns($columns)
59
-                      ->whereAll($conditions, false);
58
+                        ->columns($columns)
59
+                        ->whereAll($conditions, false);
60 60
             $updateSql->perform();
61 61
         }
62 62
     }
Please login to merge, or discard this patch.