InstallPingPackageCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 12 1
1
<?php
2
3
/**
4
 * Ping for Laravel.
5
 *
6
 * This class makes Ping request to a host.
7
 *
8
 * Ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway.
9
 *
10
 * @author  Angel Campos <[email protected]>
11
 * @requires PHP 8.0
12
 *
13
 * @version  2.1.2
14
 */
15
16
namespace Acamposm\Ping\Console;
17
18
use Acamposm\Ping\ServiceProviders\PingServiceProvider;
19
use Illuminate\Console\Command;
20
21
class InstallPingPackageCommand extends Command
22
{
23
    protected $signature = 'ping:install';
24
25
    protected $description = 'Install the Ping package';
26
27
    public function handle()
28
    {
29
        $this->info('Installing PingPackage...');
30
31
        $this->info('Publishing configuration...');
32
33
        $this->call('vendor:publish', [
34
            '--provider' => PingServiceProvider::class,
35
            '--tag'      => 'config',
36
        ]);
37
38
        $this->info('Installed PingPackage');
39
    }
40
}
41