Homebrew   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getVersionCommand() 0 4 1
A getInstallCommand() 0 4 1
1
<?php
2
3
namespace Dock\Installer\System\Mac;
4
5
use Dock\Installer\SoftwareInstallTask;
6
7
class Homebrew extends SoftwareInstallTask
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function getName()
13
    {
14
        return 'homebrew';
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    protected function getVersionCommand()
21
    {
22
        return 'brew --version';
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    protected function getInstallCommand()
29
    {
30
        return 'ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"';
31
    }
32
}
33