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'),
- Read upRead up
- Exclude checks
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'),
- Read upRead up
- Exclude checks
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.'));
- Read upRead up
- Exclude checks
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;
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.vote .vote-count.vote-loading > span {
- Exclude checks
Adjoining classes: .vote .vote-btn.vote-active Open
.vote .vote-btn.vote-active {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.vote .vote-btn.vote-loading {
- Exclude checks
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 {
- Exclude checks
Expected (<filter-function-list> | none) but found 'alpha(opacity=20)'.</filter-function-list> Open
filter: alpha(opacity=20);
- Exclude checks
Duplicate property 'transition' found. Open
transition: opacity 0.15s ease;
- Exclude checks
Adjoining classes: .vote .vote-count.vote-loading > span Open
.vote .vote-count.vote-loading > span {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.vote .vote-btn {
- Exclude checks
Adjoining classes: .vote .vote-btn.vote-active i.glyphicon Open
.vote .vote-btn.vote-active i.glyphicon {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
to {
- Exclude checks
Duplicate property '-o-transition' found. Open
-o-transition: opacity 0.15s ease;
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
.vote.vote-visible-buttons .vote-btn {
- Exclude checks
Adjoining classes: .vote .vote-btn.vote-active.vote-up Open
.vote .vote-btn.vote-active.vote-up {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
to {
- Exclude checks
Duplicate property '-o-transition' found. Open
-o-transition: opacity 0.2s ease;
- Exclude checks
Expected (<filter-function-list> | none) but found 'alpha(opacity=0)'.</filter-function-list> Open
filter: alpha(opacity=0);
- Exclude checks