Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
41 | 21 | protected static function simpleMerge(string $base, string $remote, string $local) |
|
42 | { |
||
43 | // Skip complex merging if there is nothing to do. |
||
44 | 21 | if ($base === $remote) { |
|
45 | 4 | return $local; |
|
46 | } |
||
47 | 19 | if ($base === $local) { |
|
48 | 2 | return $remote; |
|
49 | } |
||
50 | 17 | if ($remote === $local) { |
|
51 | 2 | return $remote; |
|
52 | } |
||
53 | // Return nothing and let sub-classes deal with it. |
||
54 | 15 | return null; |
|
55 | } |
||
69 |