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

Passed
Pull Request — master (#536)
by
unknown
21:29
created

IsGranted   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
dl 0
loc 11
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
    public function __construct(AuthorizationCheckerInterface $authorizationChecker)
12
    {
13
        parent::__construct(
14
            'isGranted',
15
            function ($attributes, $object = null) {
16
                return "\$globalVariable->get('container')->get('security.authorization_checker')->isGranted($attributes, $object)";
17
            },
18
            function ($arguments, $attributes, $object = null) use ($authorizationChecker) {
19
                return $authorizationChecker->isGranted($attributes, $object);
20
            }
21
        );
22
    }
23
}
24