| Conditions | 4 |
| Paths | 4 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function postGenerateSchema(GenerateSchemaEventArgs $eventArgs): void |
||
| 16 | { |
||
| 17 | foreach ($eventArgs->getSchema()->getTables() as $table) { |
||
| 18 | foreach ($table->getColumns() as $column) { |
||
| 19 | $type = $column->getType(); |
||
| 20 | if ($type instanceof EnumType) { |
||
| 21 | $hash = md5($type->getQuotedPossibleValues()); |
||
|
|
|||
| 22 | $column->setComment("(FelixEnum:$hash)"); |
||
| 23 | } |
||
| 28 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.