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 ( aac044...cc3c72 )
by Leonardo
14:28
created

MenuPageHelper   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A isDocumentationScreen() 0 3 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\ConditionalOnEnvironment\Admin\Services\Helpers;
6
7
use GraphQLAPI\GraphQLAPI\General\RequestParams;
8
9
/**
10
 * About menu page
11
 */
12
class MenuPageHelper
13
{
14
    /**
15
     * Indicate if we are loading a documentation screen:
16
     * If it has ?tab=docs
17
     */
18
    public function isDocumentationScreen(): bool
19
    {
20
        return isset($_GET[RequestParams::TAB]) && $_GET[RequestParams::TAB] == RequestParams::TAB_DOCS;
21
    }
22
}
23