Filter by:
File Violation Severity
SVG.php ElseExpression   (kritika/PHPMD)
The method icon uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
compat/inc/Menu/Item/Edit.php ElseExpression   (kritika/PHPMD)
The method __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
compat/inc/Menu/Item/Edit.php ElseExpression   (kritika/PHPMD)
The method __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
compat/inc/Menu/Item/Edit.php ElseExpression   (kritika/PHPMD)
The method __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
compat/inc/Menu/Item/AbstractItem.php ElseExpression   (kritika/PHPMD)
The method getLink uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
compat/inc/Menu/Item/AbstractItem.php ElseExpression   (kritika/PHPMD)
The method asHtmlLink uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
156
        $attr = buildAttributes($this->getLinkAttributes($classprefix));
157
        $html = "<a $attr>";
158
        if($svg) {
159
            $html .= '<span>' . hsc($this->getLabel()) . '</span>';
160
            $html .= inlineSVG($this->getSvg());
161
        } else {
162
            $html .= hsc($this->getLabel());
163
        }
164
        $html .= "</a>";
165
 
166
        return $html;
compat/inc/Menu/AbstractMenu.php ElseExpression   (kritika/PHPMD)
The method getListItems uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
inc/Menu/Item/Discussion.php ElseExpression   (kritika/PHPMD)
The method __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
Template.php ElseExpression   (kritika/PHPMD)
The method getPageInfo uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
Template.php ElseExpression   (kritika/PHPMD)
The method getPageInfo uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
Template.php ElseExpression   (kritika/PHPMD)
The method getPageInfo uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
Template.php ElseExpression   (kritika/PHPMD)
The method getLicense uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
Template.php ElseExpression   (kritika/PHPMD)
The method getBrowserPageTitle uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
Template.php ElseExpression   (kritika/PHPMD)
The method getBrowserPageTitle uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
Template.php ElseExpression   (kritika/PHPMD)
The method getBrowserPageTitle uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
Template.php ElseExpression   (kritika/PHPMD)
The method normalizeContent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
Template.php ElseExpression   (kritika/PHPMD)
The method normalizeContent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning
Template.php ElseExpression   (kritika/PHPMD)
The method normalizeContent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Warning