Test Setup Failed
Pull Request — latest (#3)
by Mark
65:38 queued 30:20
created
src/Renderer/Block/DocumentRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 {
26 26
     public function render(Node $node, ChildNodeRendererInterface $childRenderer): string
27 27
     {
28
-        if (! ($node instanceof Document)) {
28
+        if (!($node instanceof Document)) {
29 29
             throw new \InvalidArgumentException('Incompatible node type: ' . \get_class($node));
30 30
         }
31 31
 
Please login to merge, or discard this patch.
src/Converter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,12 +68,12 @@
 block discarded – undo
68 68
         if ($type !== null && $type !== $stringableType) {
69 69
             $walker = $document->walker();
70 70
             while ($event = $walker->next()) {
71
-                if (! $event->isEntering()) {
71
+                if (!$event->isEntering()) {
72 72
                     continue;
73 73
                 }
74 74
 
75 75
                 $emoji = $event->getNode();
76
-                if (! ($emoji instanceof AbstractEmoji)) {
76
+                if (!($emoji instanceof AbstractEmoji)) {
77 77
                     continue;
78 78
                 }
79 79
 
Please login to merge, or discard this patch.
src/Environment/Environment.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                      *
83 83
                      * @return string[]
84 84
                      */
85
-                        static function ($value): array {
85
+                        static function($value): array {
86 86
                             return Normalize::shortcodes($value);
87 87
                         }
88 88
                     ),
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             Expect::anyOf(...EmojibaseDatasetInterface::SUPPORTED_LOCALES)
95 95
                 ->default('en')
96 96
                 ->before(
97
-                    static function (string $value): string {
97
+                    static function(string $value): string {
98 98
                         return Normalize::locale($value);
99 99
                     }
100 100
                 )
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             'native',
105 105
             Expect::bool()
106 106
                 ->before(
107
-                    static function (?bool $value = null) use ($userConfig): bool {
107
+                    static function(?bool $value = null) use ($userConfig) : bool {
108 108
                         /** @var string $locale */
109 109
                         $locale = $userConfig->has('locale')
110 110
                             ? $userConfig->get('locale')
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                  *
143 143
                  * @return string[]
144 144
                  */
145
-                    static function ($value): array {
145
+                    static function($value): array {
146 146
                         // Presets.
147 147
                         $presets = [];
148 148
                         foreach ((array) $value as $preset) {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                                         \implode(
160 160
                                             ', ',
161 161
                                             \array_map(
162
-                                                static function ($s) {
162
+                                                static function($s) {
163 163
                                                     return \sprintf('"%s"', $s);
164 164
                                                 },
165 165
                                                 ShortcodeInterface::SUPPORTED_PRESETS
Please login to merge, or discard this patch.
src/Util/Normalize.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                 $emoji = new Emoji($emoji);
76 76
             }
77 77
 
78
-            if (! $emoji instanceof Emoji) {
78
+            if (!$emoji instanceof Emoji) {
79 79
                 throw new \RuntimeException(\sprintf('Passed array item must be an instance of %s.', Emoji::class));
80 80
             }
81 81
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     public static function setType(&$value, string $type): bool
158 158
     {
159 159
         // Immediately return if not a valid type.
160
-        if (! isset(self::TYPE_METHODS[$type])) {
160
+        if (!isset(self::TYPE_METHODS[$type])) {
161 161
             $value = null;
162 162
 
163 163
             return false;
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
         /** @var string|string[] $shortcodes */
184 184
         foreach (\func_get_args() as $shortcodes) {
185
-            $normalized = \array_merge($normalized, \array_map(static function ($shortcode) {
185
+            $normalized = \array_merge($normalized, \array_map(static function($shortcode) {
186 186
                 return \preg_replace('/[^a-z0-9-]/', '-', \strtolower(\trim((string) $shortcode, ':(){}[]')));
187 187
             }, (array) $shortcodes));
188 188
         }
Please login to merge, or discard this patch.
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.