You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->getLogger()->info("Old enrichment field '$oldKeyString' doesn't exist. New enrichment field '$newKeyString' didn't exist either and was created.");
101
-
// If only the new enrichment field exists, no changes are needed
$this->getLogger()->info("Old enrichment field '$oldKeyString' doesn't exist. New enrichment field '$newKeyString' exists. Already up-to-date. No changes needed.");
94
+
// If only the new enrichment exists, no changes are needed
95
+
$this->log("New enrichment field '{$newKeyString}' already exists. No changes needed.");
104
96
}
105
97
} else {
106
-
// If old and new enrichment field exist already, something seems to be wrong and should be checked
107
98
if ($newField !== null) {
108
-
$this->log($colors->red("Old enrichment field '$oldKeyString' and new one '$newKeyString' exist parallel. Please clean this up manually."));
109
-
// If only the old enrichment field exists, it is updated to its new name
99
+
// If old and new enrichment exist, something seems to be wrong and should be checked manually
100
+
$this->log($colors->red(
101
+
"Old ({$oldKeyString}) and new ({$newKeyString}) enrichment exist. Please clean up manually."
102
+
));
110
103
} else {
104
+
// If only the old enrichment field exists, it is updated to its new name
$this->getLogger()->info("Translation key '$oldKey' updated successfully to '$newKey'.");
156
+
$this->log("Translation key '{$oldKey}' updated to '{$newKey}'.");
172
157
}
173
-
// If the old translation key doesn't exist, no action is needed
174
-
} else {
175
-
$this->getLogger()->info("Old translation Key '$oldKey' was not edited. No changes needed.");
176
158
}
177
159
}
178
160
179
161
// Provide information on modified new translation keys that already exist so
180
-
// the user may check whether something might be wrong or everything is ok.
181
-
if (isset($modNewKeys) && count(array_keys($modNewKeys)) > 0) {
182
-
foreach (array_keys($modNewKeys) as$modNewKey) {
183
-
$this->log($colors->yellow("New translation key '$modNewKey' exists and has already been modified. Old key doesn't exist or hasn't been modified. You should check this manually."));
162
+
// the user may check if something is wrong or everything is ok.
163
+
// TODO does this make sense? Does it provide useful information?
0 commit comments