digipolisgent/drupal-copy-profile

View on GitHub
src/Handler.php

Summary

Maintainability
A
1 hr
Test Coverage

Method getRecursiveIteratorIterator has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function getRecursiveIteratorIterator($exclude = [])
    {
        /**
         * Filters based on the given $exclude array, filters out directories with
         * the names in that array.
Severity: Minor
Found in src/Handler.php - About 1 hr to fix

    Missing class import via use statement (line '264', column '30').
    Open

            $innerIterator = new \RecursiveDirectoryIterator(
    Severity: Minor
    Found in src/Handler.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

    Missing class import via use statement (line '270', column '17').
    Open

                new \RecursiveCallbackFilterIterator($innerIterator, $filter),
    Severity: Minor
    Found in src/Handler.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

    Missing class import via use statement (line '269', column '25').
    Open

            $iterator = new \RecursiveIteratorIterator(
    Severity: Minor
    Found in src/Handler.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