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

Code Duplication    Length = 17-20 lines in 2 locations

src/Config/Parser/GraphQL/ASTConverter/ObjectNode.php 1 location

@@ 11-30 (lines=20) @@
8
{
9
    const TYPENAME = 'object';
10
11
    public static function toConfig(Node $node)
12
    {
13
        $config = [
14
            'description' => DescriptionNode::toConfig($node),
15
            'fields' => FieldsNode::toConfig($node),
16
        ];
17
18
        if (!empty($node->interfaces)) {
19
            $interfaces = [];
20
            foreach ($node->interfaces as $interface) {
21
                $interfaces[] = TypeNode::astTypeNodeToString($interface);
22
            }
23
            $config['interfaces'] = $interfaces;
24
        }
25
26
        return [
27
            'type' => static::TYPENAME,
28
            'config' => $config,
29
        ];
30
    }
31
}
32

src/Config/Parser/GraphQL/ASTConverter/UnionNode.php 1 location

@@ 9-25 (lines=17) @@
6
7
class UnionNode implements NodeInterface
8
{
9
    public static function toConfig(Node $node)
10
    {
11
        $config = ['description' => DescriptionNode::toConfig($node)];
12
13
        if (!empty($node->types)) {
14
            $types = [];
15
            foreach ($node->types as $type) {
16
                $types[] = TypeNode::astTypeNodeToString($type);
17
            }
18
            $config['types'] = $types;
19
        }
20
21
        return [
22
            'type' => 'union',
23
            'config' => $config,
24
        ];
25
    }
26
}
27