Passed
Push — dev_2x ( 1e248d...fedccd )
by Adrian
01:40
created
src/Action/Insert.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
         $insertSql = new \Sirius\Sql\Insert($connection);
31 31
         $insertSql->into($this->mapper->getConfig()->getTable())
32
-                  ->columns($columns);
32
+                    ->columns($columns);
33 33
         $insertSql->perform();
34 34
 
35 35
         /**
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
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
 
24 24
         $update = new \Sirius\Sql\Update($this->mapper->getWriteConnection());
25 25
         $update->table($this->mapper->getConfig()->getTable())
26
-               ->columns([
27
-                   $this->getOption('deleted_at_column') => $this->now
28
-               ])
29
-               ->where('id', $entityId);
26
+                ->columns([
27
+                    $this->getOption('deleted_at_column') => $this->now
28
+                ])
29
+                ->where('id', $entityId);
30 30
         $update->perform();
31 31
     }
32 32
 
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
@@ -122,8 +122,8 @@
 block discarded – undo
122 122
 
123 123
         $insert = new \Sirius\Sql\Insert($conn);
124 124
         $insert->into($throughTable)
125
-               ->columns($insertColumns)
126
-               ->perform();
125
+                ->columns($insertColumns)
126
+                ->perform();
127 127
     }
128 128
 
129 129
     protected function getNativeEntityHydrator()
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
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
         if (count($columns) > 0) {
55 55
             $updateSql = new \Sirius\Sql\Update($connection);
56 56
             $updateSql->table($this->mapper->getConfig()->getTable())
57
-                      ->columns($columns)
58
-                      ->whereAll($conditions, false);
57
+                        ->columns($columns)
58
+                        ->whereAll($conditions, false);
59 59
             $updateSql->perform();
60 60
         }
61 61
     }
Please login to merge, or discard this patch.
src/CodeGenerator/QueryBaseGenerator.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
     private function addFirstMethod()
65 65
     {
66 66
         $method = $this->class->addMethod('first')
67
-                              ->setReturnNullable(true)
68
-                              ->setReturnType($this->mapper->getEntityClass());
67
+                                ->setReturnNullable(true)
68
+                                ->setReturnType($this->mapper->getEntityClass());
69 69
         $method->setBody('return parent::first();');
70 70
     }
71 71
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $this->namespace->addUse(Collection::class);
75 75
         $method = $this->class->addMethod('get')
76
-                              ->setReturnType('Collection');
76
+                                ->setReturnType('Collection');
77 77
         $method->setBody('return parent::get();');
78 78
         $method->addComment(sprintf('@return Collection|%s[]', $this->mapper->getEntityClass()));
79 79
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $this->namespace->addUse(PaginatedCollection::class);
84 84
         $method = $this->class->addMethod('paginate')
85
-                              ->setReturnType('PaginatedCollection');
85
+                                ->setReturnType('PaginatedCollection');
86 86
         $method->addParameter('perPage')->setType('int');
87 87
         $method->addParameter('page', 1)->setType('int');
88 88
         $method->setBody('return parent::paginate($perPage, $page);');
Please login to merge, or discard this patch.
src/Relation/OneToMany.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     public function joinSubselect(Query $query, string $reference)
49 49
     {
50 50
         $subselect = $query->subSelectForJoinWith($this->foreignMapper)
51
-                           ->as($reference);
51
+                            ->as($reference);
52 52
 
53 53
         $subselect = $this->applyQueryCallback($subselect);
54 54
 
Please login to merge, or discard this patch.
src/Relation/ManyToMany.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             ->newQuery();
59 59
 
60 60
         $query = $this->joinWithThroughTable($query)
61
-                      ->where($this->options[RelationConfig::THROUGH_NATIVE_COLUMN], $nativePks);
61
+                        ->where($this->options[RelationConfig::THROUGH_NATIVE_COLUMN], $nativePks);
62 62
 
63 63
         $query = $this->applyQueryCallback($query);
64 64
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     {
111 111
         $subselect = $this->foreignMapper->newQuery();
112 112
         $subselect = $query->subSelectForJoinWith($this->foreignMapper)
113
-                           ->as($reference);
113
+                            ->as($reference);
114 114
         #$subselect->resetGuards();
115 115
         #$subselect->setGuards($this->foreignMapper->getConfig()->getGuards());
116 116
 
Please login to merge, or discard this patch.
src/CodeGenerator/ClassGenerator.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
         return [
73 73
             'path'     => $mapper->getDestination() . $class->getName() . '.php',
74 74
             'contents' => $this->classPrinter->printFile($file)
75
-                          . PHP_EOL
76
-                          . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
77
-                          . $this->classPrinter->printClass($class)
75
+                            . PHP_EOL
76
+                            . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
77
+                            . $this->classPrinter->printClass($class)
78 78
         ];
79 79
     }
80 80
 
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
         return [
94 94
             'path'     => $mapper->getDestination() . $class->getName() . '.php',
95 95
             'contents' => $this->classPrinter->printFile($file)
96
-                          . PHP_EOL
97
-                          . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
98
-                          . $this->classPrinter->printClass($class)
96
+                            . PHP_EOL
97
+                            . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
98
+                            . $this->classPrinter->printClass($class)
99 99
         ];
100 100
 
101 101
     }
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
         return [
111 111
             'path'     => $mapper->getDestination() . $class->getName() . '.php',
112 112
             'contents' => $this->classPrinter->printFile($file)
113
-                          . PHP_EOL
114
-                          . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
115
-                          . $this->classPrinter->printClass($class)
113
+                            . PHP_EOL
114
+                            . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
115
+                            . $this->classPrinter->printClass($class)
116 116
         ];
117 117
     }
118 118
 
@@ -132,9 +132,9 @@  discard block
 block discarded – undo
132 132
         return [
133 133
             'path'     => $mapper->getDestination() . $class->getName() . '.php',
134 134
             'contents' => $this->classPrinter->printFile($file)
135
-                          . PHP_EOL
136
-                          . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
137
-                          . $this->classPrinter->printClass($class)
135
+                            . PHP_EOL
136
+                            . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
137
+                            . $this->classPrinter->printClass($class)
138 138
         ];
139 139
     }
140 140
 
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
         return [
153 153
             'path'     => $mapper->getEntityDestination() . $class->getName() . '.php',
154 154
             'contents' => $this->classPrinter->printFile($file)
155
-                          . PHP_EOL
156
-                          . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
157
-                          . $this->classPrinter->printClass($class)
155
+                            . PHP_EOL
156
+                            . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
157
+                            . $this->classPrinter->printClass($class)
158 158
         ];
159 159
     }
160 160
 
@@ -174,9 +174,9 @@  discard block
 block discarded – undo
174 174
         return [
175 175
             'path'     => $mapper->getEntityDestination() . $class->getName() . '.php',
176 176
             'contents' => $this->classPrinter->printFile($file)
177
-                          . PHP_EOL
178
-                          . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
179
-                          . $this->classPrinter->printClass($class)
177
+                            . PHP_EOL
178
+                            . ($class->getNamespace() ? $this->classPrinter->printNamespace($class->getNamespace()) : '')
179
+                            . $this->classPrinter->printClass($class)
180 180
         ];
181 181
 
182 182
     }
Please login to merge, or discard this patch.
src/Relation/ManyToOne.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     public function joinSubselect(Query $query, string $reference)
49 49
     {
50 50
         $subselect = $query->subSelectForJoinWith($this->foreignMapper)
51
-                           ->as($reference);
51
+                            ->as($reference);
52 52
 
53 53
         $subselect = $this->applyQueryCallback($subselect);
54 54
 
Please login to merge, or discard this patch.