Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed CS (mainly method signatures)

  • Loading branch information...
commit c3a940d93ca03064b6a9f3606a552eb63d0f4a9f 1 parent 6a06a62
@fabpot fabpot authored
View
2  Compiler/CompilerPassInterface.php
@@ -31,5 +31,5 @@
*
* @api
*/
- function process(ContainerBuilder $container);
+ public function process(ContainerBuilder $container);
}
View
1  Compiler/LoggingFormatter.php
@@ -11,7 +11,6 @@
namespace Symfony\Component\DependencyInjection\Compiler;
-
/**
* Used to format logging messages during the compilation.
*
View
2  Compiler/RepeatablePassInterface.php
@@ -24,5 +24,5 @@
*
* @param RepeatedPass $repeatedPass
*/
- function setRepeatedPass(RepeatedPass $repeatedPass);
+ public function setRepeatedPass(RepeatedPass $repeatedPass);
}
View
4 Container.php
@@ -440,7 +440,7 @@ public function isScopeActive($name)
*
* @return string The camelized string
*/
- static public function camelize($id)
+ public static function camelize($id)
{
return preg_replace_callback('/(^|_|\.)+(.)/', function ($match) { return ('.' === $match[1] ? '_' : '').strtoupper($match[2]); }, $id);
}
@@ -452,7 +452,7 @@ static public function camelize($id)
*
* @return string The underscored string
*/
- static public function underscore($id)
+ public static function underscore($id)
{
return strtolower(preg_replace(array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\d])([A-Z])/'), array('\\1_\\2', '\\1_\\2'), strtr($id, '_', '.')));
}
View
2  ContainerAwareInterface.php
@@ -27,5 +27,5 @@
*
* @api
*/
- function setContainer(ContainerInterface $container = null);
+ public function setContainer(ContainerInterface $container = null);
}
View
2  ContainerBuilder.php
@@ -837,7 +837,7 @@ public function findTaggedServiceIds($name)
*
* @return array An array of Service conditionals
*/
- static public function getServiceConditionals($value)
+ public static function getServiceConditionals($value)
{
$services = array();
View
22 ContainerInterface.php
@@ -36,7 +36,7 @@
*
* @api
*/
- function set($id, $service, $scope = self::SCOPE_CONTAINER);
+ public function set($id, $service, $scope = self::SCOPE_CONTAINER);
/**
* Gets a service.
@@ -52,7 +52,7 @@ function set($id, $service, $scope = self::SCOPE_CONTAINER);
*
* @api
*/
- function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
+ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
/**
* Returns true if the given service is defined.
@@ -63,7 +63,7 @@ function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
*
* @api
*/
- function has($id);
+ public function has($id);
/**
* Gets a parameter.
@@ -76,7 +76,7 @@ function has($id);
*
* @api
*/
- function getParameter($name);
+ public function getParameter($name);
/**
* Checks if a parameter exists.
@@ -87,7 +87,7 @@ function getParameter($name);
*
* @api
*/
- function hasParameter($name);
+ public function hasParameter($name);
/**
* Sets a parameter.
@@ -97,7 +97,7 @@ function hasParameter($name);
*
* @api
*/
- function setParameter($name, $value);
+ public function setParameter($name, $value);
/**
* Enters the given scope
@@ -108,7 +108,7 @@ function setParameter($name, $value);
*
* @api
*/
- function enterScope($name);
+ public function enterScope($name);
/**
* Leaves the current scope, and re-enters the parent scope
@@ -119,7 +119,7 @@ function enterScope($name);
*
* @api
*/
- function leaveScope($name);
+ public function leaveScope($name);
/**
* Adds a scope to the container
@@ -130,7 +130,7 @@ function leaveScope($name);
*
* @api
*/
- function addScope(ScopeInterface $scope);
+ public function addScope(ScopeInterface $scope);
/**
* Whether this container has the given scope
@@ -141,7 +141,7 @@ function addScope(ScopeInterface $scope);
*
* @api
*/
- function hasScope($name);
+ public function hasScope($name);
/**
* Determines whether the given scope is currently active.
@@ -154,5 +154,5 @@ function hasScope($name);
*
* @api
*/
- function isScopeActive($name);
+ public function isScopeActive($name);
}
View
2  Dumper/DumperInterface.php
@@ -29,5 +29,5 @@
*
* @api
*/
- function dump(array $options = array());
+ public function dump(array $options = array());
}
View
2  Dumper/XmlDumper.php
@@ -294,7 +294,7 @@ private function escape($arguments)
*
* @throws \RuntimeException When trying to dump object or resource
*/
- static public function phpToXml($value)
+ public static function phpToXml($value)
{
switch (true) {
case null === $value:
View
8 Extension/ExtensionInterface.php
@@ -32,7 +32,7 @@
*
* @api
*/
- function load(array $config, ContainerBuilder $container);
+ public function load(array $config, ContainerBuilder $container);
/**
* Returns the namespace to be used for this extension (XML namespace).
@@ -41,7 +41,7 @@ function load(array $config, ContainerBuilder $container);
*
* @api
*/
- function getNamespace();
+ public function getNamespace();
/**
* Returns the base path for the XSD files.
@@ -50,7 +50,7 @@ function getNamespace();
*
* @api
*/
- function getXsdValidationBasePath();
+ public function getXsdValidationBasePath();
/**
* Returns the recommended alias to use in XML.
@@ -61,5 +61,5 @@ function getXsdValidationBasePath();
*
* @api
*/
- function getAlias();
+ public function getAlias();
}
View
2  Loader/XmlFileLoader.php
@@ -467,7 +467,7 @@ private function loadFromExtensions(SimpleXMLElement $xml)
*
* @return array A PHP array
*/
- static public function convertDomElementToArray(\DomElement $element)
+ public static function convertDomElementToArray(\DomElement $element)
{
$empty = true;
$config = array();
View
16 ParameterBag/ParameterBagInterface.php
@@ -27,7 +27,7 @@
*
* @api
*/
- function clear();
+ public function clear();
/**
* Adds parameters to the service container parameters.
@@ -36,7 +36,7 @@ function clear();
*
* @api
*/
- function add(array $parameters);
+ public function add(array $parameters);
/**
* Gets the service container parameters.
@@ -45,7 +45,7 @@ function add(array $parameters);
*
* @api
*/
- function all();
+ public function all();
/**
* Gets a service container parameter.
@@ -58,7 +58,7 @@ function all();
*
* @api
*/
- function get($name);
+ public function get($name);
/**
* Sets a service container parameter.
@@ -68,7 +68,7 @@ function get($name);
*
* @api
*/
- function set($name, $value);
+ public function set($name, $value);
/**
* Returns true if a parameter name is defined.
@@ -79,12 +79,12 @@ function set($name, $value);
*
* @api
*/
- function has($name);
+ public function has($name);
/**
* Replaces parameter placeholders (%name%) by their values for all parameters.
*/
- function resolve();
+ public function resolve();
/**
* Replaces parameter placeholders (%name%) by their values.
@@ -93,5 +93,5 @@ function resolve();
*
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
*/
- function resolveValue($value);
+ public function resolveValue($value);
}
View
4 ScopeInterface.php
@@ -23,10 +23,10 @@
/**
* @api
*/
- function getName();
+ public function getName();
/**
* @api
*/
- function getParentName();
+ public function getParentName();
}
View
2  SimpleXMLElement.php
@@ -99,7 +99,7 @@ public function getArgumentsAsPhp($name, $lowercase = true)
*
* @return mixed
*/
- static public function phpize($value)
+ public static function phpize($value)
{
$value = (string) $value;
$lowercaseValue = strtolower($value);
View
2  TaggedContainerInterface.php
@@ -29,5 +29,5 @@
*
* @api
*/
- function findTaggedServiceIds($name);
+ public function findTaggedServiceIds($name);
}
Please sign in to comment.
Something went wrong with that request. Please try again.