Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — 0.13 ( 775674...3bae26 )
by Jérémiah
19s queued 17s
created

IsGranted   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 2
b 0
f 0
dl 0
loc 11
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\Security;
6
7
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction;
8
use Overblog\GraphQLBundle\Security\Security;
9
10
final class IsGranted extends ExpressionFunction
11
{
12 145
    public function __construct(Security $security)
13
    {
14 145
        parent::__construct(
15 145
            'isGranted',
16
            static function ($attributes, $object = 'null'): string {
17 1
                return \sprintf('$globalVariable->get(\'security\')->isGranted(%s, %s)', $attributes, $object);
18 145
            },
19
            static function ($_, $attributes, $object = null) use ($security): bool {
20 1
                return $security->isGranted($attributes, $object);
21 145
            }
22
        );
23 145
    }
24
}
25