@@ -193,6 +193,7 @@ |
||
| 193 | 193 | * Prepare aliases. |
| 194 | 194 | * @param PackageInterface $package |
| 195 | 195 | * @param string 'psr-0' or 'psr-4' |
| 196 | + * @param string $psr |
|
| 196 | 197 | * @return array |
| 197 | 198 | */ |
| 198 | 199 | protected function prepareAliases(PackageInterface $package, $psr, $dev = false) |
@@ -33,6 +33,9 @@ |
||
| 33 | 33 | 'yml' => YamlReader::class, |
| 34 | 34 | ]; |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $path |
|
| 38 | + */ |
|
| 36 | 39 | public static function get($path) |
| 37 | 40 | { |
| 38 | 41 | $ext = pathinfo($path, PATHINFO_EXTENSION); |
@@ -252,6 +252,9 @@ discard block |
||
| 252 | 252 | return static::substitutePaths($data, $dir, static::BASE_DIR_MARKER); |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | + /** |
|
| 256 | + * @param string $path |
|
| 257 | + */ |
|
| 255 | 258 | public static function normalizePath($path, $ds = DIRECTORY_SEPARATOR) |
| 256 | 259 | { |
| 257 | 260 | return rtrim(strtr($path, '\/', '/'), $ds); |
@@ -296,6 +299,9 @@ discard block |
||
| 296 | 299 | return $skippable . $result; |
| 297 | 300 | } |
| 298 | 301 | |
| 302 | + /** |
|
| 303 | + * @param string $name |
|
| 304 | + */ |
|
| 299 | 305 | public function loadConfig($name) |
| 300 | 306 | { |
| 301 | 307 | return $this->loadFile($this->getOutputPath($name)); |