Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit c7e349c

Browse files
committed
minor #91 add missing header comment and update doblocks (xabbuh)
This PR was merged into the 1.0-dev branch. Discussion ---------- add missing header comment and update doblocks Commits ------- 8868e2e add missing header comment and update doblocks
2 parents 363a1ed + 8868e2e commit c7e349c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

src/Symfony/Installer/NewCommand.php

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

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+
312
namespace Symfony\Installer;
413

514
use Distill\Distill;
@@ -83,6 +92,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
8392
* given directory.
8493
*
8594
* @return NewCommand
95+
*
96+
* @throws \RuntimeException if a project with the same does already exist
8697
*/
8798
private function checkProjectName()
8899
{
@@ -170,8 +181,7 @@ private function checkSymfonyVersionIsInstallable()
170181
*
171182
* @return NewCommand
172183
*
173-
* @throws \Distill\Exception\FormatGuesserRequiredException
174-
* @throws \Distill\Exception\StrategyRequiredException
184+
* @throws \RuntimeException if the Symfony archive could not be downloaded
175185
*/
176186
private function download()
177187
{
@@ -263,6 +273,8 @@ private function download()
263273
* native operating system commands if available or PHP code otherwise.
264274
*
265275
* @return NewCommand
276+
*
277+
* @throws \RuntimeException if the downloaded archive could not be extracted
266278
*/
267279
private function extract()
268280
{
@@ -476,6 +488,9 @@ private function formatSize($bytes)
476488
* Formats the error message contained in the given Requirement item
477489
* using the optional line length provided.
478490
*
491+
* @param \Requirement $requirement The Symfony requirements
492+
* @param int $lineSize The maximum line length
493+
*
479494
* @return string
480495
*/
481496
private function getErrorMessage(\Requirement $requirement, $lineSize = 70)

0 commit comments

Comments
 (0)