Skip to content

Commit 1c16cb4

Browse files
committed
fix: Added a warning instead of cs-fix
1 parent db1567e commit 1c16cb4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎system/Commands/Translation/LocalizationFinder.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ private function process(string $currentDir, string $currentLocale): void
135135
if (false === file_put_contents($languageFilePath, $this->templateFile($newLanguageKeys))) {
136136
$this->writeIsVerbose('Lang file ' . $langFileName . ' (error write).', 'red');
137137
} else {
138-
exec('composer cs-fix --quiet ' . $this->languagePath);
139138
$this->writeIsVerbose('Lang file "' . $langFileName . '" successful updated!', 'green');
140139
}
141140
}
@@ -147,6 +146,10 @@ private function process(string $currentDir, string $currentLocale): void
147146
CLI::table($tableRows, ['File', 'Key']);
148147
}
149148

149+
if (! $this->showNew && $countNewKeys > 0) {
150+
CLI::write('Note: You need to run your linting tool to fix coding standards issues.', 'white', 'red');
151+
}
152+
150153
$this->writeIsVerbose('Files found: ' . $countFiles);
151154
$this->writeIsVerbose('New translates found: ' . $countNewKeys);
152155
}

0 commit comments

Comments
 (0)