StatusConfig::getLabels()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 12
rs 9.9332
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