NPathClass   A
last analyzed

Complexity

Total Complexity 25

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 25
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
F doSomething() 0 12 25
1
<?php
2
/**
3
 * This file is part of PHP Mess Detector.
4
 *
5
 * Copyright (c) Manuel Pichler <[email protected]>.
6
 * All rights reserved.
7
 *
8
 * Licensed under BSD License
9
 * For full copyright and license information, please see the LICENSE file.
10
 * Redistributions of files must retain the above copyright notice.
11
 *
12
 * @author Manuel Pichler <[email protected]>
13
 * @copyright Manuel Pichler. All rights reserved.
14
 * @license https://opensource.org/licenses/bsd-license.php BSD License
15
 * @link http://phpmd.org/
16
 */
17
18
/**
19
 * Simple test class
20
 */
21
class NPathClass {
22
    function doSomething()
0 ignored issues
show
Best Practice introduced by
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...
23
    {
24
        if (true) {}
25
        if (true) {}
26
        if (true) {}
27
        if (true) {}
28
        if (true && true && true && true) {}
29
        if (true && true && true && true) {}
30
        if (true && true && true && true) {}
31
        if (true && true && true && true) {}
32
        if (true && true && true && true) {}
33
    }
34
}
35
36