Code Duplication    Length = 15-16 lines in 2 locations

phpmetrics/tests/Metric/examples/cyclomatic1.php 1 location

@@ 12-27 (lines=16) @@
9
        }
10
    }
11
12
    public function foo2()
13
    {
14
        if(true) {
15
16
        } else {
17
	        if (true) {
18
19
	        } else if (true) {
20
21
	        } elseif (true) {
22
23
	        } elseif (true) {
24
25
	        }
26
        }
27
    }
28
29
    public function foo3()
30
    {

phpmetrics/tests/Metric/examples/cyclomatic_full.php 1 location

@@ 18-32 (lines=15) @@
15
16
class IfElseif // ccn2: 7
17
{
18
    function __invoke()
19
    {
20
        if (true) {
21
            if (true) {
22
            } elseif (true) {
23
            } else {
24
            }
25
        } elseif (true) {
26
            if (false) {
27
            }
28
        }
29
30
        if (true) {
31
        }
32
    }
33
}
34
35
class Loops // ccn2: 5