@@ -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 | /** |
@@ -104,6 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * Given only a site name, load the default environment from it. |
| 107 | + * @param string|null $sitename |
|
| 107 | 108 | */ |
| 108 | 109 | protected function loadDefaultEnvFromSitename($sitename) |
| 109 | 110 | { |
@@ -201,8 +202,8 @@ discard block |
||
| 201 | 202 | /** |
| 202 | 203 | * @param array $siteData list of sites with its respective data |
| 203 | 204 | * |
| 204 | - * @param SiteAliasName $aliasName The name of the record being created |
|
| 205 | 205 | * @param $siteData An associative array of envrionment => site data |
| 206 | + * @param string $sitename |
|
| 206 | 207 | * @return AliasRecord[] |
| 207 | 208 | */ |
| 208 | 209 | protected function createAliasRecordsFromSiteData($sitename, $siteData, $location = '') |
@@ -357,7 +358,6 @@ discard block |
||
| 357 | 358 | /** |
| 358 | 359 | * Given an array of site aliases, find the first one that is |
| 359 | 360 | * local (has no 'host' item) and also contains a 'self.site.yml' file. |
| 360 | - * @param array $data |
|
| 361 | 361 | * @return array |
| 362 | 362 | */ |
| 363 | 363 | protected function findSelfSiteAliases($site_aliases) |
@@ -404,6 +404,9 @@ discard block |
||
| 404 | 404 | return $this->loader[$extension]; |
| 405 | 405 | } |
| 406 | 406 | |
| 407 | + /** |
|
| 408 | + * @param string $extension |
|
| 409 | + */ |
|
| 407 | 410 | public function addLoader($extension, DataFileLoaderInterface $loader) |
| 408 | 411 | { |
| 409 | 412 | $this->loader[$extension] = $loader; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * are defined by the alias contents. |
| 81 | 81 | * |
| 82 | 82 | * @param type $path |
| 83 | - * @return type |
|
| 83 | + * @return string |
|
| 84 | 84 | */ |
| 85 | 85 | public static function locationFromPath($path) |
| 86 | 86 | { |
@@ -315,8 +315,7 @@ discard block |
||
| 315 | 315 | /** |
| 316 | 316 | * Process an alias name provided as '@sitename'. |
| 317 | 317 | * |
| 318 | - * @param string $sitename |
|
| 319 | - * @return true |
|
| 318 | + * @return boolean |
|
| 320 | 319 | */ |
| 321 | 320 | protected function processSingleItem($item) |
| 322 | 321 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * Add a location that alias files may be found. |
| 38 | 38 | * |
| 39 | - * @param string $path |
|
| 39 | + * @param string $paths |
|
| 40 | 40 | * @return $this |
| 41 | 41 | */ |
| 42 | 42 | public function addSearchLocation($paths) |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * of the specified search locations. |
| 106 | 106 | * |
| 107 | 107 | * @param string $siteName |
| 108 | - * @return string|bool |
|
| 108 | + * @return false|string |
|
| 109 | 109 | */ |
| 110 | 110 | public function findSingleSiteAliasFile($siteName) |
| 111 | 111 | { |