Completed
Push — master ( caa748...46d5e9 )
by David
01:05
created
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.
common/third-party/vendor/symfony/dependency-injection/ServiceLocator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function get($id)
44 44
     {
45
-        if (!isset($this->factories[$id])) {
45
+        if ( ! isset($this->factories[$id])) {
46 46
             throw new ServiceNotFoundException($id, \end($this->loading) ?: null, null, [], $this->createServiceNotFoundMessage($id));
47 47
         }
48 48
         if (isset($this->loading[$id])) {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $externalId = $this->externalId ?: $class;
83 83
         $msg = [];
84 84
         $msg[] = \sprintf('Service "%s" not found:', $id);
85
-        if (!$this->container) {
85
+        if ( ! $this->container) {
86 86
             $class = null;
87 87
         } elseif ($this->container->has($id) || isset($this->container->getRemovedIds()[$id])) {
88 88
             $msg[] = 'even though it exists in the app\'s container,';
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         } else {
104 104
             $msg[] = \sprintf('the current service locator %s', $this->formatAlternatives());
105 105
         }
106
-        if (!$class) {
106
+        if ( ! $class) {
107 107
             // no-op
108 108
         } elseif (\is_subclass_of($class, ServiceSubscriberInterface::class)) {
109 109
             $msg[] = \sprintf('Unless you need extra laziness, try using dependency injection instead. Otherwise, you need to declare it using "%s::getSubscribedServices()".', \preg_replace('/([^\\\\]++\\\\)++/', '', $class));
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     {
117 117
         $format = '"%s"%s';
118 118
         if (null === $alternatives) {
119
-            if (!($alternatives = \array_keys($this->factories))) {
119
+            if ( ! ($alternatives = \array_keys($this->factories))) {
120 120
                 return 'is empty...';
121 121
             }
122 122
             $format = \sprintf('only knows about the %s service%s.', $format, 1 < \count($alternatives) ? 's' : '');
Please login to merge, or discard this patch.
common/third-party/vendor/symfony/dependency-injection/ChildDefinition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function getArgument($index)
66 66
     {
67
-        if (\array_key_exists('index_' . $index, $this->arguments)) {
68
-            return $this->arguments['index_' . $index];
67
+        if (\array_key_exists('index_'.$index, $this->arguments)) {
68
+            return $this->arguments['index_'.$index];
69 69
         }
70 70
         return parent::getArgument($index);
71 71
     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function replaceArgument($index, $value)
88 88
     {
89 89
         if (\is_int($index)) {
90
-            $this->arguments['index_' . $index] = $value;
90
+            $this->arguments['index_'.$index] = $value;
91 91
         } elseif (0 === \strpos($index, '$')) {
92 92
             $this->arguments[$index] = $value;
93 93
         } else {
Please login to merge, or discard this patch.
vendor/symfony/dependency-injection/Config/ContainerParametersResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function __toString()
33 33
     {
34
-        return 'container_parameters_' . \md5(\serialize($this->parameters));
34
+        return 'container_parameters_'.\md5(\serialize($this->parameters));
35 35
     }
36 36
     /**
37 37
      * @internal
Please login to merge, or discard this patch.
symfony/dependency-injection/Config/ContainerParametersResourceChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     public function isFresh(ResourceInterface $resource, $timestamp)
38 38
     {
39 39
         foreach ($resource->getParameters() as $key => $value) {
40
-            if (!$this->container->hasParameter($key) || $this->container->getParameter($key) !== $value) {
40
+            if ( ! $this->container->hasParameter($key) || $this->container->getParameter($key) !== $value) {
41 41
                 return \false;
42 42
             }
43 43
         }
Please login to merge, or discard this patch.