Test Setup Failed
Pull Request — latest (#3)
by Mark
65:38 queued 30:20
created
src/Dataset/Dataset.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,13 +30,13 @@  discard block
 block discarded – undo
30 30
 
31 31
     public static function unarchive(string $filename): self
32 32
     {
33
-        if (! \file_exists($filename)) {
33
+        if (!\file_exists($filename)) {
34 34
             throw new FileNotFoundException($filename);
35 35
         }
36 36
 
37 37
         if (
38
-            ! ($contents = \file_get_contents($filename)) ||
39
-            ! ($decoded = \gzdecode($contents))
38
+            !($contents = \file_get_contents($filename)) ||
39
+            !($decoded = \gzdecode($contents))
40 40
         ) {
41 41
             throw new UnarchiveException($filename);
42 42
         }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             throw new MalformedArchiveException($filename, $throwable);
49 49
         }
50 50
 
51
-        if (! $dataset instanceof Dataset) {
51
+        if (!$dataset instanceof Dataset) {
52 52
             throw new MalformedArchiveException($filename);
53 53
         }
54 54
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     public function indexBy(string $index = 'hexcode'): Dataset
86 86
     {
87
-        if (! isset($this->indices[$index])) {
87
+        if (!isset($this->indices[$index])) {
88 88
             $this->indices[$index] = new self($this, $index);
89 89
         }
90 90
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $key = \current(Normalize::shortcodes($key));
102 102
         }
103 103
 
104
-        if (! $key) {
104
+        if (!$key) {
105 105
             return null;
106 106
         }
107 107
 
Please login to merge, or discard this patch.
src/Traits/RenderableEnvironmentTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $this->assertUninitialized('Failed to add renderer.');
25 25
 
26
-        if (! isset($this->renderersByClass[$nodeClass])) {
26
+        if (!isset($this->renderersByClass[$nodeClass])) {
27 27
             /** @var PrioritizedList<NodeRendererInterface> $renderers */
28 28
             $renderers = new PrioritizedList();
29 29
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         }
52 52
 
53 53
         while (\class_exists($parent = (string) ($parent ?? $nodeClass)) && ($parent = \get_parent_class($parent))) {
54
-            if (! isset($this->renderersByClass[$parent])) {
54
+            if (!isset($this->renderersByClass[$parent])) {
55 55
                 continue;
56 56
             }
57 57
 
Please login to merge, or discard this patch.