GamesProcessor   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 13
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A process() 0 4 2
1
<?php
2
3
namespace App\Services;
4
5
use App\Models\Settings;
6
use Blacklight\Games;
0 ignored issues
show
Bug introduced by
The type Blacklight\Games was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
8
class GamesProcessor
9
{
10
    private bool $echooutput;
11
12
    public function __construct(bool $echooutput)
13
    {
14
        $this->echooutput = $echooutput;
15
    }
16
17
    public function process(): void
18
    {
19
        if ((int) Settings::settingValue('lookupgames') !== 0) {
20
            (new Games)->processGamesReleases();
21
        }
22
    }
23
}
24