StatusConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 11
dl 0
loc 14
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getLabels() 0 12 1
1
<?php
2
/**
3
 * Copyright © Vaimo Group. All rights reserved.
4
 * See LICENSE_VAIMO.txt for license details.
5
 */
6
namespace Vaimo\ComposerPatches\Package\PatchApplier;
7
8
use Vaimo\ComposerPatches\Patch\Definition as Patch;
9
10
class StatusConfig
11
{
12
    public function getLabels()
13
    {
14
        return array(
15
            Patch::STATUS_NEW => '<info>NEW</info>',
16
            Patch::STATUS_ERRORS => '<fg=red>%s</>',
17
            Patch::STATUS_CHANGED => '<fg=yellow>CHANGED</>',
18
            Patch::STATUS_MATCH => '<info>MATCH</info>',
19
            Patch::STATUS_AFFECTED => '<fg=cyan>AFFECTED</>',
20
            Patch::STATUS_APPLIED => '<fg=white;options=bold>APPLIED</>',
21
            Patch::STATUS_REMOVED => '<fg=red>REMOVED</>',
22
            Patch::STATUS_EXCLUDED => '<fg=black>EXCLUDED</>',
23
            Patch::STATUS_UNKNOWN => 'UNKNOWN'
24
        );
25
    }
26
}
27