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