fixed some coding standards (extracted from 37c45180ae5513927586)

This commit is contained in:
Fabien Potencier 2010-05-19 15:27:53 +02:00
parent 5e1c495bbb
commit eec7db8238
4 changed files with 4 additions and 7 deletions

View File

@ -48,7 +48,6 @@ class Application
{ {
protected $commands; protected $commands;
protected $aliases; protected $aliases;
protected $application;
protected $wantHelps = false; protected $wantHelps = false;
protected $runningCommand; protected $runningCommand;
protected $name; protected $name;

View File

@ -35,7 +35,6 @@ class Command
protected $application; protected $application;
protected $description; protected $description;
protected $ignoreValidationErrors; protected $ignoreValidationErrors;
protected $formatter;
protected $applicationDefinitionMerged; protected $applicationDefinitionMerged;
protected $code; protected $code;

View File

@ -20,8 +20,7 @@ namespace Symfony\Components\Console\Helper;
*/ */
abstract class Helper implements HelperInterface abstract class Helper implements HelperInterface
{ {
protected protected $helperSet = null;
$helperSet = null;
/** /**
* Sets the helper set associated with this helper. * Sets the helper set associated with this helper.

View File

@ -22,15 +22,15 @@ use Symfony\Components\Console\Command\Command;
*/ */
class HelperSet class HelperSet
{ {
protected protected $helpers;
$helpers = array(), protected $command;
$command = null;
/** /**
* @param Helper[] $helpers An array of helper. * @param Helper[] $helpers An array of helper.
*/ */
public function __construct(array $helpers = array()) public function __construct(array $helpers = array())
{ {
$this->helpers = array();
foreach ($helpers as $alias => $helper) { foreach ($helpers as $alias => $helper) {
$this->set($helper, is_int($alias) ? null : $alias); $this->set($helper, is_int($alias) ? null : $alias);
} }