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
30:49 queued 05:45
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 7
c 1
b 0
f 0
dl 0
loc 11
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 Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
9
10
final class IsGranted extends ExpressionFunction
11
{
12
    public function __construct(AuthorizationCheckerInterface $authorizationChecker)
13
    {
14
        parent::__construct(
15
            'isGranted',
16
            function ($attributes, $object = null) {
17
                return "\$globalVariable->get('container')->get('security.authorization_checker')->isGranted($attributes, $object)";
18
            },
19
            function ($_, $attributes, $object = null) use ($authorizationChecker) {
20
                return $authorizationChecker->isGranted($attributes, $object);
21
            }
22
        );
23
    }
24
}
25