TextMergeStrategy
API reference › Scaffold › Merge › TextMergeStrategy
Merges plain text by appending the non-blank provider lines the consumer lacks, compared after right-trim.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
merge() | Adds the provider entries missing from the consumer. | AbstractLineMergeStrategy |
plan() protected | Plans one block, appended at the end, with the missing provider lines in provider order. | TextMergeStrategy |
Method details
Section titled “Method details”plan()
Section titled “plan() ”protected function plan(list<string> $provider, list<string> $consumer): PHPForge\Scaffold\Merge\MergePlanPlans one block, appended at the end, with the missing provider lines in provider order.
Parameters
| Parameter | Type | Description |
|---|---|---|
$provider | list<string> | Provider lines. |
$consumer | list<string> | Consumer lines without terminators. |
Returns
PHPForge\Scaffold\Merge\MergePlan: No insertions, and one block of missing lines, or no block when the consumer has them all.