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
Pull Request — master (#536)
by
unknown
20:27
created

IsGranted   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php declare(strict_types=1);
2
3
namespace Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\Security;
4
5
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction;
6
use function sprintf;
7
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
8
9
final class IsGranted extends ExpressionFunction
10
{
11 123
    public function __construct(AuthorizationCheckerInterface $authorizationChecker)
12
    {
13 123
        parent::__construct(
14 123
            'isGranted',
15
            function ($attributes, $object = null) {
16
                return "\$globalVariable->get('container')->get('security.authorization_checker')->isGranted($attributes, $object)";
17 123
            },
18
            function ($arguments, $attributes, $object = null) use ($authorizationChecker) {
19
                return $authorizationChecker->isGranted($attributes, $object);
20 123
            }
21
        );
22 123
    }
23
}
24