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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 1
b 0
f 0
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConverterClass() 0 3 1
A isCollection() 0 3 1
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
}