@@ -188,6 +188,7 @@ |
||
| 188 | 188 | * |
| 189 | 189 | * @param PackageInterface $package |
| 190 | 190 | * @param string 'psr-0' or 'psr-4' |
| 191 | + * @param string $psr |
|
| 191 | 192 | * @return array |
| 192 | 193 | */ |
| 193 | 194 | protected function prepareAliases(PackageInterface $package, $psr) |
@@ -38,6 +38,9 @@ discard block |
||
| 38 | 38 | const BASE_DIR_SAMPLE = '<base-dir>'; |
| 39 | 39 | const FILES_FILENAME = '__files'; |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $outputDir |
|
| 43 | + */ |
|
| 41 | 44 | public function __construct($outputDir, array $files = []) |
| 42 | 45 | { |
| 43 | 46 | $this->files = $files; |
@@ -99,6 +102,9 @@ discard block |
||
| 99 | 102 | static::writeFile($this->getOutputPath($name), $data); |
| 100 | 103 | } |
| 101 | 104 | |
| 105 | + /** |
|
| 106 | + * @param string $name |
|
| 107 | + */ |
|
| 102 | 108 | public function getOutputPath($name) |
| 103 | 109 | { |
| 104 | 110 | return $this->outputDir . DIRECTORY_SEPARATOR . $name . '.php'; |
@@ -154,6 +160,9 @@ discard block |
||
| 154 | 160 | $this->io = $io; |
| 155 | 161 | } |
| 156 | 162 | |
| 163 | + /** |
|
| 164 | + * @param string $text |
|
| 165 | + */ |
|
| 157 | 166 | protected function writeError($text) |
| 158 | 167 | { |
| 159 | 168 | if (isset($this->io)) { |