Completed
Push — master ( 492ee7...d2cdf4 )
by Dmitry
03:51 queued 02:25
created
src/Rutorika/Sortable/MorphToSortedManyTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         // instances, as well as the relationship instances we need for these.
42 42
         $instance = $this->newRelatedInstance($related);
43 43
 
44
-        $foreignPivotKey = $foreignPivotKey ?: $name . '_id';
44
+        $foreignPivotKey = $foreignPivotKey ?: $name.'_id';
45 45
 
46 46
         $relatedPivotKey = $relatedPivotKey ?: $instance->getForeignKey();
47 47
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         // For the inverse of the polymorphic many-to-many relations, we will change
80 80
         // the way we determine the foreign and other keys, as it is the opposite
81 81
         // of the morph-to-many method since we're figuring out these inverses.
82
-        $relatedPivotKey = $relatedPivotKey ?: $name . '_id';
82
+        $relatedPivotKey = $relatedPivotKey ?: $name.'_id';
83 83
 
84 84
         return $this->morphToSortedMany(
85 85
             $related, $name, $orderColumn, $table, $foreignPivotKey,
Please login to merge, or discard this patch.