Completed
Push — develop ( a01e04...dfb4ea )
by David
01:36
created
vendor/symfony/dependency-injection/Compiler/ServiceReferenceGraph.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     public function getNode($id)
51 51
     {
52
-        if (!isset($this->nodes[$id])) {
52
+        if ( ! isset($this->nodes[$id])) {
53 53
             throw new InvalidArgumentException(\sprintf('There is no node with id "%s".', $id));
54 54
         }
55 55
         return $this->nodes[$id];
Please login to merge, or discard this patch.
symfony/dependency-injection/Compiler/ResolveDefinitionTemplatesPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  */
11 11
 namespace Wordlift\Modules\Common\Symfony\Component\DependencyInjection\Compiler;
12 12
 
13
-@\trigger_error('The ' . __NAMESPACE__ . '\\ResolveDefinitionTemplatesPass class is deprecated since Symfony 3.4 and will be removed in 4.0. Use the ResolveChildDefinitionsPass class instead.', \E_USER_DEPRECATED);
13
+@\trigger_error('The '.__NAMESPACE__.'\\ResolveDefinitionTemplatesPass class is deprecated since Symfony 3.4 and will be removed in 4.0. Use the ResolveChildDefinitionsPass class instead.', \E_USER_DEPRECATED);
14 14
 \class_exists(ResolveChildDefinitionsPass::class);
15 15
 if (\false) {
16 16
     /**
Please login to merge, or discard this patch.
vendor/symfony/dependency-injection/Compiler/ExtensionCompilerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
vendor/symfony/dependency-injection/Compiler/CheckArgumentsValidityPass.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,13 +30,13 @@  discard block
 block discarded – undo
30 30
      */
31 31
     protected function processValue($value, $isRoot = \false)
32 32
     {
33
-        if (!$value instanceof Definition) {
33
+        if ( ! $value instanceof Definition) {
34 34
             return parent::processValue($value, $isRoot);
35 35
         }
36 36
         $i = 0;
37 37
         foreach ($value->getArguments() as $k => $v) {
38 38
             if ($k !== $i++) {
39
-                if (!\is_int($k)) {
39
+                if ( ! \is_int($k)) {
40 40
                     $msg = \sprintf('Invalid constructor argument for service "%s": integer expected but found string "%s". Check your service definition.', $this->currentId, $k);
41 41
                     $value->addError($msg);
42 42
                     if ($this->throwExceptions) {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $i = 0;
56 56
             foreach ($methodCall[1] as $k => $v) {
57 57
                 if ($k !== $i++) {
58
-                    if (!\is_int($k)) {
58
+                    if ( ! \is_int($k)) {
59 59
                         $msg = \sprintf('Invalid argument for method call "%s" of service "%s": integer expected but found string "%s". Check your service definition.', $methodCall[0], $this->currentId, $k);
60 60
                         $value->addError($msg);
61 61
                         if ($this->throwExceptions) {
Please login to merge, or discard this patch.
third-party/vendor/symfony/dependency-injection/LazyProxy/ProxyHelper.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
         } else {
35 35
             $type = \method_exists($r, 'getReturnType') ? $r->getReturnType() : null;
36 36
         }
37
-        if (!$type) {
37
+        if ( ! $type) {
38 38
             return null;
39 39
         }
40 40
         $types = [];
41 41
         foreach ($type instanceof \ReflectionUnionType ? $type->getTypes() : [$type] as $type) {
42 42
             $name = $type instanceof \ReflectionNamedType ? $type->getName() : (string) $type;
43
-            if (!\is_string($type) && $type->isBuiltin()) {
44
-                if (!$noBuiltin) {
43
+            if ( ! \is_string($type) && $type->isBuiltin()) {
44
+                if ( ! $noBuiltin) {
45 45
                     $types[] = $name;
46 46
                 }
47 47
                 continue;
@@ -49,16 +49,16 @@  discard block
 block discarded – undo
49 49
             $lcName = \strtolower($name);
50 50
             $prefix = $noBuiltin ? '' : '\\';
51 51
             if ('self' !== $lcName && 'parent' !== $lcName) {
52
-                $types[] = '' !== $prefix ? $prefix . $name : $name;
52
+                $types[] = '' !== $prefix ? $prefix.$name : $name;
53 53
                 continue;
54 54
             }
55
-            if (!$r instanceof \ReflectionMethod) {
55
+            if ( ! $r instanceof \ReflectionMethod) {
56 56
                 continue;
57 57
             }
58 58
             if ('self' === $lcName) {
59
-                $types[] = $prefix . $r->getDeclaringClass()->name;
59
+                $types[] = $prefix.$r->getDeclaringClass()->name;
60 60
             } else {
61
-                $types[] = ($parent = $r->getDeclaringClass()->getParentClass()) ? $prefix . $parent->name : null;
61
+                $types[] = ($parent = $r->getDeclaringClass()->getParentClass()) ? $prefix.$parent->name : null;
62 62
             }
63 63
         }
64 64
         return $types ? \implode('|', $types) : null;
Please login to merge, or discard this patch.
common/third-party/vendor/symfony/dependency-injection/Definition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         if (\is_int($index) && ($index < 0 || $index > \count($this->arguments) - 1)) {
230 230
             throw new OutOfBoundsException(\sprintf('The index "%d" is not in the range [0, %d].', $index, \count($this->arguments) - 1));
231 231
         }
232
-        if (!\array_key_exists($index, $this->arguments)) {
232
+        if ( ! \array_key_exists($index, $this->arguments)) {
233 233
             throw new OutOfBoundsException(\sprintf('The argument "%s" doesn\'t exist.', $index));
234 234
         }
235 235
         $this->arguments[$index] = $argument;
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      */
269 269
     public function getArgument($index)
270 270
     {
271
-        if (!\array_key_exists($index, $this->arguments)) {
271
+        if ( ! \array_key_exists($index, $this->arguments)) {
272 272
             throw new OutOfBoundsException(\sprintf('The argument "%s" doesn\'t exist.', $index));
273 273
         }
274 274
         return $this->arguments[$index];
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
     public function setBindings(array $bindings)
816 816
     {
817 817
         foreach ($bindings as $key => $binding) {
818
-            if (!$binding instanceof BoundArgument) {
818
+            if ( ! $binding instanceof BoundArgument) {
819 819
                 $bindings[$key] = new BoundArgument($binding);
820 820
             }
821 821
         }
Please login to merge, or discard this patch.
vendor/symfony/dependency-injection/Argument/ServiceClosureArgument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function setValues(array $values)
38 38
     {
39
-        if ([0] !== \array_keys($values) || !($values[0] instanceof Reference || null === $values[0])) {
39
+        if ([0] !== \array_keys($values) || ! ($values[0] instanceof Reference || null === $values[0])) {
40 40
             throw new InvalidArgumentException('A ServiceClosureArgument must hold one and only one Reference.');
41 41
         }
42 42
         $this->values = $values;
Please login to merge, or discard this patch.
vendor/symfony/dependency-injection/Argument/IteratorArgument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function setValues(array $values)
41 41
     {
42 42
         foreach ($values as $k => $v) {
43
-            if (null !== $v && !$v instanceof Reference) {
43
+            if (null !== $v && ! $v instanceof Reference) {
44 44
                 throw new InvalidArgumentException(\sprintf('An IteratorArgument must hold only Reference instances, "%s" given.', \is_object($v) ? \get_class($v) : \gettype($v)));
45 45
             }
46 46
         }
Please login to merge, or discard this patch.
third-party/vendor/symfony/dependency-injection/Extension/Extension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function getNamespace()
38 38
     {
39
-        return 'http://example.org/schema/dic/' . $this->getAlias();
39
+        return 'http://example.org/schema/dic/'.$this->getAlias();
40 40
     }
41 41
     /**
42 42
      * Returns the recommended alias to use in XML.
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $class = \substr_replace($class, '\\Configuration', \strrpos($class, '\\'));
81 81
         $class = $container->getReflectionClass($class);
82 82
         $constructor = $class ? $class->getConstructor() : null;
83
-        return $class && (!$constructor || !$constructor->getNumberOfRequiredParameters()) ? $class->newInstance() : null;
83
+        return $class && ( ! $constructor || ! $constructor->getNumberOfRequiredParameters()) ? $class->newInstance() : null;
84 84
     }
85 85
     /**
86 86
      * @return array
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     protected function isConfigEnabled(ContainerBuilder $container, array $config)
110 110
     {
111
-        if (!\array_key_exists('enabled', $config)) {
111
+        if ( ! \array_key_exists('enabled', $config)) {
112 112
             throw new InvalidArgumentException("The config array has no 'enabled' key.");
113 113
         }
114 114
         return (bool) $container->getParameterBag()->resolveValue($config['enabled']);
Please login to merge, or discard this patch.