@@ -111,7 +111,6 @@ |
||
| 111 | 111 | /** |
| 112 | 112 | * Get credentials. |
| 113 | 113 | * |
| 114 | - * @param OutputInterface $input |
|
| 115 | 114 | * @return array |
| 116 | 115 | */ |
| 117 | 116 | public function getCredentials(OutputInterface $output) |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * |
| 17 | 17 | * Overwrite file with provided content. |
| 18 | 18 | * |
| 19 | - * @param $file |
|
| 19 | + * @param string $file |
|
| 20 | 20 | * @param $content |
| 21 | 21 | */ |
| 22 | 22 | public function overwrite($file, $content) |
@@ -42,6 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * Get file contents |
| 45 | + * @param string $file |
|
| 45 | 46 | */ |
| 46 | 47 | public function get($file) { |
| 47 | 48 | return file_get_contents($file); |
@@ -156,8 +156,9 @@ |
||
| 156 | 156 | */ |
| 157 | 157 | protected function credentials() |
| 158 | 158 | { |
| 159 | - if (isset($this->credentials)) |
|
| 160 | - return $this->credentials; |
|
| 159 | + if (isset($this->credentials)) { |
|
| 160 | + return $this->credentials; |
|
| 161 | + } |
|
| 161 | 162 | throw new CredentialsException; |
| 162 | 163 | } |
| 163 | 164 | |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * |
| 127 | 127 | * @param $repo_name |
| 128 | 128 | * @param $repo_description |
| 129 | - * @return mixed |
|
| 129 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 130 | 130 | */ |
| 131 | 131 | public function createRepo($repo_name, $repo_description) |
| 132 | 132 | { |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | /** |
| 183 | 183 | * Compile the template using the given data. |
| 184 | 184 | * |
| 185 | - * @param $template |
|
| 185 | + * @param string $template |
|
| 186 | 186 | * @param $data |
| 187 | 187 | * @return mixed |
| 188 | 188 | */ |
@@ -217,7 +217,7 @@ |
||
| 217 | 217 | /** |
| 218 | 218 | * Obtain package. |
| 219 | 219 | * |
| 220 | - * @param $name |
|
| 220 | + * @param string $name |
|
| 221 | 221 | * |
| 222 | 222 | * @return array|int |
| 223 | 223 | */ |
@@ -115,10 +115,10 @@ |
||
| 115 | 115 | /** |
| 116 | 116 | * Insert file into file using mountpoint. |
| 117 | 117 | * |
| 118 | - * @param $mountpoint |
|
| 118 | + * @param string $mountpoint |
|
| 119 | 119 | * @param $fileToInsert |
| 120 | 120 | * |
| 121 | - * @return mixed |
|
| 121 | + * @return integer|null |
|
| 122 | 122 | */ |
| 123 | 123 | private function addFileIntoMountPoint($mountpoint, $fileToInsert, $outputFile = null) |
| 124 | 124 | { |
@@ -169,7 +169,9 @@ |
||
| 169 | 169 | */ |
| 170 | 170 | protected function service($file, $outputFile = null) |
| 171 | 171 | { |
| 172 | - if (!file_exists($file)) throw new FileNotFoundException($file); |
|
| 172 | + if (!file_exists($file)) { |
|
| 173 | + throw new FileNotFoundException($file); |
|
| 174 | + } |
|
| 173 | 175 | if ($this->installConfigFile() == -1) { |
| 174 | 176 | return; |
| 175 | 177 | } |