PlainValueUpdater   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A update() 0 4 2
1
<?php
2
namespace Yoanm\ComposerConfigManager\Application\Updater;
3
4
class PlainValueUpdater
5
{
6
    /**
7
     * @param string $baseValue
8
     * @param string $newValue
9
     *
10
     * @return string
11
     */
12 2
    public function update($newValue, $baseValue)
13
    {
14 2
        return $newValue ? $newValue : $baseValue;
15
    }
16
}
17