@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Consolidation\Config\Config; |
5 | 5 | use Consolidation\Config\ConfigInterface; |
6 | -use Consolidation\Config\Util\ArrayUtil; |
|
7 | 6 | use Drush\Utils\FsUtils; |
8 | 7 | |
9 | 8 | /** |
@@ -1,8 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Consolidation\SiteAlias; |
3 | 3 | |
4 | -use Consolidation\Config\Config; |
|
5 | -use Consolidation\Config\ConfigInterface; |
|
6 | 4 | use Webmozart\PathUtil\Path; |
7 | 5 | |
8 | 6 | /** |
@@ -100,6 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | /** |
102 | 102 | * Given only a site name, load the default environment from it. |
103 | + * @param string|null $sitename |
|
103 | 104 | */ |
104 | 105 | protected function loadDefaultEnvFromSitename($sitename) |
105 | 106 | { |
@@ -173,8 +174,8 @@ discard block |
||
173 | 174 | /** |
174 | 175 | * @param array $siteData list of sites with its respective data |
175 | 176 | * |
176 | - * @param SiteAliasName $aliasName The name of the record being created |
|
177 | 177 | * @param $siteData An associative array of envrionment => site data |
178 | + * @param string $sitename |
|
178 | 179 | * @return AliasRecord[] |
179 | 180 | */ |
180 | 181 | protected function createAliasRecordsFromSiteData($sitename, $siteData) |
@@ -318,7 +319,6 @@ discard block |
||
318 | 319 | /** |
319 | 320 | * Given an array of site aliases, find the first one that is |
320 | 321 | * local (has no 'host' item) and also contains a 'self.site.yml' file. |
321 | - * @param array $data |
|
322 | 322 | * @return array |
323 | 323 | */ |
324 | 324 | protected function findSelfSiteAliases($site_aliases) |
@@ -365,6 +365,9 @@ discard block |
||
365 | 365 | return $this->loader[$extension]; |
366 | 366 | } |
367 | 367 | |
368 | + /** |
|
369 | + * @param string $extension |
|
370 | + */ |
|
368 | 371 | public function addLoader($extension, DataFileLoaderInterface $loader) |
369 | 372 | { |
370 | 373 | $this->loader[$extension] = $loader; |
@@ -276,8 +276,7 @@ |
||
276 | 276 | /** |
277 | 277 | * Process an alias name provided as '@sitename'. |
278 | 278 | * |
279 | - * @param string $sitename |
|
280 | - * @return true |
|
279 | + * @return boolean |
|
281 | 280 | */ |
282 | 281 | protected function processSingleItem($item) |
283 | 282 | { |