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.
Passed
Push — master ( ef5f1c...ddc127 )
by Leonardo
03:27
created

CustomEndpointGraphiQLClientTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 11
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A isGraphiQLExplorerOptionEnabled() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\Clients;
6
7
use GraphQLAPI\GraphQLAPI\Facades\UserSettingsManagerFacade;
8
use GraphQLAPI\GraphQLAPI\ModuleResolvers\ClientFunctionalityModuleResolver;
9
10
trait CustomEndpointGraphiQLClientTrait
11
{
12
    /**
13
     * Use GraphiQL Explorer for this screen?
14
     */
15
    protected function isGraphiQLExplorerOptionEnabled(): bool
16
    {
17
        $userSettingsManager = UserSettingsManagerFacade::getInstance();
18
        return $userSettingsManager->getSetting(
19
            ClientFunctionalityModuleResolver::GRAPHIQL_EXPLORER,
20
            ClientFunctionalityModuleResolver::OPTION_USE_GRAPHIQL_EXPLORER_IN_PUBLIC_CLIENT_FOR_CUSTOM_ENDPOINTS
21
        );
22
    }
23
}
24