autowp/autowp

View on GitHub
module/Application/src/Most/Adapter/Attr.php

Summary

Maintainability
A
1 hr
Test Coverage
B
81%

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

    public function getCars(Sql\Select $select, string $language): array
    {
        $attribute = currentFromResultSetInterface($this->attributeTable->select(['id' => $this->attribute]));
        if (! $attribute) {
            throw new Exception("Attribute '$this->attribute' not found");
Severity: Minor
Found in module/Application/src/Most/Adapter/Attr.php - About 1 hr to fix

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

        protected int $attribute;

    There are no issues that match your filters.

    Category
    Status