@@ -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 | { |
@@ -54,6 +54,9 @@ |
||
| 54 | 54 | return $this->renderAliases($all); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @return string |
|
| 59 | + */ |
|
| 57 | 60 | protected function getLocationsAndAliasName($varArgs) |
| 58 | 61 | { |
| 59 | 62 | $aliasName = ''; |
@@ -122,6 +122,7 @@ |
||
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * @inheritdoc |
| 125 | + * @return string |
|
| 125 | 126 | */ |
| 126 | 127 | public function localRoot() |
| 127 | 128 | { |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * combine the provided site alias with configuration. |
| 35 | 35 | * |
| 36 | - * @return SiteAlias read-only site alias combined with the runtime |
|
| 36 | + * @return SiteAliasWithConfig read-only site alias combined with the runtime |
|
| 37 | 37 | * config (overrides the site alias values) and the default config. |
| 38 | 38 | */ |
| 39 | 39 | public static function create(SiteAliasInterface $siteAlias, ConfigInterface $defaultConfig, ConfigInterface $runtimeConfig = null) |
@@ -47,6 +47,7 @@ discard block |
||
| 47 | 47 | * Determine what object to use for the runtime config. If a specific |
| 48 | 48 | * runtime config is given, use that. Otherwise, pull it from the default |
| 49 | 49 | * configuration if available. |
| 50 | + * @return ConfigInterface |
|
| 50 | 51 | */ |
| 51 | 52 | protected static function determineCorrectRuntimeConfig(ConfigInterface $defaultConfig, ConfigInterface $runtimeConfig) |
| 52 | 53 | { |
@@ -54,6 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * Allow 'self.site.yml' to be applied to any alias record found. |
| 57 | + * @param string $root |
|
| 57 | 58 | */ |
| 58 | 59 | public function setRoot($root) |
| 59 | 60 | { |
@@ -117,6 +118,7 @@ discard block |
||
| 117 | 118 | |
| 118 | 119 | /** |
| 119 | 120 | * Given only a site name, load the default environment from it. |
| 121 | + * @param string|null $sitename |
|
| 120 | 122 | */ |
| 121 | 123 | protected function loadDefaultEnvFromSitename($sitename) |
| 122 | 124 | { |
@@ -219,8 +221,8 @@ discard block |
||
| 219 | 221 | /** |
| 220 | 222 | * @param array $siteData list of sites with its respective data |
| 221 | 223 | * |
| 222 | - * @param SiteAliasName $aliasName The name of the record being created |
|
| 223 | 224 | * @param $siteData An associative array of envrionment => site data |
| 225 | + * @param string $sitename |
|
| 224 | 226 | * @return SiteAlias[] |
| 225 | 227 | */ |
| 226 | 228 | protected function createSiteAliassFromSiteData($sitename, $siteData, $location = '') |
@@ -386,7 +388,7 @@ discard block |
||
| 386 | 388 | /** |
| 387 | 389 | * Given an array of site aliases, find the first one that is |
| 388 | 390 | * local (has no 'host' item) and also contains a 'self.site.yml' file. |
| 389 | - * @param array $data |
|
| 391 | + * @param string $path |
|
| 390 | 392 | * @return array |
| 391 | 393 | */ |
| 392 | 394 | protected function findSelfSiteAliases($site_aliases, $path) |
@@ -450,6 +452,9 @@ discard block |
||
| 450 | 452 | return $this->loader[$extension]; |
| 451 | 453 | } |
| 452 | 454 | |
| 455 | + /** |
|
| 456 | + * @param string $extension |
|
| 457 | + */ |
|
| 453 | 458 | public function addLoader($extension, DataFileLoaderInterface $loader) |
| 454 | 459 | { |
| 455 | 460 | $this->loader[$extension] = $loader; |