|
1 | 1 | <?php
|
2 | 2 |
|
| 3 | +/* |
| 4 | + * This file is part of the Symfony Installer package. |
| 5 | + * |
| 6 | + * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | + * |
| 8 | + * For the full copyright and license information, please view the LICENSE |
| 9 | + * file that was distributed with this source code. |
| 10 | + */ |
| 11 | + |
3 | 12 | namespace Symfony\Installer;
|
4 | 13 |
|
5 | 14 | use Distill\Distill;
|
@@ -83,6 +92,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
|
83 | 92 | * given directory.
|
84 | 93 | *
|
85 | 94 | * @return NewCommand
|
| 95 | + * |
| 96 | + * @throws \RuntimeException if a project with the same does already exist |
86 | 97 | */
|
87 | 98 | private function checkProjectName()
|
88 | 99 | {
|
@@ -170,8 +181,7 @@ private function checkSymfonyVersionIsInstallable()
|
170 | 181 | *
|
171 | 182 | * @return NewCommand
|
172 | 183 | *
|
173 |
| - * @throws \Distill\Exception\FormatGuesserRequiredException |
174 |
| - * @throws \Distill\Exception\StrategyRequiredException |
| 184 | + * @throws \RuntimeException if the Symfony archive could not be downloaded |
175 | 185 | */
|
176 | 186 | private function download()
|
177 | 187 | {
|
@@ -263,6 +273,8 @@ private function download()
|
263 | 273 | * native operating system commands if available or PHP code otherwise.
|
264 | 274 | *
|
265 | 275 | * @return NewCommand
|
| 276 | + * |
| 277 | + * @throws \RuntimeException if the downloaded archive could not be extracted |
266 | 278 | */
|
267 | 279 | private function extract()
|
268 | 280 | {
|
@@ -476,6 +488,9 @@ private function formatSize($bytes)
|
476 | 488 | * Formats the error message contained in the given Requirement item
|
477 | 489 | * using the optional line length provided.
|
478 | 490 | *
|
| 491 | + * @param \Requirement $requirement The Symfony requirements |
| 492 | + * @param int $lineSize The maximum line length |
| 493 | + * |
479 | 494 | * @return string
|
480 | 495 | */
|
481 | 496 | private function getErrorMessage(\Requirement $requirement, $lineSize = 70)
|
|
0 commit comments