rhosocial/yii2-base-models

View on GitHub

Showing 293 of 293 total issues

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * @var int Decide whether to enable IP attributes. Zero means not enabled.
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

The closing brace for the class must go on the next line after the body
Open

}

Scope keyword "static" must be followed by a single space
Open

    public function createdBy($guid): static

Blank lines are not allowed in a multi-line function declaration
Open


Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * All the parameters accepted are listed below.
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Blank lines are not allowed in a multi-line function declaration
Open


Scope keyword "static" must be followed by a single space
Open

    public function confirmed(bool $isConfirmed = true): static

The closing brace for the class must go on the next line after the body
Open

}

Scope keyword "static" must be followed by a single space
Open

    public function guidOrId(int|string $param, bool|string $like = false): static
Severity: Minor
Found in traits/EntityQueryTrait.php by phpcodesniffer

Scope keyword "static" must be followed by a single space
Open

    public static function instantiate($row): static
Severity: Minor
Found in traits/EntityTrait.php by phpcodesniffer

Scope keyword "static" must be followed by a single space
Open

    public function orderByCreatedAt(int|string $sort = SORT_ASC): static
Severity: Minor
Found in traits/EntityQueryTrait.php by phpcodesniffer

Scope keyword "static" must be followed by a single space
Open

    public function received(): static
Severity: Minor
Found in traits/MessageQueryTrait.php by phpcodesniffer

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * @var int Determine the type of timestamp.

Scope keyword "static" must be followed by a single space
Open

    public function orderByUpdatedAt(int|string $sort = SORT_ASC): static
Severity: Minor
Found in traits/EntityQueryTrait.php by phpcodesniffer

Property name "$_sourceRules" should not be prefixed with an underscore to indicate visibility
Open

    private array $_sourceRules = [];
Severity: Minor
Found in traits/RegistrationTrait.php by phpcodesniffer

Property name "$_password" should not be prefixed with an underscore to indicate visibility
Open

    protected string $_password;
Severity: Minor
Found in traits/PasswordTrait.php by phpcodesniffer

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         */

Scope keyword "static" must be followed by a single space
Open

    public function initiators($users = []): static
Severity: Minor
Found in traits/MutualQueryTrait.php by phpcodesniffer

Scope keyword "static" must be followed by a single space
Open

    protected function likeCondition($value, $attribute, $like = false): static
Severity: Minor
Found in traits/QueryTrait.php by phpcodesniffer

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * Set this attribute to false if you do not want to record it and know whether the entity has been edited.
Severity
Category
Status
Source
Language