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 — master ( 44993f...7e5601 )
by Jérémiah
17:18
created

Call::__construct()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction;
6
7
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction;
8
9
final class Call extends ExpressionFunction
10
{
11 64
    public function __construct($name = 'call')
12
    {
13 64
        parent::__construct(
14 64
            $name,
15
            function ($target, $args = '[]', $static = false) {
16 1
                if ($static) {
17 1
                    return \sprintf('\call_user_func_array(%s, %s)', $target, $args);
18
                } else {
19 1
                    return \sprintf('%s(...%s)', $target, $args);
20
                }
21 64
            }
22
        );
23 64
    }
24
}
25