@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | namespace Wordlift\Modules\Plugin_Installer_Dependencies\Symfony\Component\DependencyInjection\Compiler; |
| 12 | 12 | |
| 13 | -@\trigger_error('The ' . __NAMESPACE__ . '\\AutowireExceptionPass class is deprecated since Symfony 3.4 and will be removed in 4.0. Use the DefinitionErrorExceptionPass class instead.', \E_USER_DEPRECATED); |
|
| 13 | +@\trigger_error('The '.__NAMESPACE__.'\\AutowireExceptionPass class is deprecated since Symfony 3.4 and will be removed in 4.0. Use the DefinitionErrorExceptionPass class instead.', \E_USER_DEPRECATED); |
|
| 14 | 14 | use Wordlift\Modules\Plugin_Installer_Dependencies\Symfony\Component\DependencyInjection\ContainerBuilder; |
| 15 | 15 | /** |
| 16 | 16 | * Throws autowire exceptions from AutowirePass for definitions that still exist. |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function process(ContainerBuilder $container) |
| 26 | 26 | { |
| 27 | 27 | foreach ($container->getExtensions() as $extension) { |
| 28 | - if (!$extension instanceof CompilerPassInterface) { |
|
| 28 | + if ( ! $extension instanceof CompilerPassInterface) { |
|
| 29 | 29 | continue; |
| 30 | 30 | } |
| 31 | 31 | $extension->process($container); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | $definitions = new \SplPriorityQueue(); |
| 27 | 27 | $order = \PHP_INT_MAX; |
| 28 | 28 | foreach ($container->getDefinitions() as $id => $definition) { |
| 29 | - if (!($decorated = $definition->getDecoratedService())) { |
|
| 29 | + if ( ! ($decorated = $definition->getDecoratedService())) { |
|
| 30 | 30 | continue; |
| 31 | 31 | } |
| 32 | 32 | $definitions->insert([$id, $definition], [$decorated[2], --$order]); |
@@ -35,8 +35,8 @@ discard block |
||
| 35 | 35 | foreach ($definitions as list($id, $definition)) { |
| 36 | 36 | list($inner, $renamedId) = $definition->getDecoratedService(); |
| 37 | 37 | $definition->setDecoratedService(null); |
| 38 | - if (!$renamedId) { |
|
| 39 | - $renamedId = $id . '.inner'; |
|
| 38 | + if ( ! $renamedId) { |
|
| 39 | + $renamedId = $id.'.inner'; |
|
| 40 | 40 | } |
| 41 | 41 | // we create a new alias/service for the service we are replacing |
| 42 | 42 | // to be able to reference it in the new one |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | protected function processValue($value, $isRoot = \false) |
| 26 | 26 | { |
| 27 | - if (!$value instanceof TaggedIteratorArgument) { |
|
| 27 | + if ( ! $value instanceof TaggedIteratorArgument) { |
|
| 28 | 28 | return parent::processValue($value, $isRoot); |
| 29 | 29 | } |
| 30 | 30 | $value->setValues($this->findAndSortTaggedServices($value->getTag(), $this->container)); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | namespace Wordlift\Modules\Plugin_Installer_Dependencies\Symfony\Component\DependencyInjection\Compiler; |
| 12 | 12 | |
| 13 | -@\trigger_error('The ' . __NAMESPACE__ . '\\LoggingFormatter class is deprecated since Symfony 3.3 and will be removed in 4.0. Use the ContainerBuilder::log() method instead.', \E_USER_DEPRECATED); |
|
| 13 | +@\trigger_error('The '.__NAMESPACE__.'\\LoggingFormatter class is deprecated since Symfony 3.3 and will be removed in 4.0. Use the ContainerBuilder::log() method instead.', \E_USER_DEPRECATED); |
|
| 14 | 14 | /** |
| 15 | 15 | * Used to format logging messages during the compilation. |
| 16 | 16 | * |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | public function __construct(array $passes) |
| 33 | 33 | { |
| 34 | 34 | foreach ($passes as $pass) { |
| 35 | - if (!$pass instanceof RepeatablePassInterface) { |
|
| 35 | + if ( ! $pass instanceof RepeatablePassInterface) { |
|
| 36 | 36 | throw new InvalidArgumentException('$passes must be an array of RepeatablePassInterface.'); |
| 37 | 37 | } |
| 38 | 38 | $pass->setRepeatedPass($this); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | { |
| 26 | 26 | foreach ($container->findTaggedServiceIds('auto_alias') as $serviceId => $tags) { |
| 27 | 27 | foreach ($tags as $tag) { |
| 28 | - if (!isset($tag['format'])) { |
|
| 28 | + if ( ! isset($tag['format'])) { |
|
| 29 | 29 | throw new InvalidArgumentException(\sprintf('Missing tag information "format" on auto_alias service "%s".', $serviceId)); |
| 30 | 30 | } |
| 31 | 31 | $aliasId = $container->getParameterBag()->resolveValue($tag['format']); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | protected function processValue($value, $isRoot = \false) |
| 26 | 26 | { |
| 27 | - if (!$value instanceof Definition || empty($value->getErrors())) { |
|
| 27 | + if ( ! $value instanceof Definition || empty($value->getErrors())) { |
|
| 28 | 28 | return parent::processValue($value, $isRoot); |
| 29 | 29 | } |
| 30 | 30 | // only show the first error so the user can focus on it |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | $value = parent::processValue($value, $isRoot); |
| 34 | - if ($value && \is_array($value) && !$isRoot) { |
|
| 34 | + if ($value && \is_array($value) && ! $isRoot) { |
|
| 35 | 35 | $value = \array_combine($this->container->resolveEnvPlaceholders(\array_keys($value), \true), $value); |
| 36 | 36 | } |
| 37 | 37 | return $value; |