Passed
Pull Request — master (#1257)
by
unknown
02:36
created
src/Context.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
             $this->addExclusionStrategy(new VersionExclusionStrategy($this->attributes['version']));
82 82
         }
83 83
 
84
-        if (!empty($this->attributes['max_depth_checks'])) {
84
+        if ( ! empty($this->attributes['max_depth_checks'])) {
85 85
             $this->addExclusionStrategy(new DepthExclusionStrategy());
86 86
         }
87 87
 
88
-        if (!empty($this->attributes[self::ATTR_SKIP_WHEN_EMPTY])) {
88
+        if ( ! empty($this->attributes[self::ATTR_SKIP_WHEN_EMPTY])) {
89 89
             $this->addExclusionStrategy(new SkipWhenEmptyExclusionStrategy());
90 90
         }
91 91
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
     final protected function assertMutable(): void
142 142
     {
143
-        if (!$this->initialized) {
143
+        if ( ! $this->initialized) {
144 144
             return;
145 145
         }
146 146
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     {
240 240
         $metadata = $this->metadataStack->pop();
241 241
 
242
-        if (!$metadata instanceof PropertyMetadata) {
242
+        if ( ! $metadata instanceof PropertyMetadata) {
243 243
             throw new RuntimeException('Context metadataStack not working well');
244 244
         }
245 245
     }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     {
249 249
         $metadata = $this->metadataStack->pop();
250 250
 
251
-        if (!$metadata instanceof ClassMetadata) {
251
+        if ( ! $metadata instanceof ClassMetadata) {
252 252
             throw new RuntimeException('Context metadataStack not working well');
253 253
         }
254 254
     }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      */
264 264
     public function getCurrentPath(): array
265 265
     {
266
-        if (!$this->metadataStack) {
266
+        if ( ! $this->metadataStack) {
267 267
             return [];
268 268
         }
269 269
 
Please login to merge, or discard this patch.
src/Exclusion/DisjunctExclusionStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
     public function addStrategy($strategy): void
37 37
     {
38 38
         if (
39
-            !($strategy instanceof ExclusionStrategyInterface)
40
-            || !($strategy instanceof ValueExclusionStrategyInterface)
39
+            ! ($strategy instanceof ExclusionStrategyInterface)
40
+            || ! ($strategy instanceof ValueExclusionStrategyInterface)
41 41
         ) {
42 42
             throw new \InvalidArgumentException(
43 43
                 sprintf(
Please login to merge, or discard this patch.