GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#42)
by
unknown
02:17 queued 29s
created

FirstClass   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A _protectedMethod() 0 3 1
A publicMethod() 0 3 1
1
<?php
2
3
class FirstClass {
4
5
    protected $_protectedProperty;
6
    public $publicProperty;
7
8
    protected function _protectedMethod() {
9
        echo "This is protected method of first class";
10
    }
11
12
    public function publicMethod() {
13
        echo "This is public method of first class";
14
    }
15
}
16
17 View Code Duplication
class SecondClass extends FirstClass {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
18
19
    private $_privateProperty;
20
21
    protected function _protectedMethod() {
22
        parent::_protectedMethod();
23
        echo "This is protected method of second class";
24
        $this->_privateProperty = parent::$_protectedProperty;
25
    }
26
27
    public function publicMethod() {
28
        parent::publicMethod();
29
        echo "This is public method of second class";
30
        $this->_privateProperty = parent::$publicProperty;
31
    }
32
}
33
34
class ThirdClass {
35
    public function __construct(SecondClass $secondObject) {
36
        $secondObject->publicMethod();
37
    }
38
}