sugared-rim/php-cs-fixer

View on GitHub

Showing 10 of 10 total issues

Missing class import via use statement (line '15', column '31').
Open

        $this->defaults = new \stdClass();
Severity: Minor
Found in src/ConfigFactory.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 '13', column '29').
Open

        $config->path = new \stdClass();
Severity: Minor
Found in src/DefaultPreset.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 '9', column '23').
Open

        $config = new \stdClass();
Severity: Minor
Found in src/DefaultPreset.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

Line exceeds 120 characters; contains 142 characters
Open

            new InputOption('path-mode', '', InputOption::VALUE_REQUIRED, 'Specify path mode (can be override or intersection).', 'override'),

Line exceeds 120 characters; contains 135 characters
Open

            new InputOption('diff', '', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Also produce diff for each file.'),

Line exceeds 120 characters; contains 137 characters
Open

            new InputOption('namespace', null, InputOption::VALUE_REQUIRED, 'composer.json/extra namespace', 'sugared-rim/php-cs-fixer'),

Line exceeds 120 characters; contains 154 characters
Open

            new InputOption('dry-run', '', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Only shows which files would have been modified.'),

Line exceeds 120 characters; contains 125 characters
Open

            new InputOption('using-cache', '', InputOption::VALUE_REQUIRED, 'Does cache should be used (can be yes or no).'),

Line exceeds 120 characters; contains 160 characters
Open

            new InputOption('show-progress', '', InputOption::VALUE_REQUIRED, 'Type of progress indicator (none, run-in, estimating, estimating-max or dots).'),

Line exceeds 120 characters; contains 124 characters
Open

            new InputOption('allow-risky', '', InputOption::VALUE_REQUIRED, 'Are risky fixers allowed (can be yes or no).'),
Severity
Category
Status
Source
Language