digipolisgent/robo-digipolis-deploy

View on GitHub
src/DatabaseRestore.php

Summary

Maintainability
A
1 hr
Test Coverage
B
88%

Method run has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function run()
    {
        try {
            /**
             * The backup manager
Severity: Minor
Found in src/DatabaseRestore.php - About 1 hr to fix

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

                throw new \InvalidArgumentException(sprintf(
    Severity: Minor
    Found in src/DatabaseRestore.php by phpmd

    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