Passed
Pull Request — master (#20)
by Aleksei
03:14
created
src/Relation/Traits/ForeignKeyTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
         }
40 40
 
41 41
         $registry->getTableSchema($target)
42
-                 ->foreignKey([$outerField->getColumn()])
43
-                 ->references($registry->getTable($source), [$innerField->getColumn()])
44
-                 ->onUpdate($this->getOptions()->get(RelationSchema::FK_ACTION))
45
-                 ->onDelete($this->getOptions()->get(RelationSchema::FK_ACTION));
42
+                    ->foreignKey([$outerField->getColumn()])
43
+                    ->references($registry->getTable($source), [$innerField->getColumn()])
44
+                    ->onUpdate($this->getOptions()->get(RelationSchema::FK_ACTION))
45
+                    ->onDelete($this->getOptions()->get(RelationSchema::FK_ACTION));
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/Definition/Comparator/FieldComparator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     private function compareProperties(): bool
57 57
     {
58
-        $tuples = array_map(static function (Field $field): array {
58
+        $tuples = array_map(static function(Field $field): array {
59 59
             return [$field->getType(), $field->isPrimary()];
60 60
         }, $this->fields);
61 61
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     private function compareOptions(): bool
73 73
     {
74 74
         // Collect fields options
75
-        $optionsSet = array_map(static function (Field $field): array {
75
+        $optionsSet = array_map(static function(Field $field): array {
76 76
             return iterator_to_array($field->getOptions());
77 77
         }, $this->fields);
78 78
 
Please login to merge, or discard this patch.