Passed
Pull Request — latest (#3)
by Mark
35:03
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/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 = $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.
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.