@@ -100,7 +100,7 @@ |
||
100 | 100 | */ |
101 | 101 | protected function hasOneOrManyDeepThroughParents(array $through) |
102 | 102 | { |
103 | - return array_map(function ($class) { |
|
103 | + return array_map(function($class) { |
|
104 | 104 | $segments = preg_split('/\s+(as|from)\s+/i', $class, -1, PREG_SPLIT_DELIM_CAPTURE); |
105 | 105 | |
106 | 106 | $instance = str_contains($segments[0], '\\') |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | if ($throughParent instanceof Pivot) { |
51 | 51 | if (isset($segments[1])) { |
52 | - $class = $throughParent::class . " as $segments[1]"; |
|
52 | + $class = $throughParent::class." as $segments[1]"; |
|
53 | 53 | } else { |
54 | 54 | $class = $table; |
55 | 55 | } |