Skip to content

Commit

Permalink
Merge pull request #126 from kevinfodness/hotfix/alphabetize-installe…
Browse files Browse the repository at this point in the history
…d-paths

Sort list of installed paths before saving for consistency
  • Loading branch information
Potherca authored Dec 7, 2020
2 parents 8223172 + 9d7607e commit fe39059
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ private function saveInstalledPaths()
{
// Check if we found installed paths to set.
if (count($this->installedPaths) !== 0) {
sort($this->installedPaths);
$paths = implode(',', $this->installedPaths);
$arguments = array('--config-set', self::PHPCS_CONFIG_KEY, $paths);
$configMessage = sprintf(
Expand Down

0 comments on commit fe39059

Please sign in to comment.