Update   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 5 1
1
<?php
2
3
namespace Robo\Task\Npm;
4
5
/**
6
 * Npm Update
7
 *
8
 * ```php
9
 * <?php
10
 * // simple execution
11
 * $this->taskNpmUpdate()->run();
12
 *
13
 * // prefer dist with custom path
14
 * $this->taskNpmUpdate('path/to/my/npm')
15
 *      ->noDev()
16
 *      ->run();
17
 * ?>
18
 * ```
19
 */
20
class Update extends Base
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected $action = 'update';
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function run()
31
    {
32
        $this->printTaskInfo('Update Npm packages: {arguments}', ['arguments' => $this->arguments]);
33
        return $this->executeCommand($this->getCommand());
34
    }
35
}
36