CleanupCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getOptions() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of Rocketeer
5
 *
6
 * (c) Maxime Fabre <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 */
12
13
namespace Rocketeer\Console\Commands;
14
15
use Symfony\Component\Console\Input\InputOption;
16
17
/**
18
 * Runs the Cleanup task to prune deprecated releases.
19
 */
20
class CleanupCommand extends BaseTaskCommand
21
{
22
    /**
23
     * Get the console command options.
24
     *
25
     * @return array<string[]|array<string|null>>
26
     */
27
    protected function getOptions()
28
    {
29
        return array_merge(parent::getOptions(), [
30
            ['clean-all', null, InputOption::VALUE_NONE, 'Cleans up all non-current releases'],
31
        ]);
32
    }
33
}
34