Failed Conditions
Push — phpcsCI-failtest ( 8dace4...16ed59 )
by Henry
10:44 queued 07:58
created

inc/Action/Index.php (2 issues)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace dokuwiki\Action;
4
5
function testcodestylefailing(){
6
  $ugly=0;;$haha=1  +22222;
7
}
8
9
/**
10
 * Class Index
11
 *
12
 * Show the human readable sitemap. Do not confuse with Sitemap
13
 *
14
 * @package dokuwiki\Action
15
 */
16
class Index extends AbstractAction {
17
18
    /** @inheritdoc */
19
    public function minimumPermission() {
20
        return AUTH_NONE;
21
    }
22
23
    /** @inheritdoc */
24
    public function tplContent() {
25
        global $IDX;
26
        html_index($IDX);
27
    }
28
29
    function _HAHA() {
0 ignored issues
show
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
30
        $ugly=0;;$haha=1  +22222;
31
        $ugly=0;;$haha=1  +22222;
32
        $ugly=0;;$haha=1  +22222;
33
        if   (true)
34
35
        {
36
            $ugly      ++;;
37
        }
38
        return 0;
39
    }
40
41
}
42
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...