@@ -22,7 +22,7 @@ |
||
| 22 | 22 | public function configureConversionTypes(string &$default, array &$conversionTypes, Data $rawConfig): void |
| 23 | 23 | { |
| 24 | 24 | // Set the default conversion type to Twemoji. |
| 25 | - if (! $rawConfig->has('twemoji.defaultConversionType') || $rawConfig->get('twemoji.defaultConversionType') === true) { |
|
| 25 | + if (!$rawConfig->has('twemoji.defaultConversionType') || $rawConfig->get('twemoji.defaultConversionType') === true) { |
|
| 26 | 26 | $default = TwemojiProcessor::CONVERSION_TYPE; |
| 27 | 27 | } |
| 28 | 28 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | // order to keep '__' to stay '__' we first replace it with a different |
| 86 | 86 | // placeholder after checking that it is not defined as a filter. |
| 87 | 87 | $doubleUnderscoreReplacements = 0; |
| 88 | - if (! isset($filter['__'])) { |
|
| 88 | + if (!isset($filter['__'])) { |
|
| 89 | 89 | $identifier = \str_replace('__', '##', $identifier, $doubleUnderscoreReplacements); |
| 90 | 90 | } |
| 91 | 91 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | $classes = \array_merge($existing, $classes); |
| 120 | 120 | |
| 121 | 121 | // Split any strings that may have multiple classes in them. |
| 122 | - $classes = \array_map(static function (string $class) { |
|
| 122 | + $classes = \array_map(static function(string $class) { |
|
| 123 | 123 | return \explode(' ', $class); |
| 124 | 124 | }, $classes); |
| 125 | 125 | |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * |
| 134 | 134 | * @return string[] |
| 135 | 135 | */ |
| 136 | - static function (array $a, array $v): array { |
|
| 136 | + static function(array $a, array $v): array { |
|
| 137 | 137 | return \array_merge($a, $v); |
| 138 | 138 | }, |
| 139 | 139 | [] |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | public function getAttribute(string $key) |
| 173 | 173 | { |
| 174 | - if (! isset($this->attributes[$key])) { |
|
| 174 | + if (!isset($this->attributes[$key])) { |
|
| 175 | 175 | return null; |
| 176 | 176 | } |
| 177 | 177 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | { |
| 186 | 186 | if ($key === 'class') { |
| 187 | 187 | $this->attributes['class'] = ''; |
| 188 | - if (! \is_array($value)) { |
|
| 188 | + if (!\is_array($value)) { |
|
| 189 | 189 | $value = [$value]; |
| 190 | 190 | } |
| 191 | 191 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | */ |
| 208 | 208 | public function getContents(bool $asString = true) |
| 209 | 209 | { |
| 210 | - if (! $asString) { |
|
| 210 | + if (!$asString) { |
|
| 211 | 211 | return $this->contents; |
| 212 | 212 | } |
| 213 | 213 | |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | */ |
| 139 | 139 | public function offsetUnset($offset): void |
| 140 | 140 | { |
| 141 | - if (! \array_key_exists($offset, $this->elements)) { |
|
| 141 | + if (!\array_key_exists($offset, $this->elements)) { |
|
| 142 | 142 | return; |
| 143 | 143 | } |
| 144 | 144 | |