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
Pull Request — main (#5338)
by
unknown
26:09
created

Version::runConsoleCommand()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 14
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 8
nc 2
nop 1
dl 0
loc 14
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Backpack\CRUD\app\Console\Commands;
4
5
use Illuminate\Console\Command;
6
use Symfony\Component\Process\Exception\ProcessFailedException;
7
use Symfony\Component\Process\Process;
8
9
class Version extends Command
10
{
11
    /**
12
     * The name and signature of the console command.
13
     *
14
     * @var string
15
     */
16
    protected $signature = 'backpack:version';
17
18
    /**
19
     * The console command description.
20
     *
21
     * @var string
22
     */
23
    protected $description = 'Show the version of PHP and Backpack packages.';
24
25
    /**
26
     * Execute the console command.
27
     *
28
     * @return mixed
29
     */
30
    public function handle()
31
    {
32
        $this->comment('### PHP VERSION:');
33
        $this->line(phpversion());
34
        $this->line('');
35
36
        $this->comment('### PHP EXTENSIONS:');
37
        $this->line(implode(', ', get_loaded_extensions()));
38
        $this->line('');
39
40
        $this->comment('### LARAVEL VERSION:');
41
        $this->line(\Composer\InstalledVersions::getVersion('laravel/framework'));
42
        $this->line('');
43
44
        $this->comment('### BACKPACK PACKAGE VERSIONS:');
45
        $packages = \Composer\InstalledVersions::getInstalledPackages();
46
        foreach ($packages as $package) {
47
            if (substr($package, 0, 9) == 'backpack/') {
48
                $this->line($package.': '.\Composer\InstalledVersions::getPrettyVersion($package));
49
            }
50
        }
51
    }
52
}
53