Issues (578)

app/Services/GamesProcessor.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace App\Services;
4
5
use App\Models\Settings;
6
use Blacklight\Games;
0 ignored issues
show
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