Completed
Push — master ( c2ab20...6fd91f )
by Alex
14s queued 12s
created
src/Models/ModelReflectionHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $fileName = $method->getFileName();
35 35
 
36 36
         $file = new SplFileObject($fileName);
37
-        $file->seek($method->getStartLine() - 1);
37
+        $file->seek($method->getStartLine()-1);
38 38
         $code = '';
39 39
         while ($file->key() < $method->getEndLine()) {
40 40
             $code .= $file->current();
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
         $code = trim(preg_replace('/\s\s+/', '', $code));
45 45
         $begin = strpos($code, 'function(');
46
-        $code = substr($code, $begin, strrpos($code, '}') - $begin + 1);
46
+        $code = substr($code, $begin, strrpos($code, '}')-$begin+1);
47 47
         return $code;
48 48
     }
49 49
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 ) {
85 85
                     continue;
86 86
                 }
87
-                $relationships[]= $method;
87
+                $relationships[] = $method;
88 88
             }
89 89
         }
90 90
         return $relationships;
Please login to merge, or discard this patch.
src/Models/MetadataRelationsTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
     public function getRelationships()
36 36
     {
37 37
         return self::$relationNames = self::$relationNames ??
38
-                                      ModelReflectionHelper::getRelationshipsFromMethods(/** @scrutinizer ignore-type */$this);
38
+                                        ModelReflectionHelper::getRelationshipsFromMethods(/** @scrutinizer ignore-type */$this);
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Models/ObjectMap/Entities/Associations/AssociationStubFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -261,10 +261,10 @@
 block discarded – undo
261 261
 
262 262
     private static $fieldOrderCache = [
263 263
         'BelongsTo' => ['foreignKey', 'ownerKey'],
264
-        'BelongsToMany' => ['parentKey','foreignPivotKey','relatedPivotKey','relatedKey'],
265
-        'HasOneOrMany' => ['localKey', 'foreignKey' ],
264
+        'BelongsToMany' => ['parentKey', 'foreignPivotKey', 'relatedPivotKey', 'relatedKey'],
265
+        'HasOneOrMany' => ['localKey', 'foreignKey'],
266 266
         'HasManyThrough' => ['localKey', 'firstKey', 'secondLocalKey', 'secondKey'],
267
-        'MorphToMany' => ['parentKey','foreignPivotKey','morphType', 'relatedPivotKey','relatedKey'],
267
+        'MorphToMany' => ['parentKey', 'foreignPivotKey', 'morphType', 'relatedPivotKey', 'relatedKey'],
268 268
         'MorphTo' => ['foreignKey', 'morphType', 'ownerKey'],
269 269
         'MorphOneOrMany' => ['foreignKey', 'morphType', 'localKey'],
270 270
         'inverse' => ['inverse'], // TODO: currently used to get inverse, should be removed when morphtomany is fixed
Please login to merge, or discard this patch.
src/Models/MetadataTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@
 block discarded – undo
369 369
             $builder = $connect->getSchemaBuilder();
370 370
             $columns = $builder->getColumnListing($table);
371 371
 
372
-            self::$tableColumns = (array)$columns;
372
+            self::$tableColumns = (array) $columns;
373 373
         }
374 374
         return self::$tableColumns;
375 375
     }
Please login to merge, or discard this patch.