| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 58.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | trait InteractsWithSchema |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param string $column |
||
| 17 | * @param Model $model |
||
| 18 | * |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | public function getColumnName($column, $model = null): string |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param array $columns |
||
| 28 | * @param Model $model |
||
| 29 | * |
||
| 30 | 22 | * @return array |
|
| 31 | */ |
||
| 32 | public function getColumnNames(array $columns, $model = null): array |
||
| 33 | 22 | { |
|
| 34 | 22 | return array_map(function ($column) use ($model) { |
|
| 35 | return $this->getColumnName($column, $model); |
||
| 36 | }, $columns); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param Model $model |
||
| 41 | * |
||
| 42 | 22 | * @return string |
|
| 43 | */ |
||
| 44 | 22 | public function getSchemaName($model = null): string |
|
| 55 | } |
||
| 56 | } |
||
| 57 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.