Completed
Push — develop ( 855d70...ee0c5e )
by David
01:36
created
third-party/vendor/symfony/config/Resource/ComposerResource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@
 block discarded – undo
64 64
             if ('C' === $class[0] && 0 === \strpos($class, 'ComposerAutoloaderInit')) {
65 65
                 $r = new \ReflectionClass($class);
66 66
                 $v = \dirname(\dirname($r->getFileName()));
67
-                if (\file_exists($v . '/composer/installed.json')) {
68
-                    self::$runtimeVendors[$v] = @\filemtime($v . '/composer/installed.json');
67
+                if (\file_exists($v.'/composer/installed.json')) {
68
+                    self::$runtimeVendors[$v] = @\filemtime($v.'/composer/installed.json');
69 69
                 }
70 70
             }
71 71
         }
Please login to merge, or discard this patch.
third-party/vendor/symfony/config/Resource/GlobResource.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function __toString()
52 52
     {
53
-        return 'glob.' . $this->prefix . $this->pattern . (int) $this->recursive;
53
+        return 'glob.'.$this->prefix.$this->pattern.(int) $this->recursive;
54 54
     }
55 55
     /**
56 56
      * {@inheritdoc}
@@ -82,18 +82,18 @@  discard block
 block discarded – undo
82 82
     }
83 83
     public function getIterator()
84 84
     {
85
-        if (!\file_exists($this->prefix) || !$this->recursive && '' === $this->pattern) {
85
+        if ( ! \file_exists($this->prefix) || ! $this->recursive && '' === $this->pattern) {
86 86
             return;
87 87
         }
88 88
         if (0 !== \strpos($this->prefix, 'phar://') && \false === \strpos($this->pattern, '/**/') && (\defined('GLOB_BRACE') || \false === \strpos($this->pattern, '{'))) {
89
-            $paths = \glob($this->prefix . $this->pattern, \GLOB_NOSORT | (\defined('GLOB_BRACE') ? \GLOB_BRACE : 0));
89
+            $paths = \glob($this->prefix.$this->pattern, \GLOB_NOSORT | (\defined('GLOB_BRACE') ? \GLOB_BRACE : 0));
90 90
             \sort($paths);
91 91
             foreach ($paths as $path) {
92 92
                 if ($this->recursive && \is_dir($path)) {
93
-                    $files = \iterator_to_array(new \RecursiveIteratorIterator(new \RecursiveCallbackFilterIterator(new \RecursiveDirectoryIterator($path, \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS), function (\SplFileInfo $file) {
93
+                    $files = \iterator_to_array(new \RecursiveIteratorIterator(new \RecursiveCallbackFilterIterator(new \RecursiveDirectoryIterator($path, \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS), function(\SplFileInfo $file) {
94 94
                         return '.' !== $file->getBasename()[0];
95 95
                     }), \RecursiveIteratorIterator::LEAVES_ONLY));
96
-                    \uasort($files, function (\SplFileInfo $a, \SplFileInfo $b) {
96
+                    \uasort($files, function(\SplFileInfo $a, \SplFileInfo $b) {
97 97
                         return (string) $a > (string) $b ? 1 : -1;
98 98
                     });
99 99
                     foreach ($files as $path => $info) {
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             }
108 108
             return;
109 109
         }
110
-        if (!\class_exists(Finder::class)) {
110
+        if ( ! \class_exists(Finder::class)) {
111 111
             throw new \LogicException(\sprintf('Extended glob pattern "%s" cannot be used as the Finder component is not installed.', $this->pattern));
112 112
         }
113 113
         $finder = new Finder();
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     {
127 127
         $hash = \hash_init('md5');
128 128
         foreach ($this->getIterator() as $path => $info) {
129
-            \hash_update($hash, $path . "\n");
129
+            \hash_update($hash, $path."\n");
130 130
         }
131 131
         return \hash_final($hash);
132 132
     }
Please login to merge, or discard this patch.
third-party/vendor/symfony/config/Resource/DirectoryResource.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $this->resource = \realpath($resource) ?: (\file_exists($resource) ? $resource : \false);
31 31
         $this->pattern = $pattern;
32
-        if (\false === $this->resource || !\is_dir($this->resource)) {
32
+        if (\false === $this->resource || ! \is_dir($this->resource)) {
33 33
             throw new \InvalidArgumentException(\sprintf('The directory "%s" does not exist.', $resource));
34 34
         }
35 35
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function isFresh($timestamp)
63 63
     {
64
-        if (!\is_dir($this->resource)) {
64
+        if ( ! \is_dir($this->resource)) {
65 65
             return \false;
66 66
         }
67 67
         if ($timestamp < \filemtime($this->resource)) {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         }
70 70
         foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->resource), \RecursiveIteratorIterator::SELF_FIRST) as $file) {
71 71
             // if regex filtering is enabled only check matching files
72
-            if ($this->pattern && $file->isFile() && !\preg_match($this->pattern, $file->getBasename())) {
72
+            if ($this->pattern && $file->isFile() && ! \preg_match($this->pattern, $file->getBasename())) {
73 73
                 continue;
74 74
             }
75 75
             // always monitor directories for changes, except the .. entries
Please login to merge, or discard this patch.
third-party/vendor/symfony/config/Resource/ReflectionClassResource.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     }
47 47
     public function __toString()
48 48
     {
49
-        return 'reflection.' . $this->className;
49
+        return 'reflection.'.$this->className;
50 50
     }
51 51
     /**
52 52
      * @internal
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $file = $class->getFileName();
76 76
             if (\false !== $file && \file_exists($file)) {
77 77
                 foreach ($this->excludedVendors as $vendor) {
78
-                    if (0 === \strpos($file, $vendor) && \false !== \strpbrk(\substr($file, \strlen($vendor), 1), '/' . \DIRECTORY_SEPARATOR)) {
78
+                    if (0 === \strpos($file, $vendor) && \false !== \strpbrk(\substr($file, \strlen($vendor), 1), '/'.\DIRECTORY_SEPARATOR)) {
79 79
                         $file = \false;
80 80
                         break;
81 81
                     }
@@ -117,15 +117,15 @@  discard block
 block discarded – undo
117 117
             (yield \print_r(\class_implements($class->name), \true));
118 118
             (yield \print_r($class->getConstants(), \true));
119 119
         }
120
-        if (!$class->isInterface()) {
120
+        if ( ! $class->isInterface()) {
121 121
             $defaults = $class->getDefaultProperties();
122 122
             foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED) as $p) {
123 123
                 (yield $p->getDocComment());
124 124
                 (yield $p->isDefault() ? '<default>' : '');
125 125
                 (yield $p->isPublic() ? 'public' : 'protected');
126 126
                 (yield $p->isStatic() ? 'static' : '');
127
-                (yield '$' . $p->name);
128
-                (yield \print_r(isset($defaults[$p->name]) && !\is_object($defaults[$p->name]) ? $defaults[$p->name] : null, \true));
127
+                (yield '$'.$p->name);
128
+                (yield \print_r(isset($defaults[$p->name]) && ! \is_object($defaults[$p->name]) ? $defaults[$p->name] : null, \true));
129 129
             }
130 130
         }
131 131
         if (\defined('Wordlift\\Modules\\Plugin_Diagnostics\\HHVM_VERSION')) {
@@ -138,29 +138,29 @@  discard block
 block discarded – undo
138 138
                 $defaults = [];
139 139
                 $parametersWithUndefinedConstants = [];
140 140
                 foreach ($m->getParameters() as $p) {
141
-                    if (!$p->isDefaultValueAvailable()) {
141
+                    if ( ! $p->isDefaultValueAvailable()) {
142 142
                         $defaults[$p->name] = null;
143 143
                         continue;
144 144
                     }
145
-                    if (!$p->isDefaultValueConstant() || \defined($p->getDefaultValueConstantName())) {
145
+                    if ( ! $p->isDefaultValueConstant() || \defined($p->getDefaultValueConstantName())) {
146 146
                         $defaults[$p->name] = $p->getDefaultValue();
147 147
                         continue;
148 148
                     }
149 149
                     $defaults[$p->name] = $p->getDefaultValueConstantName();
150 150
                     $parametersWithUndefinedConstants[$p->name] = \true;
151 151
                 }
152
-                if (!$parametersWithUndefinedConstants) {
152
+                if ( ! $parametersWithUndefinedConstants) {
153 153
                     (yield \preg_replace('/^  @@.*/m', '', $m));
154 154
                 } else {
155 155
                     $t = \PHP_VERSION_ID >= 70000 ? $m->getReturnType() : '';
156
-                    $stack = [$m->getDocComment(), $m->getName(), $m->isAbstract(), $m->isFinal(), $m->isStatic(), $m->isPublic(), $m->isPrivate(), $m->isProtected(), $m->returnsReference(), $t instanceof \ReflectionNamedType ? (string) $t->allowsNull() . $t->getName() : (string) $t];
156
+                    $stack = [$m->getDocComment(), $m->getName(), $m->isAbstract(), $m->isFinal(), $m->isStatic(), $m->isPublic(), $m->isPrivate(), $m->isProtected(), $m->returnsReference(), $t instanceof \ReflectionNamedType ? (string) $t->allowsNull().$t->getName() : (string) $t];
157 157
                     foreach ($m->getParameters() as $p) {
158
-                        if (!isset($parametersWithUndefinedConstants[$p->name])) {
158
+                        if ( ! isset($parametersWithUndefinedConstants[$p->name])) {
159 159
                             $stack[] = (string) $p;
160 160
                         } else {
161 161
                             $t = \PHP_VERSION_ID >= 70000 ? $p->getType() : '';
162 162
                             $stack[] = $p->isOptional();
163
-                            $stack[] = $t instanceof \ReflectionNamedType ? (string) $t->allowsNull() . $t->getName() : (string) $t;
163
+                            $stack[] = $t instanceof \ReflectionNamedType ? (string) $t->allowsNull().$t->getName() : (string) $t;
164 164
                             $stack[] = $p->isPassedByReference();
165 165
                             $stack[] = \PHP_VERSION_ID >= 50600 ? $p->isVariadic() : '';
166 166
                             $stack[] = $p->getName();
Please login to merge, or discard this patch.
third-party/vendor/symfony/config/Definition/FloatNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         if (\is_int($value)) {
28 28
             $value = (float) $value;
29 29
         }
30
-        if (!\is_float($value)) {
30
+        if ( ! \is_float($value)) {
31 31
             $ex = new InvalidTypeException(\sprintf('Invalid type for path "%s". Expected float, but got %s.', $this->getPath(), \gettype($value)));
32 32
             if ($hint = $this->getInfo()) {
33 33
                 $ex->addHint($hint);
Please login to merge, or discard this patch.
third-party/vendor/symfony/config/Definition/BaseNode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     {
224 224
         $path = $this->name;
225 225
         if (null !== $this->parent) {
226
-            $path = $this->parent->getPath() . '.' . $path;
226
+            $path = $this->parent->getPath().'.'.$path;
227 227
         }
228 228
         return $path;
229 229
     }
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     public final function merge($leftSide, $rightSide)
234 234
     {
235
-        if (!$this->allowOverwrite) {
235
+        if ( ! $this->allowOverwrite) {
236 236
             throw new ForbiddenOverwriteException(\sprintf('Configuration path "%s" cannot be overwritten. You have to define all options for this path, and any of its sub-paths in one configuration section.', $this->getPath()));
237 237
         }
238 238
         $this->validateType($leftSide);
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
             } catch (Exception $e) {
296 296
                 throw $e;
297 297
             } catch (\Exception $e) {
298
-                throw new InvalidConfigurationException(\sprintf('Invalid configuration for path "%s": ', $this->getPath()) . $e->getMessage(), $e->getCode(), $e);
298
+                throw new InvalidConfigurationException(\sprintf('Invalid configuration for path "%s": ', $this->getPath()).$e->getMessage(), $e->getCode(), $e);
299 299
             }
300 300
         }
301 301
         return $value;
Please login to merge, or discard this patch.
symfony/config/Definition/Exception/InvalidConfigurationException.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@
 block discarded – undo
35 35
      */
36 36
     public function addHint($hint)
37 37
     {
38
-        if (!$this->containsHints) {
39
-            $this->message .= "\nHint: " . $hint;
38
+        if ( ! $this->containsHints) {
39
+            $this->message .= "\nHint: ".$hint;
40 40
             $this->containsHints = \true;
41 41
         } else {
42
-            $this->message .= ', ' . $hint;
42
+            $this->message .= ', '.$hint;
43 43
         }
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
third-party/vendor/symfony/config/Definition/VariableNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      */
72 72
     protected function finalizeValue($value)
73 73
     {
74
-        if (!$this->allowEmptyValue && $this->isValueEmpty($value)) {
74
+        if ( ! $this->allowEmptyValue && $this->isValueEmpty($value)) {
75 75
             $ex = new InvalidConfigurationException(\sprintf('The path "%s" cannot contain an empty value, but got %s.', $this->getPath(), \json_encode($value)));
76 76
             if ($hint = $this->getInfo()) {
77 77
                 $ex->addHint($hint);
Please login to merge, or discard this patch.
third-party/vendor/symfony/config/Definition/EnumNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     protected function finalizeValue($value)
36 36
     {
37 37
         $value = parent::finalizeValue($value);
38
-        if (!\in_array($value, $this->values, \true)) {
38
+        if ( ! \in_array($value, $this->values, \true)) {
39 39
             $ex = new InvalidConfigurationException(\sprintf('The value %s is not allowed for path "%s". Permissible values: %s', \json_encode($value), $this->getPath(), \implode(', ', \array_map('json_encode', $this->values))));
40 40
             $ex->setPath($this->getPath());
41 41
             throw $ex;
Please login to merge, or discard this patch.