Passed
Push — master ( a5e8db...945884 )
by Danny
02:33
created

PreInstall   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A executeCommands() 0 9 2
1
<?php
2
namespace PressCLI\Command;
3
4
use PressCLI\Option\Configuration;
5
6
class PreInstall
7
{
8
    /**
9
     * Executes the pre-install commands.
10
     */
11
    public static function executeCommands()
12
    {
13
        $config = Configuration::get();
14
15
        // Run commands.
16
        foreach ($config['commands']['preInstall'] as $command) {
17
            system($command);
18
        }
19
    }
20
}
21