Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
45 | 84 | protected static function simpleMerge(string $base, string $remote, string $local) |
|
46 | { |
||
47 | // Skip complex merging if there is nothing to do. |
||
48 | 84 | if ($base == $remote) { |
|
49 | 16 | return $local; |
|
50 | } |
||
51 | 76 | if ($base == $local) { |
|
52 | 8 | return $remote; |
|
53 | } |
||
54 | 68 | if ($remote == $local) { |
|
55 | 8 | return $remote; |
|
56 | } |
||
57 | // Return nothing and let sub-classes deal with it. |
||
58 | 60 | return null; |
|
59 | } |
||
60 | |||
73 |