autowp/autowp

View on GitHub
module/Application/src/Model/Twins.php

Summary

Maintainability
A
1 hr
Test Coverage
F
20%

Method getBrands has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getBrands(array $options): array
    {
        $defaults = [
            'language' => 'en',
            'limit'    => null,
Severity: Minor
Found in module/Application/src/Model/Twins.php - About 1 hr to fix

    syntax error, unexpected 'Brand' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
    Open

        private Brand $brand;
    Severity: Critical
    Found in module/Application/src/Model/Twins.php by phan

    Opening brace should be on a new line
    Open

        public function __construct(Brand $brand) {

    There are no issues that match your filters.

    Category
    Status