Test Setup Failed
Pull Request — latest (#3)
by Mark
65:38 queued 30:20
created
src/Traits/ListeningEnvironmentTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,11 +87,11 @@
 block discarded – undo
87 87
 
88 88
         /** @var ListenerData $listenerData */
89 89
         foreach ($this->listenerData as $listenerData) {
90
-            if (! \is_a($event, $listenerData->getEvent())) {
90
+            if (!\is_a($event, $listenerData->getEvent())) {
91 91
                 continue;
92 92
             }
93 93
 
94
-            yield function (object $event) use ($listenerData): void {
94
+            yield function(object $event) use ($listenerData): void {
95 95
                 $this->initialize();
96 96
 
97 97
                 \call_user_func($listenerData->getListener(), $event);
Please login to merge, or discard this patch.
src/Parser/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $this->lexer->moveNext();
71 71
 
72 72
         while (true) {
73
-            if (! $this->lexer->lookahead) {
73
+            if (!$this->lexer->lookahead) {
74 74
                 break;
75 75
             }
76 76
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     protected function parseEmoji(int $type, string $value)
92 92
     {
93 93
         // Immediately return if not a valid type.
94
-        if (! isset(self::T_DATASETS[$type])) {
94
+        if (!isset(self::T_DATASETS[$type])) {
95 95
             return null;
96 96
         }
97 97
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $emoji       = $dataset->offsetGet($value);
103 103
 
104 104
         // Return if not an emoji.
105
-        if (! $emoji) {
105
+        if (!$emoji) {
106 106
             return null;
107 107
         }
108 108
 
Please login to merge, or discard this patch.
src/Node/Node.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $this->next        = $sibling;
100 100
         $sibling->setParent($this->parent);
101 101
 
102
-        if (! $sibling->next && $sibling->parent) {
102
+        if (!$sibling->next && $sibling->parent) {
103 103
             $sibling->parent->lastChild = $sibling;
104 104
         }
105 105
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $this->previous = $sibling;
121 121
         $sibling->setParent($this->parent);
122 122
 
123
-        if (! $sibling->previous && $sibling->parent) {
123
+        if (!$sibling->previous && $sibling->parent) {
124 124
             $sibling->parent->firstChild = $sibling;
125 125
         }
126 126
     }
Please login to merge, or discard this patch.
src/Node/Block/AbstractBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     protected function setParent(?Node $node = null): void
42 42
     {
43
-        if ($node && ! $node instanceof self) {
43
+        if ($node && !$node instanceof self) {
44 44
             throw new \InvalidArgumentException('Parent of block must also be block (cannot be inline)');
45 45
         }
46 46
 
Please login to merge, or discard this patch.
src/Input/Input.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
     public function __construct(string $content, int $lineOffset = 0)
49 49
     {
50
-        if (! \mb_check_encoding($content, 'UTF-8')) {
50
+        if (!\mb_check_encoding($content, 'UTF-8')) {
51 51
             throw new UnexpectedEncodingException('Unexpected encoding - UTF-8 or ASCII was expected');
52 52
         }
53 53
 
Please login to merge, or discard this patch.
src/Renderer/Inline/TextRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function render(Node $node, ChildNodeRendererInterface $childRenderer)
30 30
     {
31
-        if (! ($node instanceof Text)) {
31
+        if (!($node instanceof Text)) {
32 32
             throw new \InvalidArgumentException('Incompatible node type: ' . \get_class($node));
33 33
         }
34 34
 
Please login to merge, or discard this patch.
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.