Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function generate(string $tableName, Column $column): string |
||
|
|||
20 | { |
||
21 | if (app(MigrationsGeneratorSetting::class)->isUseDBCollation()) { |
||
22 | $charset = $column->getPlatformOptions()['charset'] ?? null; |
||
23 | if ($charset != null) { |
||
24 | return $this->decorator->decorate( |
||
25 | ColumnModifier::CHARSET, |
||
26 | [$this->decorator->columnDefaultToString($charset)] |
||
27 | ); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | return ''; |
||
32 | } |
||
34 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.