Completed
Push — master ( 03a881...28de70 )
by Damian
09:16
created

MyTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A MyMethod() 0 7 1
A MyNestedMethod() 0 9 3
1
<?php
2
3
namespace TestNamespace\Testing;
4
5
use TestNamespace\{Test1, Test2, Test3};
6
7
class MyTest extends Test1 implements Test2
8
{
9
10
    public function MyMethod()
11
    {
12
        //We shouldn't see anything in here
13
        $var = 1;
14
        $var += 1;
15
        return $var;
16
    }
17
18
    public function MyNestedMethod()
19
    {
20
        $var = 1;
21
        for ($i = 0; $i < 5; ++$i) {
22
            if ($i % 2) {
23
                $var += $i;
24
            }
25
        }
26
    }
27
28
}
29