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.

ServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 31
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 1
A register() 0 9 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ProcyonWeb\TranslationGenerator;
6
7
class ServiceProvider extends \Illuminate\Support\ServiceProvider
8
{
9
    /**
10
     * Register the service provider.
11
     *
12
     * @return void
13
     */
14
    public function register()
15
    {
16
        if ($this->app->runningInConsole()) {
17
            $this->commands(
18
                [
19
                    GenerateCommand::class,
20
                    ShowFilesCommand::class,
21
                    ShowUntranslatedCommand::class,
22
                    DownloadCommand::class,
23
                ]
24
            );
25
        }
26
    }
27
28
    /**
29
     * Bootstrap any application services.
30
     *
31
     * @return void
32
     */
33
    public function boot()
34
    {
35
        $this->publishes(
36
            [
37
                __DIR__ . '/../config/translation.php' => config_path('translation.php'),
0 ignored issues
show
Bug introduced by
The function config_path 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

37
                __DIR__ . '/../config/translation.php' => /** @scrutinizer ignore-call */ config_path('translation.php'),
Loading history...
38
            ]
39
        );
40
    }
41
}