Passed
Pull Request — master (#26)
by butschster
02:08
created
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.
src/Relation/Morphed/MorphedHasOne.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
         // create target outer field
64 64
         foreach ($this->getFields($source, Relation::INNER_KEY) as $field) {
65
-            foreach ((array)$this->options->get(Relation::OUTER_KEY) as $outerField) {
65
+            foreach ((array) $this->options->get(Relation::OUTER_KEY) as $outerField) {
66 66
                 $this->ensureField(
67 67
                     $target,
68 68
                     $outerField,
Please login to merge, or discard this patch.
src/Relation/BelongsTo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
         // create target outer field
64 64
         foreach ($this->getFields($target, Relation::OUTER_KEY) as $field) {
65
-            foreach ((array)$this->options->get(Relation::INNER_KEY) as $key) {
65
+            foreach ((array) $this->options->get(Relation::INNER_KEY) as $key) {
66 66
                 $this->ensureField(
67 67
                     $source,
68 68
                     $key,
Please login to merge, or discard this patch.
src/Relation/Traits/FieldTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     protected function getFields(Entity $entity, int $field): FieldMap
53 53
     {
54 54
         $fields = new FieldMap();
55
-        $keys = (array)$this->getOptions()->get($field);
55
+        $keys = (array) $this->getOptions()->get($field);
56 56
 
57 57
         foreach ($keys as $key) {
58 58
             try {
Please login to merge, or discard this patch.
src/Relation/Morphed/MorphedHasMany.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
         // create target outer field
64 64
         foreach ($this->getFields($source, Relation::INNER_KEY) as $field) {
65
-            foreach ((array)$this->options->get(Relation::OUTER_KEY) as $outerField) {
65
+            foreach ((array) $this->options->get(Relation::OUTER_KEY) as $outerField) {
66 66
                 $this->ensureField(
67 67
                     $target,
68 68
                     $outerField,
Please login to merge, or discard this patch.
src/Relation/HasOne.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
         // create target outer field
64 64
         foreach ($this->getFields($source, Relation::INNER_KEY) as $field) {
65
-            foreach ((array)$this->options->get(Relation::OUTER_KEY) as $outerField) {
65
+            foreach ((array) $this->options->get(Relation::OUTER_KEY) as $outerField) {
66 66
                 $this->ensureField(
67 67
                     $target,
68 68
                     $outerField,
Please login to merge, or discard this patch.
src/Relation/RefersTo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
         // create target outer field
64 64
         foreach ($this->getFields($target, Relation::OUTER_KEY) as $field) {
65
-            foreach ((array)$this->options->get(Relation::INNER_KEY) as $innerField) {
65
+            foreach ((array) $this->options->get(Relation::INNER_KEY) as $innerField) {
66 66
                 $this->ensureField(
67 67
                     $source,
68 68
                     $innerField,
Please login to merge, or discard this patch.
src/Relation/ManyToMany.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         }
102 102
 
103 103
         foreach ($this->getFields($source, Relation::INNER_KEY) as $field) {
104
-            foreach ((array)$this->options->get(Relation::THROUGH_INNER_KEY) as $innerField) {
104
+            foreach ((array) $this->options->get(Relation::THROUGH_INNER_KEY) as $innerField) {
105 105
                 $this->ensureField(
106 106
                     $through,
107 107
                     $innerField,
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         }
113 113
 
114 114
         foreach ($this->getFields($source, Relation::OUTER_KEY) as $field) {
115
-            foreach ((array)$this->options->get(Relation::THROUGH_OUTER_KEY) as $outerField) {
115
+            foreach ((array) $this->options->get(Relation::THROUGH_OUTER_KEY) as $outerField) {
116 116
                 $this->ensureField(
117 117
                     $through,
118 118
                     $outerField,
Please login to merge, or discard this patch.
src/Relation/OptionSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
         $name = "{{$name}}";
193 193
         $replace = $this->get($option);
194 194
         if (is_array($replace)) {
195
-            return implode('|', array_map(static function (string $replace) use ($name, $target) {
195
+            return implode('|', array_map(static function(string $replace) use ($name, $target) {
196 196
                 return str_replace($name, $replace, $target);
197 197
             }, $replace));
198 198
         }
Please login to merge, or discard this patch.