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

Models   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __get() 0 3 1
A getAll() 0 3 1
A get() 0 3 1
A add() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Hydrator;
6
7
/**
8
 * Container for all already hydrated models.
9
 */
10
class Models
11
{
12
    public array $models = [];
13
14
    public function get(string $name)
15
    {
16
        return $this->$name ?? null;
17
    }
18
19
    public function getAll(): array
20
    {
21
        return $this->models;
22
    }
23
24
    public function add(string $name, $model)
25
    {
26
        $this->models[$name] = $model;
27
    }
28
29
    public function __get($name)
30
    {
31
        return $this->models[$name] ?? null;
32
    }
33
}
34