Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | 4 | protected function resolveNestedRelation($property) |
|
13 | { |
||
14 | 4 | return collect(explode('.', $property)) |
|
15 | 4 | ->pipe( |
|
16 | 4 | function (Collection $parts) { |
|
17 | return [ |
||
18 | 4 | $parts->except(count($parts) - 1) |
|
19 | 4 | ->map(function (string $value): string { |
|
20 | 4 | return Str::class->camel($value); |
|
|
|||
21 | })->implode('.'), |
||
28 |