Passed
Push — master ( d95e49...7c87fb )
by Andrés
39s
created

AbstractComposerTask   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getOptions() 0 11 1
A getComposerOptions() 0 4 1
1
<?php
2
/*
3
 * This file is part of the Magallanes package.
4
 *
5
 * (c) Andrés Montañez <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Mage\Task\BuiltIn\Composer;
12
13
use Mage\Task\AbstractTask;
14
15
/**
16
 * Abstract Composer Task
17
 *
18
 * @author Andrés Montañez <[email protected]>
19
 */
20
abstract class AbstractComposerTask extends AbstractTask
21
{
22 25
    protected function getOptions()
23
    {
24 25
        $options = array_merge(
25 25
            ['path' => 'composer'],
26 25
            $this->getComposerOptions(),
27 25
            $this->runtime->getMergedOption('composer'),
28 25
            $this->options
29 25
        );
30
31 25
        return $options;
32
    }
33
34 1
    protected function getComposerOptions()
35
    {
36 1
        return [];
37
    }
38
}
39