hauntd/yii2-vote

View on GitHub

Showing 122 of 122 total issues

Avoid using static access to class '\Yii' in method 'attributeLabels'.
Open

            'target_id' => Yii::t('vote', 'Target Model ID'),
Severity: Minor
Found in models/VoteAggregate.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\Yii' in method 'attributeLabels'.
Open

            'negative' => Yii::t('vote', 'Negative'),
Severity: Minor
Found in models/VoteAggregate.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\Yii' in method 'checkModel'.
Open

            $this->addError('targetId', Yii::t('vote', 'Target model not found.'));
Severity: Minor
Found in models/VoteForm.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Duplicate property '-webkit-transition' found.
Open

  -webkit-transition: opacity 0.15s ease;
Severity: Minor
Found in assets/static/vote.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.vote .vote-count.vote-loading > span {
Severity: Minor
Found in assets/static/vote.css by csslint

Adjoining classes: .vote .vote-btn.vote-active
Open

.vote .vote-btn.vote-active {
Severity: Minor
Found in assets/static/vote.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.vote .vote-btn.vote-loading {
Severity: Minor
Found in assets/static/vote.css by csslint

Adjoining classes: .vote-toggle.vote-toggle-like .vote-btn.vote-active .vote-icon
Open

.vote-toggle.vote-toggle-like .vote-btn.vote-active .vote-icon {
Severity: Minor
Found in assets/static/vote.css by csslint

Expected (<filter-function-list> | none) but found 'alpha(opacity=20)'.</filter-function-list>
Open

    filter: alpha(opacity=20);
Severity: Minor
Found in assets/static/vote.css by csslint

Duplicate property 'transition' found.
Open

  transition: opacity 0.15s ease;
Severity: Minor
Found in assets/static/vote.css by csslint

Adjoining classes: .vote .vote-count.vote-loading > span
Open

.vote .vote-count.vote-loading > span {
Severity: Minor
Found in assets/static/vote.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.vote .vote-btn {
Severity: Minor
Found in assets/static/vote.css by csslint

Adjoining classes: .vote .vote-btn.vote-active i.glyphicon
Open

.vote .vote-btn.vote-active i.glyphicon {
Severity: Minor
Found in assets/static/vote.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

  to {
Severity: Minor
Found in assets/static/vote.css by csslint

Duplicate property '-o-transition' found.
Open

  -o-transition: opacity 0.15s ease;
Severity: Minor
Found in assets/static/vote.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.vote.vote-visible-buttons .vote-btn {
Severity: Minor
Found in assets/static/vote.css by csslint

Adjoining classes: .vote .vote-btn.vote-active.vote-up
Open

.vote .vote-btn.vote-active.vote-up {
Severity: Minor
Found in assets/static/vote.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

  to {
Severity: Minor
Found in assets/static/vote.css by csslint

Duplicate property '-o-transition' found.
Open

  -o-transition: opacity 0.2s ease;
Severity: Minor
Found in assets/static/vote.css by csslint

Expected (<filter-function-list> | none) but found 'alpha(opacity=0)'.</filter-function-list>
Open

    filter: alpha(opacity=0);
Severity: Minor
Found in assets/static/vote.css by csslint
Severity
Category
Status
Source
Language