Passed
Push — develop ( 4f6606...79afb5 )
by nguereza
10:52
created
src/Repository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
 
156 156
         if ($this->offset >= 0 && $this->limit >= 0) {
157 157
             $query->offset($this->offset)
158
-                  ->limit($this->limit);
158
+                    ->limit($this->limit);
159 159
 
160 160
             $this->offset = -1;
161 161
             $this->limit = 0;
Please login to merge, or discard this patch.
src/Relation/ShareRelation.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -98,12 +98,12 @@  discard block
 block discarded – undo
98 98
     }
99 99
 
100 100
         /**
101
-     *
102
-     * @param DataMapper<TEntity> $mapper
103
-     * @param TEntity $entity
104
-     *
105
-     * @return bool
106
-     */
101
+         *
102
+         * @param DataMapper<TEntity> $mapper
103
+         * @param TEntity $entity
104
+         *
105
+         * @return bool
106
+         */
107 107
     public function link(DataMapper $mapper, Entity $entity): bool
108 108
     {
109 109
         $manager = $mapper->getEntityManager();
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
             }
385 385
         });
386 386
 
387
-         $foreignKeys = $this->foreignKey->getValue($mapper->getRawColumns(), true);
387
+            $foreignKeys = $this->foreignKey->getValue($mapper->getRawColumns(), true);
388 388
         if (is_array($foreignKeys)) {
389 389
             foreach ($foreignKeys as $fkColumn => $value) {
390 390
                 $select->where($junctionTable . '.' . $fkColumn)->is($value);
Please login to merge, or discard this patch.
src/Entity.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -199,9 +199,9 @@
 block discarded – undo
199 199
     }
200 200
 
201 201
         /**
202
-     * Map the entity information
203
-     * @param EntityMapperInterface<TEntity> $mapper
204
-     */
202
+         * Map the entity information
203
+         * @param EntityMapperInterface<TEntity> $mapper
204
+         */
205 205
     abstract public static function mapEntity(EntityMapperInterface $mapper): void;
206 206
 
207 207
     /**
Please login to merge, or discard this patch.
src/Query/EntityQuery.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
     public function get(array $columns = [], bool $primaryColumn = true): ?Entity
149 149
     {
150 150
         $result = $this->query($columns, $primaryColumn)
151
-                       ->fetchAssoc()
152
-                       ->get();
151
+                        ->fetchAssoc()
152
+                        ->get();
153 153
 
154 154
         if ($result === false) {
155 155
             return null;
@@ -298,11 +298,11 @@  discard block
 block discarded – undo
298 298
     }
299 299
 
300 300
 /**
301
-     * Find entities record using primary key values
302
-     * @param mixed ...$ids
303
-     *
304
-     * @return TEntity[]
305
-     */
301
+ * Find entities record using primary key values
302
+ * @param mixed ...$ids
303
+ *
304
+ * @return TEntity[]
305
+ */
306 306
     public function findAll(mixed ...$ids): array
307 307
     {
308 308
         if (is_array($ids[0])) {
@@ -543,6 +543,6 @@  discard block
 block discarded – undo
543 543
     protected function transaction(Closure $callback): mixed
544 544
     {
545 545
         return $this->manager->getConnection()
546
-                             ->transaction($callback);
546
+                                ->transaction($callback);
547 547
     }
548 548
 }
Please login to merge, or discard this patch.
src/Mapper/DataMapper.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -317,9 +317,9 @@  discard block
 block discarded – undo
317 317
         }
318 318
     }
319 319
 
320
-     /**
321
-     * {@inheritedoc}
322
-     */
320
+        /**
321
+         * {@inheritedoc}
322
+         */
323 323
     public function hasColumn(string $column): bool
324 324
     {
325 325
         return array_key_exists($column, $this->columns)
@@ -352,9 +352,9 @@  discard block
 block discarded – undo
352 352
         $this->rawColumns[$name] = $value;
353 353
     }
354 354
 
355
-     /**
356
-     * {@inheritedoc}
357
-     */
355
+        /**
356
+         * {@inheritedoc}
357
+         */
358 358
     public function getRelated(string $name, callable $callback = null): mixed
359 359
     {
360 360
         if (array_key_exists($name, $this->relations)) {
Please login to merge, or discard this patch.
src/Mapper/EntityMapper.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -221,10 +221,10 @@  discard block
 block discarded – undo
221 221
         return $this;
222 222
     }
223 223
 
224
-     /**
225
-     * {@inheritedoc}
226
-     * @return EntityMapper<TEntity>
227
-     */
224
+        /**
225
+         * {@inheritedoc}
226
+         * @return EntityMapper<TEntity>
227
+         */
228 228
     public function sequence(string $sequence): self
229 229
     {
230 230
         $this->sequence = $sequence;
@@ -254,10 +254,10 @@  discard block
 block discarded – undo
254 254
         return $this;
255 255
     }
256 256
 
257
-     /**
258
-     * {@inheritedoc}
259
-     * @return EntityMapper<TEntity>
260
-     */
257
+        /**
258
+         * {@inheritedoc}
259
+         * @return EntityMapper<TEntity>
260
+         */
261 261
     public function guarded(array $columns): self
262 262
     {
263 263
         $this->guarded = $columns;
Please login to merge, or discard this patch.