Passed
Pull Request — master (#26)
by Aleksei
02:07
created
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/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.
src/Definition/Map/FieldMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     public function getColumnNames(): array
47 47
     {
48
-        return array_values(array_map(static function (Field $field) {
48
+        return array_values(array_map(static function(Field $field) {
49 49
             return $field->getColumn();
50 50
         }, $this->fields));
51 51
     }
Please login to merge, or discard this patch.
src/Relation/Morphed/BelongsToMorphed.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             'target:primaryKey' => $outerKeys
73 73
         ]);
74 74
 
75
-        $outerKeys = array_combine($outerKeys, (array)$this->options->get(Relation::INNER_KEY));
75
+        $outerKeys = array_combine($outerKeys, (array) $this->options->get(Relation::INNER_KEY));
76 76
 
77 77
         // create target outer field
78 78
         foreach ($outerKeys as $key => $morphKey) {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             );
87 87
         }
88 88
 
89
-        foreach ((array)$this->options->get(Relation::MORPH_KEY) as $key) {
89
+        foreach ((array) $this->options->get(Relation::MORPH_KEY) as $key) {
90 90
             $this->ensureMorphField(
91 91
                 $source,
92 92
                 $key,
Please login to merge, or discard this patch.