Test Setup Failed
Pull Request — latest (#3)
by Mark
33:50
created
src/Extension/EmojiCoreProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
42 42
         // Ensure emojis are set to the correct stringable type.
43 43
         $walker = $e->getDocument()->walker();
44 44
         while ($event = $walker->next()) {
45
-            if (! $event->isEntering()) {
45
+            if (!$event->isEntering()) {
46 46
                 continue;
47 47
             }
48 48
 
49 49
             $node = $event->getNode();
50
-            if (! ($node instanceof Emoji)) {
50
+            if (!($node instanceof Emoji)) {
51 51
                 continue;
52 52
             }
53 53
 
Please login to merge, or discard this patch.
src/Extension/Twemoji/TwemojiProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $walker = $e->getDocument()->walker();
42 42
         while ($event = $walker->next()) {
43 43
             $node = $event->getNode();
44
-            if (! ($node instanceof Emoji) || $node->hexcode === null) {
44
+            if (!($node instanceof Emoji) || $node->hexcode === null) {
45 45
                 continue;
46 46
             }
47 47
 
Please login to merge, or discard this patch.
src/Parser/EmojiParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $this->lexer->moveNext();
68 68
 
69 69
         while (true) {
70
-            if (! $this->lexer->lookahead) {
70
+            if (!$this->lexer->lookahead) {
71 71
                 break;
72 72
             }
73 73
 
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
94 94
     protected function parseEmoji(int $type, string $value): ?Emoji
95 95
     {
96 96
         // Immediately return if not a valid type.
97
-        if (! isset(self::INDICES[$type])) {
97
+        if (!isset(self::INDICES[$type])) {
98 98
             return null;
99 99
         }
100 100
 
101 101
         // Return if no emoji could be found.
102
-        if (! ($emoji = $this->environment->getRuntimeDataset(self::INDICES[$type])->offsetGet($value))) {
102
+        if (!($emoji = $this->environment->getRuntimeDataset(self::INDICES[$type])->offsetGet($value))) {
103 103
             return null;
104 104
         }
105 105
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             $this->lexer->moveNext();
121 121
         }
122 122
 
123
-        if (! $text) {
123
+        if (!$text) {
124 124
             return null;
125 125
         }
126 126
 
Please login to merge, or discard this patch.
src/Dataset/RuntimeDataset.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
 
57 57
     public static function unarchive(string $filename): Dataset
58 58
     {
59
-        if (! \file_exists($filename)) {
59
+        if (!\file_exists($filename)) {
60 60
             throw new FileNotFoundException($filename);
61 61
         }
62 62
 
63 63
         if (
64
-            ! ($contents = \file_get_contents($filename)) ||
65
-            ! ($decoded = \gzdecode($contents))
64
+            !($contents = \file_get_contents($filename)) ||
65
+            !($decoded = \gzdecode($contents))
66 66
         ) {
67 67
             throw new UnarchiveException($filename);
68 68
         }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             throw new MalformedArchiveException($filename, $throwable);
75 75
         }
76 76
 
77
-        if (! $dataset instanceof Dataset) {
77
+        if (!$dataset instanceof Dataset) {
78 78
             throw new MalformedArchiveException($filename);
79 79
         }
80 80
 
Please login to merge, or discard this patch.
src/Dataset/Emoji.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
     public function getSkin(int $tone = EmojibaseSkinsInterface::LIGHT_SKIN): ?self
129 129
     {
130 130
         /** @var ?static $skin */
131
-        $skin = \current($this->skins->filter(static function (Emoji $emoji) use ($tone) {
131
+        $skin = \current($this->skins->filter(static function(Emoji $emoji) use ($tone) {
132 132
             return \in_array($tone, (array) $emoji->tone, true);
133 133
         })->getArrayCopy()) ?: null;
134 134
 
Please login to merge, or discard this patch.
src/Dataset/Dataset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
     public function indexBy(string $index = 'hexcode'): Dataset
47 47
     {
48
-        if (! isset($this->indices[$index])) {
48
+        if (!isset($this->indices[$index])) {
49 49
             $this->indices[$index] = new self($this, $index);
50 50
         }
51 51
 
Please login to merge, or discard this patch.
src/Renderer/ImageRenderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@
 block discarded – undo
44 44
      */
45 45
     public function render(Node $node)
46 46
     {
47
-        if (! ($node instanceof Image)) {
47
+        if (!($node instanceof Image)) {
48 48
             throw new \InvalidArgumentException('Incompatible node type: ' . \get_class($node));
49 49
         }
50 50
 
51
-        $forbidUnsafeLinks = ! $this->config->get('allow_unsafe_links');
51
+        $forbidUnsafeLinks = !$this->config->get('allow_unsafe_links');
52 52
         if ($forbidUnsafeLinks && self::isLinkPotentiallyUnsafe($node->getUrl())) {
53 53
             $node->attributes->set('src', '');
54 54
         }
Please login to merge, or discard this patch.
src/Renderer/TextRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function render(Node $node)
28 28
     {
29
-        if (! ($node instanceof Text)) {
29
+        if (!($node instanceof Text)) {
30 30
             throw new \InvalidArgumentException('Incompatible node type: ' . \get_class($node));
31 31
         }
32 32
 
Please login to merge, or discard this patch.
src/Renderer/EmojiRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function render(Node $node)
28 28
     {
29
-        if (! ($node instanceof Emoji)) {
29
+        if (!($node instanceof Emoji)) {
30 30
             throw new \InvalidArgumentException('Incompatible node type: ' . \get_class($node));
31 31
         }
32 32
 
Please login to merge, or discard this patch.