Ver código fonte

fixed some coding standards (extracted from 37c45180ae5513927586)

Fabien Potencier 15 anos atrás
pai
commit
eec7db8238

+ 0 - 1
src/Symfony/Components/Console/Application.php

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

+ 0 - 1
src/Symfony/Components/Console/Command/Command.php

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

+ 1 - 2
src/Symfony/Components/Console/Helper/Helper.php

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

+ 3 - 3
src/Symfony/Components/Console/Helper/HelperSet.php

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