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.

CacheConfigurationManagerFacade   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getInstance() 0 6 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\Facades;
6
7
use GraphQLAPI\GraphQLAPI\ConditionalOnEnvironment\ConfigurationCache\Overrides\CacheConfigurationManager;
8
use PoP\ComponentModel\Cache\CacheConfigurationManagerInterface;
9
10
/**
11
 * Obtain an instance of the CacheConfigurationManager.
12
 * Manage the instance internally instead of using the ContainerBuilder,
13
 * because it is required for setting configuration values before components
14
 * are initialized, so the ContainerBuilder is still unavailable
15
 */
16
class CacheConfigurationManagerFacade
17
{
18
    private static ?CacheConfigurationManagerInterface $instance = null;
19
20
    public static function getInstance(): CacheConfigurationManagerInterface
21
    {
22
        if (is_null(self::$instance)) {
23
            self::$instance = new CacheConfigurationManager();
24
        }
25
        return self::$instance;
26
    }
27
}
28