vistart/yii2-models

View on GitHub

Showing 197 of 197 total issues

Line exceeds 120 characters; contains 172 characters
Open

            $relation = (int) static::find()->initiators($initiator)->recipients($recipient)->andWhere([$model->mutualTypeAttribute => static::$mutualTypeNormal])->count();
Severity: Minor
Found in traits/UserRelationTrait.php by phpcodesniffer

Line exceeds 120 characters; contains 157 characters
Open

 *         $this->multiBlamesClass = UserRelationGroup::className(); // if you need relation group feature, `$multiBlamesClass` property should be specified.

Line exceeds 120 characters; contains 129 characters
Open

        if (isset($event->changedAttributes[$raAttribute]) && $event->changedAttributes[$raAttribute] != $sender->$raAttribute) {
Severity: Minor
Found in traits/MessageTrait.php by phpcodesniffer

Line exceeds 120 characters; contains 132 characters
Open

            throw new InvalidConfigException('$multiBlamesClass must be specified if you want to use multiple blameable features.');

Line exceeds 120 characters; contains 125 characters
Open

        if (empty($self->multiBlamesClass) || !is_string($self->multiBlamesClass) || $self->multiBlamesAttribute === false) {

Line exceeds 120 characters; contains 185 characters
Open

        return $range['exclude'] ? (!in_array($user, $range['user']) || !in_array($status, $range['status'])) : (in_array($user, $range['user']) || in_array($status, $range['status']));

Line exceeds 120 characters; contains 154 characters
Open

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

Line exceeds 120 characters; contains 124 characters
Open

        return $this->andWhere([$model->createdByAttribute => $other, $model->otherGuidAttribute => $user])->one($database);
Severity: Minor
Found in traits/MutualQueryTrait.php by phpcodesniffer

Line exceeds 120 characters; contains 132 characters
Open

        if (isset($event->changedAttributes[$reaAttribute]) && $event->changedAttributes[$reaAttribute] != $sender->$reaAttribute) {
Severity: Minor
Found in traits/MessageTrait.php by phpcodesniffer

Line exceeds 120 characters; contains 137 characters
Open

            if (is_string($notificationClass) && ((int) ($notificationClass::findByIdentity($user)->guid($log->content)->count())) > 0) {

Line exceeds 120 characters; contains 157 characters
Open

 *         $this->multiBlamesClass = UserRelationGroup::className(); // if you need relation group feature, `$multiBlamesClass` property should be specified.

Line exceeds 120 characters; contains 124 characters
Open

     * @return \vistart\Models\queries\BaseRedisEntityQuery the newly created [[BaseEntityQuery]] or its sub-class instance.

Line exceeds 120 characters; contains 141 characters
Open

        if (is_string($reaAttribute) && !$sender->isInitDatetime($sender->$raAttribute) && $sender->isInitDatetime($sender->$reaAttribute)) {
Severity: Minor
Found in traits/MessageTrait.php by phpcodesniffer

Whitespace found at end of line
Open

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

Whitespace found at end of line
Open

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

Whitespace found at end of line
Open

     * @var int 
Severity: Minor
Found in models/BaseMetaModel.php by phpcodesniffer

Whitespace found at end of line
Open

     * @var boolean 
Severity: Minor
Found in traits/UserRelationTrait.php by phpcodesniffer

Whitespace found at end of line
Open

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

Whitespace found at end of line
Open

 * 

Whitespace found at end of line
Open

 * 
Severity
Category
Status
Source
Language