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 (#750)
by Timur
22:37
created

Service::isCollection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Hydrator\Converters;
6
7
/**
8
 * Calls the "convert" method on the target service or "__invoke"
9
 * if no method specified
10
 *
11
 * @Annotation
12
 */
13
class Service implements ConverterAnnotationInterface
14
{
15
    /**
16
     * Service ID.
17
     */
18
    public string $value;
19
20
    /**
21
     * Method name to call on the target service.
22
     */
23
    public string $method;
24
25
    public bool $isCollection;
26
27
    public static function getConverterClass(): string
28
    {
29
        return static::class.'Converter';
30
    }
31
32
    public function isCollection(): bool
33
    {
34
        return $this->isCollection ?? false;
35
    }
36
}