integer-net/magento2-rewritemap

View on GitHub

Showing 6 of 6 total issues

Avoid excessively long variable names like $rewriteMapsSavingService. Keep variable name length under 20.
Open

    private $rewriteMapsSavingService;
Severity: Minor
Found in src/Cron/GenerateRewriteMaps.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $rewriteCollectionFactory. Keep variable name length under 20.
Open

    private $rewriteCollectionFactory;
Severity: Minor
Found in src/Model/RewriteMapRepository.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $rewriteMapFileContent. Keep variable name length under 20.
Open

    private $rewriteMapFileContent;
Severity: Minor
Found in src/Model/RewriteMap.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $rewriteCollectionFactory. Keep variable name length under 20.
Open

    public function __construct(UrlRewriteCollectionFactory $rewriteCollectionFactory)
Severity: Minor
Found in src/Model/RewriteMapRepository.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $rewriteMapsSavingService. Keep variable name length under 20.
Open

        RewriteMapsSavingService $rewriteMapsSavingService,
Severity: Minor
Found in src/Cron/GenerateRewriteMaps.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Possibly zero references to use statement for classlike/namespace UrlRewriteCollection (\Magento\UrlRewrite\Model\ResourceModel\UrlRewriteCollection)
Open

use Magento\UrlRewrite\Model\ResourceModel\UrlRewriteCollection as UrlRewriteCollection;
Severity: Minor
Found in src/Model/RewriteMapRepository.php by phan
Severity
Category
Status
Source
Language