rhosocial/yii2-base-models

View on GitHub

Showing 293 of 293 total issues

Expected 1 newline at end of file; 0 found
Open

}

Closing brace must be on a line by itself
Open

    ) {}
Severity: Minor
Found in traits/config/GUIDConfig.php by phpcodesniffer

Expected 1 newline at end of file; 0 found
Open

}
Severity: Minor
Found in traits/GUIDTrait.php by phpcodesniffer

Opening parenthesis of a multi-line function call must be the last content on the line
Open

            throw new InvalidConfigException

Line indented incorrectly; expected 4 spaces, found 8
Open

        public bool $idPreassigned = false,
Severity: Minor
Found in traits/config/IDConfig.php by phpcodesniffer

Closing parenthesis of a multi-line function call must be on a line by itself
Open

        $this->getOtherGuidRules());
Severity: Minor
Found in traits/UserRelationTrait.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $createdAtAttribute = 'created_at',

Expected 1 newline at end of file; 0 found
Open

}
Severity: Minor
Found in traits/MessageQueryTrait.php by phpcodesniffer

Expected 1 newline at end of file; 0 found
Open

}

Opening parenthesis of a multi-line function call must be the last content on the line
Open

                        throw new IntegrityException
Severity: Minor
Found in traits/RegistrationTrait.php by phpcodesniffer

Whitespace found at end of line
Open

 * 

The method composite_guid_strs is not named in camelCase.
Open

    public static function composite_guid_strs($guids): string
    {
        if (!is_array($guids) || empty($guids)) {
            return '';
        }
Severity: Minor
Found in traits/GUIDTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method divide_guid_strs is not named in camelCase.
Open

    public static function divide_guid_strs($guids): array
    {
        if (!is_string($guids) || strlen($guids) == 0 || strlen($guids) % 36 > 0) {
            return [];
        }
Severity: Minor
Found in traits/GUIDTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

Severity
Category
Status
Source
Language