Skip to content

Commit 25502a5

Browse files
committed
Fix CS
1 parent 9cc5694 commit 25502a5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Definition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function getFactory()
143143
*
144144
* @throws InvalidArgumentException in case the decorated service id and the new decorated service id are equals
145145
*/
146-
public function setDecoratedService($id, $renamedId = null, $priority = 0/*, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE*/)
146+
public function setDecoratedService($id, $renamedId = null, $priority = 0/* , int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE */)
147147
{
148148
if ($renamedId && $id === $renamedId) {
149149
throw new InvalidArgumentException(sprintf('The decorated service inner name for "%s" must be different than the service name itself.', $id));
@@ -370,7 +370,7 @@ public function setMethodCalls(array $calls = [])
370370
*
371371
* @throws InvalidArgumentException on empty $method param
372372
*/
373-
public function addMethodCall($method, array $arguments = []/*, bool $returnsClone = false*/)
373+
public function addMethodCall($method, array $arguments = []/* , bool $returnsClone = false */)
374374
{
375375
if (empty($method)) {
376376
throw new InvalidArgumentException('Method name cannot be empty.');

Extension/Extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function getConfiguration(array $config, ContainerBuilder $container)
9494

9595
if (!$class->implementsInterface(ConfigurationInterface::class)) {
9696
@trigger_error(sprintf('Not implementing "%s" in the extension configuration class "%s" is deprecated since Symfony 4.1.', ConfigurationInterface::class, $class->getName()), \E_USER_DEPRECATED);
97-
//throw new LogicException(sprintf('The extension configuration class "%s" must implement "%s".', $class->getName(), ConfigurationInterface::class));
97+
// throw new LogicException(sprintf('The extension configuration class "%s" must implement "%s".', $class->getName(), ConfigurationInterface::class));
9898

9999
return null;
100100
}

Loader/FileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(ContainerBuilder $container, FileLocatorInterface $l
5151
* @param bool|string $ignoreErrors Whether errors should be ignored; pass "not_found" to ignore only when the loaded resource is not found
5252
* @param string|string[]|null $exclude Glob patterns to exclude from the import
5353
*/
54-
public function import($resource, $type = null, $ignoreErrors = false, $sourceResource = null/*, $exclude = null*/)
54+
public function import($resource, $type = null, $ignoreErrors = false, $sourceResource = null/* , $exclude = null */)
5555
{
5656
$args = \func_get_args();
5757

ParameterBag/EnvPlaceholderParameterBag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function get($name)
5252
$defaultValue = parent::get($name);
5353

5454
if (null !== $defaultValue && !\is_scalar($defaultValue)) { // !is_string in 5.0
55-
//throw new RuntimeException(sprintf('The default value of an env() parameter must be a string or null, but "%s" given to "%s".', \gettype($defaultValue), $name));
55+
// throw new RuntimeException(sprintf('The default value of an env() parameter must be a string or null, but "%s" given to "%s".', \gettype($defaultValue), $name));
5656
throw new RuntimeException(sprintf('The default value of an env() parameter must be scalar or null, but "%s" given to "%s".', \gettype($defaultValue), $name));
5757
} elseif (\is_scalar($defaultValue) && !\is_string($defaultValue)) {
5858
@trigger_error(sprintf('A non-string default value of an env() parameter is deprecated since 4.3, cast "%s" to string instead.', $name), \E_USER_DEPRECATED);
@@ -163,7 +163,7 @@ public function resolve()
163163
}
164164
$this->parameters[$name] = (string) $default;
165165
} elseif (null !== $default && !\is_scalar($default)) { // !is_string in 5.0
166-
//throw new RuntimeException(sprintf('The default value of env parameter "%s" must be a string or null, "%s" given.', $env, \gettype($default)));
166+
// throw new RuntimeException(sprintf('The default value of env parameter "%s" must be a string or null, "%s" given.', $env, \gettype($default)));
167167
throw new RuntimeException(sprintf('The default value of env parameter "%s" must be scalar or null, "%s" given.', $env, \gettype($default)));
168168
} elseif (\is_scalar($default) && !\is_string($default)) {
169169
@trigger_error(sprintf('A non-string default value of env parameter "%s" is deprecated since 4.3, cast it to string instead.', $env), \E_USER_DEPRECATED);

0 commit comments

Comments
 (0)