Passed
Pull Request — master (#22)
by Aleksei
03:39
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
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     private function compareProperties(): bool
59 59
     {
60
-        $tuples = array_map(static function (Field $field): array {
60
+        $tuples = array_map(static function(Field $field): array {
61 61
             return [
62 62
                 $field->getType(),
63 63
                 // $field->isPrimary(), // should not compared
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     private function compareOptions(): bool
78 78
     {
79 79
         // Collect fields options
80
-        $optionsSet = array_map(static function (Field $field): array {
80
+        $optionsSet = array_map(static function(Field $field): array {
81 81
             return iterator_to_array($field->getOptions());
82 82
         }, $this->fields);
83 83
 
Please login to merge, or discard this patch.