UpdateCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
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 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getOptions() 0 8 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
 * Update the remote server without doing a new release.
19
 */
20
class UpdateCommand 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
            ['migrate', 'm', InputOption::VALUE_NONE, 'Run the migrations'],
31
            ['seed', 's', InputOption::VALUE_NONE, 'Seed the database after migrating the database'],
32
            ['no-clear', null, InputOption::VALUE_NONE, "Don't clear the application's cache after the update"],
33
        ]);
34
    }
35
}
36