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