Completed
Pull Request — master (#219)
by Christopher
17:20 queued 05:52
created
src/Models/MetadataRelationsTrait.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,8 +187,7 @@
 block discarded – undo
187 187
             $keyName = $this->polyglotFkKey($relation);
188 188
             $localName = $this->polyglotRkKey($relation);
189 189
             $thruName = $relation instanceof HasManyThrough ?
190
-                $this->polyglotThroughKey($relation) :
191
-                null;
190
+                $this->polyglotThroughKey($relation) : null;
192 191
 
193 192
             $first = $keyName;
194 193
             $last = $localName;
Please login to merge, or discard this patch.
src/Models/MetadataKeyMethodNamesTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         switch (true) {
24 24
             case $rel instanceof BelongsTo:
25
-                $key =  $rel->{$this->checkMethodNameList($rel, ['getForeignKeyName', 'getForeignKey'])}();
25
+                $key = $rel->{$this->checkMethodNameList($rel, ['getForeignKeyName', 'getForeignKey'])}();
26 26
                 break;
27 27
             case $rel instanceof BelongsToMany:
28 28
                 $key = $rel->getForeignPivotKeyName();
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                 $key = $rel->getForeignKeyName();
32 32
                 break;
33 33
             case $rel instanceof HasManyThrough:
34
-                $key =  $rel->getQualifiedFarKeyName();
34
+                $key = $rel->getQualifiedFarKeyName();
35 35
                 break;
36 36
             default:
37 37
                 $msg = sprintf('Unknown Relationship Type %s', get_class($rel));
Please login to merge, or discard this patch.