| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 21 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 18 | public function appendToDeepRelationship(array $through, array $foreignKeys, array $localKeys, int $position): array | ||
|  | |||
| 19 |     { | ||
| 20 |         foreach ($this->throughParents as $throughParent) { | ||
| 21 |             $segments = explode(' as ', $throughParent->getTable()); | ||
| 22 | |||
| 23 | $class = get_class($throughParent); | ||
| 24 | |||
| 25 |             if (isset($segments[1])) { | ||
| 26 | $class .= ' as '.$segments[1]; | ||
| 27 |             } elseif ($throughParent instanceof Pivot) { | ||
| 28 | $class = $throughParent->getTable(); | ||
| 29 | } | ||
| 30 | |||
| 31 | $through[] = $class; | ||
| 32 | } | ||
| 33 | |||
| 34 | $foreignKeys = array_merge($foreignKeys, $this->foreignKeys); | ||
| 35 | |||
| 36 | $localKeys = array_merge($localKeys, $this->localKeys); | ||
| 37 | |||
| 38 | return [$through, $foreignKeys, $localKeys]; | ||
| 39 | } | ||
| 41 | 
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.