GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ShowFilesCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ProcyonWeb\TranslationGenerator;
6
7
use Illuminate\Console\Command;
8
9
class ShowFilesCommand extends Command
10
{
11
    protected $signature = 'translation:show-files';
12
13
    protected $description = 'Show result of the file search';
14
15
    public function handle(): void
16
    {
17
        $files = (new SearchService())->getFiles(config('translation.generator.patterns'));
0 ignored issues
show
Bug introduced by
The function config was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
        $files = (new SearchService())->getFiles(/** @scrutinizer ignore-call */ config('translation.generator.patterns'));
Loading history...
18
19
        foreach ($files as $file) {
20
            $this->line($file);
21
        }
22
    }
23
}