Completed
Push — master ( 816440...cac82f )
by Vladimir
12:37
created

ArtisanServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 70
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A registerClearResetsCommand() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Framework\Providers;
6
7
use Illuminate\Console\Scheduling\ScheduleRunCommand;
8
use Illuminate\Console\Scheduling\ScheduleFinishCommand;
9
use Illuminate\Foundation\Providers\ArtisanServiceProvider as BaseArtisanServiceProvider;
10
11
class ArtisanServiceProvider extends BaseArtisanServiceProvider
12
{
13
    /**
14
     * The commands to be registered.
15
     *
16
     * @var array
17
     */
18
    protected $commands = [
19
        'CacheClear' => 'command.cache.clear',
20
        'CacheForget' => 'command.cache.forget',
21
        'ClearCompiled' => 'command.clear-compiled',
22
        'ConfigCache' => 'command.config.cache',
23
        'ConfigClear' => 'command.config.clear',
24
        'Down' => 'command.down',
25
        'Environment' => 'command.environment',
26
        'KeyGenerate' => 'command.key.generate',
27
        'Migrate' => 'command.migrate',
28
        'MigrateFresh' => 'command.migrate.fresh',
29
        'MigrateInstall' => 'command.migrate.install',
30
        'MigrateRefresh' => 'command.migrate.refresh',
31
        'MigrateReset' => 'command.migrate.reset',
32
        'MigrateRollback' => 'command.migrate.rollback',
33
        'MigrateStatus' => 'command.migrate.status',
34
        'Optimize' => 'command.optimize',
35
        'PackageDiscover' => 'command.package.discover',
36
        'QueueFailed' => 'command.queue.failed',
37
        'QueueFlush' => 'command.queue.flush',
38
        'QueueForget' => 'command.queue.forget',
39
        'QueueListen' => 'command.queue.listen',
40
        'QueueRestart' => 'command.queue.restart',
41
        'QueueRetry' => 'command.queue.retry',
42
        'QueueWork' => 'command.queue.work',
43
        'RouteCache' => 'command.route.cache',
44
        'RouteClear' => 'command.route.clear',
45
        'RouteList' => 'command.route.list',
46
        'Seed' => 'command.seed',
47
        'ScheduleFinish' => ScheduleFinishCommand::class,
48
        'ScheduleRun' => ScheduleRunCommand::class,
49
        'StorageLink' => 'command.storage.link',
50
        'Up' => 'command.up',
51
    ];
52
53
    /**
54
     * The commands to be registered.
55
     *
56
     * @var array
57
     */
58
    protected $devCommands = [
59
        'CacheTable' => 'command.cache.table',
60
        'ConsoleMake' => 'command.console.make',
61
        'EventGenerate' => 'command.event.generate',
62
        'EventMake' => 'command.event.make',
63
        'FactoryMake' => 'command.factory.make',
64
        'JobMake' => 'command.job.make',
65
        'ListenerMake' => 'command.listener.make',
66
        'MigrateMake' => 'command.migrate.make',
67
        'ModelMake' => 'command.model.make',
68
        'ProviderMake' => 'command.provider.make',
69
        'QueueFailedTable' => 'command.queue.failed-table',
70
        'QueueTable' => 'command.queue.table',
71
        'SeederMake' => 'command.seeder.make',
72
        'Serve' => 'command.serve',
73
        'TestMake' => 'command.test.make',
74
        'VendorPublish' => 'command.vendor.publish',
75
    ];
76
77
    protected function registerClearResetsCommand(): void
78
    {
79
    }
80
}
81