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
114
     * @return string
115
     */
116
    public function getLink() {
117
        if($this->id && $this->id[0] == '#') {
118
            return $this->id;
119
        } else {
120
            return wl($this->id, $this->params, false, '&');
121
        }
122
    }
123
 
124
    /**
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
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