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

add missing header comment and update doblocks #91

Merged
merged 1 commit into from
Dec 24, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions src/Symfony/Installer/NewCommand.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony Installer package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Installer;

use Distill\Distill;
Expand Down Expand Up @@ -83,6 +92,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
* given directory.
*
* @return NewCommand
*
* @throws \RuntimeException if a project with the same does already exist
*/
private function checkProjectName()
{
Expand Down Expand Up @@ -170,8 +181,7 @@ private function checkSymfonyVersionIsInstallable()
*
* @return NewCommand
*
* @throws \Distill\Exception\FormatGuesserRequiredException
* @throws \Distill\Exception\StrategyRequiredException
* @throws \RuntimeException if the Symfony archive could not be downloaded
*/
private function download()
{
Expand Down Expand Up @@ -263,6 +273,8 @@ private function download()
* native operating system commands if available or PHP code otherwise.
*
* @return NewCommand
*
* @throws \RuntimeException if the downloaded archive could not be extracted
*/
private function extract()
{
Expand Down Expand Up @@ -476,6 +488,9 @@ private function formatSize($bytes)
* Formats the error message contained in the given Requirement item
* using the optional line length provided.
*
* @param \Requirement $requirement The Symfony requirements
* @param int $lineSize The maximum line length
*
* @return string
*/
private function getErrorMessage(\Requirement $requirement, $lineSize = 70)
Expand Down