Passed
Push — master ( db9b0d...c21dcb )
by Jonas
02:23
created
src/HasRelationships.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
      */
99 99
     protected function hasOneOrManyDeepThroughParents(array $through)
100 100
     {
101
-        return array_map(function ($class) {
101
+        return array_map(function($class) {
102 102
             $segments = preg_split('/\s+(as|from)\s+/i', $class, -1, PREG_SPLIT_DELIM_CAPTURE);
103 103
 
104 104
             $instance = Str::contains($segments[0], '\\')
Please login to merge, or discard this patch.
src/ConcatenatesRelationships.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 $related = get_class($relation->getRelated());
41 41
 
42 42
                 if ((new $related())->getTable() !== $relation->getRelated()->getTable()) {
43
-                    $related .= ' from ' . $relation->getRelated()->getTable();
43
+                    $related .= ' from '.$relation->getRelated()->getTable();
44 44
                 }
45 45
             } else {
46 46
                 $through[] = $this->hasOneOrManyThroughParent($relation, $relations[$i + 1]);
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
         $through = get_class($relation->getRelated());
250 250
 
251 251
         if ((new $through())->getTable() !== $relation->getRelated()->getTable()) {
252
-            $through .= ' from ' . $relation->getRelated()->getTable();
252
+            $through .= ' from '.$relation->getRelated()->getTable();
253 253
         }
254 254
 
255 255
         if (get_class($relation->getRelated()) === get_class($successor->getParent())) {
Please login to merge, or discard this patch.