rhosocial/yii2-base-models

View on GitHub

Showing 293 of 293 total issues

Line exceeds 120 characters; contains 121 characters
Open

        return (is_string($accessTokenAttribute) && !empty($accessTokenAttribute)) ? $this->$accessTokenAttribute : null;
Severity: Minor
Found in traits/IdentityTrait.php by phpcodesniffer

Arguments with default values must be at the end of the argument list
Open

        public string $ipTypeAttribute = 'ip_type',
Severity: Minor
Found in traits/config/IPConfig.php by phpcodesniffer

Line exceeds 120 characters; contains 136 characters
Open

        if (!empty($this->idAttribute) && $this->idCreatorCombinatedUnique && $this->idAttributeType !== static::$idTypeAutoIncrement) {
Severity: Minor
Found in traits/BlameableTrait.php by phpcodesniffer

Line exceeds 120 characters; contains 122 characters
Open

    public static function findAllByIdentityInBatch(string|int|null $pageSize = 'all', $currentPage = 0, $identity = null)
Severity: Minor
Found in traits/BlameableTrait.php by phpcodesniffer

Line exceeds 120 characters; contains 121 characters
Open

    public static function findOneById(int|string|null $id, bool $throwException = true, mixed $identity = null): ?static
Severity: Minor
Found in traits/BlameableTrait.php by phpcodesniffer

Line exceeds 120 characters; contains 126 characters
Open

        return !(is_string($cAttribute) && !empty($cAttribute)) || $this->$cAttribute > self::CONFIRMATION_STATUS_UNCONFIRMED;
Severity: Minor
Found in traits/ConfirmationTrait.php by phpcodesniffer

Line exceeds 120 characters; contains 185 characters
Open

            $rules = array_merge($this->getGuidRules(), $this->getIdRules(), $this->getCreatedAtRules(), $this->getUpdatedAtRules(), $this->getExpiredAfterRules(), $this->getIpRules());
Severity: Minor
Found in traits/EntityTrait.php by phpcodesniffer

Line exceeds 120 characters; contains 139 characters
Open

            return $this->getDatetimeOffset($this->offsetDatetime($this->currentUtcDatetime(), -$this->getExpiredAfter()), $createdAt) > 0;
Severity: Minor
Found in traits/TimestampTrait.php by phpcodesniffer

Arguments with default values must be at the end of the argument list
Open

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

Line exceeds 120 characters; contains 136 characters
Open

            return $this->getDatetimeOffset($this->offsetDatetime($this->currentDatetime(), -$this->getExpiredAfter()), $createdAt) > 0;
Severity: Minor
Found in traits/TimestampTrait.php by phpcodesniffer

Arguments with default values must be at the end of the argument list
Open

        public TimestampConfig $timestampConfig = new TimestampConfig(),

Line exceeds 120 characters; contains 130 characters
Open

        return (is_string($accessTokenAttribute) && !empty($accessTokenAttribute)) ? $this->$accessTokenAttribute = $token : null;
Severity: Minor
Found in traits/IdentityTrait.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $idAttribute = "id",
Severity: Minor
Found in traits/config/IDConfig.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $updatedAtAttribute = 'updated_at',

Whitespace found at end of line
Open

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

Line indented incorrectly; expected 4 spaces, found 8
Open

        public GUIDConfig $GUIDConfig = new GUIDConfig(),

Closing brace must be on a line by itself
Open

    ){}

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

        $model->otherGuidAttribute => BaseMongoEntityModel::compositeGUIDs($user)])->orderByCreatedAt(SORT_DESC)

Whitespace found at end of line
Open

 * 

There must be a comment when fall-through is intentional in a non-empty case body
Open

            case self::IP_V4_ENABLED:
Severity: Minor
Found in traits/IPTrait.php by phpcodesniffer
Severity
Category
Status
Source
Language