Skip to content

Commit fe39059

Browse files
authored
Merge pull request #126 from kevinfodness/hotfix/alphabetize-installed-paths
Sort list of installed paths before saving for consistency
2 parents 8223172 + 9d7607e commit fe39059

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Plugin.php

+1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ private function saveInstalledPaths()
267267
{
268268
// Check if we found installed paths to set.
269269
if (count($this->installedPaths) !== 0) {
270+
sort($this->installedPaths);
270271
$paths = implode(',', $this->installedPaths);
271272
$arguments = array('--config-set', self::PHPCS_CONFIG_KEY, $paths);
272273
$configMessage = sprintf(

0 commit comments

Comments
 (0)