Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed CS

  • Loading branch information...
commit 2da4fd08df75ac17926b6de4d11c7bddba0e4328 1 parent 808bf42
@fabpot fabpot authored
View
2  Application.php
@@ -619,7 +619,7 @@ public function all($namespace = null)
*
* @return array An array of abbreviations
*/
- static public function getAbbreviations($names)
+ public static function getAbbreviations($names)
{
$abbrevs = array();
foreach ($names as $name) {
View
12 Formatter/OutputFormatterInterface.php
@@ -27,7 +27,7 @@
*
* @api
*/
- function setDecorated($decorated);
+ public function setDecorated($decorated);
/**
* Gets the decorated flag.
@@ -36,7 +36,7 @@ function setDecorated($decorated);
*
* @api
*/
- function isDecorated();
+ public function isDecorated();
/**
* Sets a new style.
@@ -46,7 +46,7 @@ function isDecorated();
*
* @api
*/
- function setStyle($name, OutputFormatterStyleInterface $style);
+ public function setStyle($name, OutputFormatterStyleInterface $style);
/**
* Checks if output formatter has style with specified name.
@@ -57,7 +57,7 @@ function setStyle($name, OutputFormatterStyleInterface $style);
*
* @api
*/
- function hasStyle($name);
+ public function hasStyle($name);
/**
* Gets style options from style with specified name.
@@ -68,7 +68,7 @@ function hasStyle($name);
*
* @api
*/
- function getStyle($name);
+ public function getStyle($name);
/**
* Formats a message according to the given styles.
@@ -79,5 +79,5 @@ function getStyle($name);
*
* @api
*/
- function format($message);
+ public function format($message);
}
View
6 Formatter/OutputFormatterStyle.php
@@ -20,7 +20,7 @@
*/
class OutputFormatterStyle implements OutputFormatterStyleInterface
{
- static private $availableForegroundColors = array(
+ private static $availableForegroundColors = array(
'black' => 30,
'red' => 31,
'green' => 32,
@@ -30,7 +30,7 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
'cyan' => 36,
'white' => 37
);
- static private $availableBackgroundColors = array(
+ private static $availableBackgroundColors = array(
'black' => 40,
'red' => 41,
'green' => 42,
@@ -40,7 +40,7 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
'cyan' => 46,
'white' => 47
);
- static private $availableOptions = array(
+ private static $availableOptions = array(
'bold' => 1,
'underscore' => 4,
'blink' => 5,
View
12 Formatter/OutputFormatterStyleInterface.php
@@ -27,7 +27,7 @@
*
* @api
*/
- function setForeground($color = null);
+ public function setForeground($color = null);
/**
* Sets style background color.
@@ -36,7 +36,7 @@ function setForeground($color = null);
*
* @api
*/
- function setBackground($color = null);
+ public function setBackground($color = null);
/**
* Sets some specific style option.
@@ -45,21 +45,21 @@ function setBackground($color = null);
*
* @api
*/
- function setOption($option);
+ public function setOption($option);
/**
* Unsets some specific style option.
*
* @param string $option Theoption name
*/
- function unsetOption($option);
+ public function unsetOption($option);
/**
* Sets multiple style options at once.
*
* @param array $options
*/
- function setOptions(array $options);
+ public function setOptions(array $options);
/**
* Applies the style to a given text.
@@ -68,5 +68,5 @@ function setOptions(array $options);
*
* @return string
*/
- function apply($text);
+ public function apply($text);
}
View
6 Helper/HelperInterface.php
@@ -27,7 +27,7 @@
*
* @api
*/
- function setHelperSet(HelperSet $helperSet = null);
+ public function setHelperSet(HelperSet $helperSet = null);
/**
* Gets the helper set associated with this helper.
@@ -36,7 +36,7 @@ function setHelperSet(HelperSet $helperSet = null);
*
* @api
*/
- function getHelperSet();
+ public function getHelperSet();
/**
* Returns the canonical name of this helper.
@@ -45,5 +45,5 @@ function getHelperSet();
*
* @api
*/
- function getName();
+ public function getName();
}
View
30 Input/InputInterface.php
@@ -23,7 +23,7 @@
*
* @return string The value of the first argument or null otherwise
*/
- function getFirstArgument();
+ public function getFirstArgument();
/**
* Returns true if the raw parameters (not parsed) contain a value.
@@ -35,7 +35,7 @@ function getFirstArgument();
*
* @return Boolean true if the value is contained in the raw parameters
*/
- function hasParameterOption($values);
+ public function hasParameterOption($values);
/**
* Returns the value of a raw option (not parsed).
@@ -48,14 +48,14 @@ function hasParameterOption($values);
*
* @return mixed The option value
*/
- function getParameterOption($values, $default = false);
+ public function getParameterOption($values, $default = false);
/**
* Binds the current Input instance with the given arguments and options.
*
* @param InputDefinition $definition A InputDefinition instance
*/
- function bind(InputDefinition $definition);
+ public function bind(InputDefinition $definition);
/**
* Validates if arguments given are correct.
@@ -64,14 +64,14 @@ function bind(InputDefinition $definition);
*
* @throws \RuntimeException
*/
- function validate();
+ public function validate();
/**
* Returns all the given arguments merged with the default values.
*
* @return array
*/
- function getArguments();
+ public function getArguments();
/**
* Gets argument by name.
@@ -80,7 +80,7 @@ function getArguments();
*
* @return mixed
*/
- function getArgument($name);
+ public function getArgument($name);
/**
* Sets an argument value by name.
@@ -90,7 +90,7 @@ function getArgument($name);
*
* @throws \InvalidArgumentException When argument given doesn't exist
*/
- function setArgument($name, $value);
+ public function setArgument($name, $value);
/**
* Returns true if an InputArgument object exists by name or position.
@@ -99,14 +99,14 @@ function setArgument($name, $value);
*
* @return Boolean true if the InputArgument object exists, false otherwise
*/
- function hasArgument($name);
+ public function hasArgument($name);
/**
* Returns all the given options merged with the default values.
*
* @return array
*/
- function getOptions();
+ public function getOptions();
/**
* Gets an option by name.
@@ -115,7 +115,7 @@ function getOptions();
*
* @return mixed
*/
- function getOption($name);
+ public function getOption($name);
/**
* Sets an option value by name.
@@ -125,7 +125,7 @@ function getOption($name);
*
* @throws \InvalidArgumentException When option given doesn't exist
*/
- function setOption($name, $value);
+ public function setOption($name, $value);
/**
* Returns true if an InputOption object exists by name.
@@ -134,19 +134,19 @@ function setOption($name, $value);
*
* @return Boolean true if the InputOption object exists, false otherwise
*/
- function hasOption($name);
+ public function hasOption($name);
/**
* Is this input means interactive?
*
* @return Boolean
*/
- function isInteractive();
+ public function isInteractive();
/**
* Sets the input interactivity.
*
* @param Boolean $interactive If the input should be interactive
*/
- function setInteractive($interactive);
+ public function setInteractive($interactive);
}
View
16 Output/OutputInterface.php
@@ -41,7 +41,7 @@
*
* @api
*/
- function write($messages, $newline = false, $type = 0);
+ public function write($messages, $newline = false, $type = 0);
/**
* Writes a message to the output and adds a newline at the end.
@@ -51,7 +51,7 @@ function write($messages, $newline = false, $type = 0);
*
* @api
*/
- function writeln($messages, $type = 0);
+ public function writeln($messages, $type = 0);
/**
* Sets the verbosity of the output.
@@ -60,7 +60,7 @@ function writeln($messages, $type = 0);
*
* @api
*/
- function setVerbosity($level);
+ public function setVerbosity($level);
/**
* Gets the current verbosity of the output.
@@ -69,7 +69,7 @@ function setVerbosity($level);
*
* @api
*/
- function getVerbosity();
+ public function getVerbosity();
/**
* Sets the decorated flag.
@@ -78,7 +78,7 @@ function getVerbosity();
*
* @api
*/
- function setDecorated($decorated);
+ public function setDecorated($decorated);
/**
* Gets the decorated flag.
@@ -87,7 +87,7 @@ function setDecorated($decorated);
*
* @api
*/
- function isDecorated();
+ public function isDecorated();
/**
* Sets output formatter.
@@ -96,7 +96,7 @@ function isDecorated();
*
* @api
*/
- function setFormatter(OutputFormatterInterface $formatter);
+ public function setFormatter(OutputFormatterInterface $formatter);
/**
* Returns current output formatter instance.
@@ -105,5 +105,5 @@ function setFormatter(OutputFormatterInterface $formatter);
*
* @api
*/
- function getFormatter();
+ public function getFormatter();
}
View
4 Tests/ApplicationTest.php
@@ -21,9 +21,9 @@
class ApplicationTest extends \PHPUnit_Framework_TestCase
{
- static protected $fixturesPath;
+ protected static $fixturesPath;
- static public function setUpBeforeClass()
+ public static function setUpBeforeClass()
{
self::$fixturesPath = realpath(__DIR__.'/Fixtures/');
require_once self::$fixturesPath.'/FooCommand.php';
View
4 Tests/Command/CommandTest.php
@@ -25,9 +25,9 @@
class CommandTest extends \PHPUnit_Framework_TestCase
{
- static protected $fixturesPath;
+ protected static $fixturesPath;
- static public function setUpBeforeClass()
+ public static function setUpBeforeClass()
{
self::$fixturesPath = __DIR__.'/../Fixtures/';
require_once self::$fixturesPath.'/TestCommand.php';
View
5 Tests/Input/InputDefinitionTest.php
@@ -17,11 +17,11 @@
class InputDefinitionTest extends \PHPUnit_Framework_TestCase
{
- static protected $fixtures;
+ protected static $fixtures;
protected $foo, $bar, $foo1, $foo2;
- static public function setUpBeforeClass()
+ public static function setUpBeforeClass()
{
self::$fixtures = __DIR__.'/../Fixtures/';
}
@@ -97,7 +97,6 @@ public function testAddArgument()
$this->assertEquals('Cannot add an argument after an array argument.', $e->getMessage());
}
-
// cannot add a required argument after an optional one
$definition = new InputDefinition();
$definition->addArgument($this->foo);
Please sign in to comment.
Something went wrong with that request. Please try again.