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

Passed
Push — add-update-command ( 5f9635...42178d )
by Pedro
10:53
created

UpgradeCommandConfig::addons()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Backpack\CRUD\app\Console\Commands\Upgrade\v6;
4
5
use Backpack\CRUD\app\Console\Commands\Upgrade\UpgradeCommand;
6
use Backpack\CRUD\app\Console\Commands\Upgrade\UpgradeConfigInterface;
7
8
class UpgradeCommandConfig implements UpgradeConfigInterface
9
{
10
    public function steps(): array
11
    {
12
        return [];
13
    }
14
15
    public function addons(): array
16
    {
17
        return [];
18
    }
19
20
    public function upgradeCommandDescription(): ?callable
21
    {
22
        return function (UpgradeCommand $command): void {
23
            $command->note(
24
                'Thank you for choosing Backpack. If you are reading this, most likely you are upgrading from v6 to v7.'.PHP_EOL.
25
                '    We have prepared an upgrade guide to help you with the process: <fg=cyan>https://backpackforlaravel.com/docs/7.x/upgrade-guide</>',
26
                'green',
27
                'green'
28
            );
29
30
            $command->note(
31
                'You can choose <fg=magenta>v7</> option bellow, or call it later with: <fg=magenta>backpack:upgrade --version=7</>.',
32
                'yellow',
33
                'yellow'
34
            );
35
        };
36
    }
37
38
    public static function backpackCrudRequirement(): string
39
    {
40
        return '^6.0';
41
    }
42
43
    public static function postUpgradeCommands(): array
44
    {
45
        return [];
46
    }
47
}
48