owncloud/core

View on GitHub
apps/files_sharing/appinfo/Migrations/Version20170804201125.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method changeSchema has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function changeSchema(Schema $schema, array $options) {
        $prefix = $options['tablePrefix'];
        if (!$schema->hasTable("{$prefix}share_external")) {
            $table = $schema->createTable("{$prefix}share_external");
            $table->addColumn('id', 'bigint', [
Severity: Major
Found in apps/files_sharing/appinfo/Migrations/Version20170804201125.php - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status