Failed Conditions
Pull Request — psr2 (#2426)
by Andreas
09:22 queued 06:07
created

remote_plugin_testing_auto::privateMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
use dokuwiki\Extension\RemotePlugin;
4
5
/**
6
 * For testing automatically extracted method descriptions
7
 *
8
 * @author Andreas Gohr <[email protected]>
9
 */
10
class remote_plugin_testing_auto extends RemotePlugin
11
{
12
    /**
13
     * This is a dummy method
14
     *
15
     * @param string $str some more parameter description
16
     * @param int $int
17
     * @param bool $bool
18
     * @param Object $unknown
19
     * @return array
20
     */
21
    public function commented($str, $int, $bool, $unknown)
0 ignored issues
show
Unused Code introduced by
The parameter $unknown is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
22
    {
23
        return array($str, $int, $bool);
24
    }
25
26
    /**
27
     * This should not be accessible via API
28
     * @return bool
29
     */
30
    private function privateMethod()
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
31
    {
32
        return true;
33
    }
34
35
    /**
36
     * This should not be accessible via API
37
     * @return bool
38
     */
39
    protected function protectedMethod()
40
    {
41
        return true;
42
    }
43
44
    /**
45
     * This should not be accessible via API
46
     * @return bool
47
     */
48
    public function _underscore()
49
    {
50
        return true;
51
    }
52
}
53