IniMergeStrategy
API reference › Scaffold › Merge › IniMergeStrategy
Merges EditorConfig and INI files section by section; existing keys always keep the consumer value.
See also: https://spec.editorconfig.org/.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
merge() | Adds the provider entries missing from the consumer. | AbstractLineMergeStrategy |
plan() protected | Plans missing preamble keys, missing keys inside existing sections and missing sections appended whole. | IniMergeStrategy |
Method details
Section titled “Method details”plan()
Section titled “plan() ”protected function plan(list<string> $provider, list<string> $consumer): PHPForge\Scaffold\Merge\MergePlanPlans missing preamble keys, missing keys inside existing sections and missing sections appended whole.
Parameters
| Parameter | Type | Description |
|---|---|---|
$provider | list<string> | Provider lines. |
$consumer | list<string> | Consumer lines without terminators. |
Returns
PHPForge\Scaffold\Merge\MergePlan: Lines to insert after a consumer line index and blocks to append; both empty when satisfied.