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.

AbstractOptionsBlock   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getBooleanLabel() 0 6 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\Blocks;
6
7
/**
8
 * Query Execution (endpoint and persisted query) Options block
9
 */
10
abstract class AbstractOptionsBlock extends AbstractBlock
11
{
12
    /**
13
     * Given a bool, return its label for rendering
14
     */
15
    protected function getBooleanLabel(bool $value): string
16
    {
17
        if ($value) {
18
            return \__('✅ Yes', 'graphql-api');
19
        }
20
        return \__('❌ No', 'graphql-api');
21
    }
22
}
23