mheinzerling/php-databaseutils

View on GitHub
src/structure/index/LazyForeignKey.php

Summary

Maintainability
A
50 mins
Test Coverage

Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function __construct(string $tableName, array $fieldNames, string $name = null, string $referenceTableName, array $referenceFields, ReferenceOption $onUpdate, ReferenceOption $onDelete)
Severity: Major
Found in src/structure/index/LazyForeignKey.php - About 50 mins to fix

    Missing class import via use statement (line '59', column '23').
    Open

                throw new \Exception("Tried to merge unrelated lazy foreign keys");

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    There are no issues that match your filters.

    Category
    Status