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