Skip to content

Commit

Permalink
[console] Remove duplicated directories. (#321)
Browse files Browse the repository at this point in the history
* [console] Remove duplicated // character.

* [console] Remove duplicated directories.
  • Loading branch information
jmolivas authored Feb 18, 2018
1 parent e22ccaf commit 169c3ae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Utils/ConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@ private function getSitesDirectories()
{
$sitesDirectories = array_map(
function ($directory) {
return sprintf(
'%s/sites',
$directory
);
return $directory . 'sites';
},
$this->getConfigurationDirectories()
);
Expand All @@ -169,6 +166,8 @@ function ($directory) {
}
);

$sitesDirectories = array_unique($sitesDirectories);

return $sitesDirectories;
}

Expand Down

0 comments on commit 169c3ae

Please sign in to comment.