Completed
Pull Request — develop (#1553)
by Naveen
01:05
created
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_Installer_Dependencies\\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.
plugin-installer/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.
plugin-installer/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.
plugin-installer/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.
third-party/vendor/symfony/config/Definition/Builder/ExprBuilder.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function always(\Closure $then = null)
35 35
     {
36
-        $this->ifPart = function ($v) {
36
+        $this->ifPart = function($v) {
37 37
             return \true;
38 38
         };
39 39
         if (null !== $then) {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     public function ifTrue(\Closure $closure = null)
52 52
     {
53 53
         if (null === $closure) {
54
-            $closure = function ($v) {
54
+            $closure = function($v) {
55 55
                 return \true === $v;
56 56
             };
57 57
         }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function ifString()
67 67
     {
68
-        $this->ifPart = function ($v) {
68
+        $this->ifPart = function($v) {
69 69
             return \is_string($v);
70 70
         };
71 71
         return $this;
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function ifNull()
79 79
     {
80
-        $this->ifPart = function ($v) {
80
+        $this->ifPart = function($v) {
81 81
             return null === $v;
82 82
         };
83 83
         return $this;
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function ifEmpty()
91 91
     {
92
-        $this->ifPart = function ($v) {
92
+        $this->ifPart = function($v) {
93 93
             return empty($v);
94 94
         };
95 95
         return $this;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function ifArray()
103 103
     {
104
-        $this->ifPart = function ($v) {
104
+        $this->ifPart = function($v) {
105 105
             return \is_array($v);
106 106
         };
107 107
         return $this;
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function ifInArray(array $array)
115 115
     {
116
-        $this->ifPart = function ($v) use($array) {
116
+        $this->ifPart = function($v) use($array) {
117 117
             return \in_array($v, $array, \true);
118 118
         };
119 119
         return $this;
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function ifNotInArray(array $array)
127 127
     {
128
-        $this->ifPart = function ($v) use($array) {
129
-            return !\in_array($v, $array, \true);
128
+        $this->ifPart = function($v) use($array) {
129
+            return ! \in_array($v, $array, \true);
130 130
         };
131 131
         return $this;
132 132
     }
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function castToArray()
139 139
     {
140
-        $this->ifPart = function ($v) {
141
-            return !\is_array($v);
140
+        $this->ifPart = function($v) {
141
+            return ! \is_array($v);
142 142
         };
143
-        $this->thenPart = function ($v) {
143
+        $this->thenPart = function($v) {
144 144
             return [$v];
145 145
         };
146 146
         return $this;
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function thenEmptyArray()
164 164
     {
165
-        $this->thenPart = function ($v) {
165
+        $this->thenPart = function($v) {
166 166
             return [];
167 167
         };
168 168
         return $this;
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     public function thenInvalid($message)
182 182
     {
183
-        $this->thenPart = function ($v) use($message) {
183
+        $this->thenPart = function($v) use($message) {
184 184
             throw new \InvalidArgumentException(\sprintf($message, \json_encode($v)));
185 185
         };
186 186
         return $this;
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function thenUnset()
196 196
     {
197
-        $this->thenPart = function ($v) {
197
+        $this->thenPart = function($v) {
198 198
             throw new UnsetKeyException('Unsetting key.');
199 199
         };
200 200
         return $this;
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
             if ($expr instanceof self) {
230 230
                 $if = $expr->ifPart;
231 231
                 $then = $expr->thenPart;
232
-                $expressions[$k] = function ($v) use($if, $then) {
232
+                $expressions[$k] = function($v) use($if, $then) {
233 233
                     return $if($v) ? $then($v) : $v;
234 234
                 };
235 235
             }
Please login to merge, or discard this patch.
third-party/vendor/symfony/config/Definition/Builder/MergeBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     public function denyOverwrite($deny = \true)
47 47
     {
48
-        $this->allowOverwrite = !$deny;
48
+        $this->allowOverwrite = ! $deny;
49 49
         return $this;
50 50
     }
51 51
     /**
Please login to merge, or discard this patch.