Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
42 | public function getSchemaName($model = null): string |
||
43 | { |
||
44 | $model = $model ?? $this->model; |
||
45 | |||
46 | if ($model instanceof Model) { |
||
47 | return $model->getTable(); |
||
48 | } elseif ($model instanceof EloquentBuilder) { |
||
49 | return $model->getModel()->getTable(); |
||
50 | } |
||
51 | |||
52 | return $model->from; |
||
53 | } |
||
55 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.