| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
||
| 37 | $schema = $schemaClosure(); |
||
| 38 | |||
| 39 | $table = $schema->getTable('facerecog_faces'); |
||
| 40 | if ($table->hasColumn('width') && $table->hasColumn('left')) { |
||
| 41 | $table->dropColumn('left'); |
||
| 42 | $table->dropColumn('top'); |
||
| 43 | $table->dropColumn('right'); |
||
| 44 | $table->dropColumn('bottom'); |
||
| 45 | } |
||
| 46 | return $schema; |
||
| 47 | } |
||
| 58 |