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-span-to-buttons ( b5e4e4...27bfb1 )
by Pedro
28:14
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
7
class Version extends Command
8
{
9
    /**
10
     * The name and signature of the console command.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'backpack:version';
15
16
    /**
17
     * The console command description.
18
     *
19
     * @var string
20
     */
21
    protected $description = 'Show the version of PHP and Backpack packages.';
22
23
    /**
24
     * Execute the console command.
25
     *
26
     * @return mixed
27
     */
28
    public function handle()
29
    {
30
        $this->comment('### PHP VERSION:');
31
        $this->line(phpversion());
32
        $this->line('');
33
34
        $this->comment('### PHP EXTENSIONS:');
35
        $this->line(implode(', ', get_loaded_extensions()));
36
        $this->line('');
37
38
        $this->comment('### LARAVEL VERSION:');
39
        $this->line(\Composer\InstalledVersions::getVersion('laravel/framework'));
40
        $this->line('');
41
42
        $this->comment('### BACKPACK PACKAGE VERSIONS:');
43
        $packages = \Composer\InstalledVersions::getInstalledPackages();
44
        foreach ($packages as $package) {
45
            if (substr($package, 0, 9) == 'backpack/') {
46
                $this->line($package.': '.\Composer\InstalledVersions::getPrettyVersion($package));
47
            }
48
        }
49
    }
50
}
51