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
Push — master ( f769c2...a53f28 )
by Anderson
05:19
created

GetConfigurationEntityManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfiguration() 0 7 2
1
<?php
2
3
namespace DoctrineElastic\DoctrineMock;
4
5
6
use Doctrine\ORM\Configuration;
7
use Doctrine\ORM\Decorator\EntityManagerDecorator;
8
9
class GetConfigurationEntityManager extends EntityManagerDecorator {
10
11
    /** @var Configuration */
12
    protected $mockedConfiguration;
13
14
    public function getConfiguration() {
15
        if (is_null($this->mockedConfiguration)) {
16
            $this->mockedConfiguration = new Configuration();
17
        }
18
19
        return $this->mockedConfiguration;
20
    }
21
22
}