PluginProbe
WindPress – Tailwind CSS integration for WordPress / 3.2.89
WindPress – Tailwind CSS integration for WordPress v3.2.89
3.2.89 3.2.88 3.2.87 3.2.86 3.2.85 3.2.84 3.2.83 3.2.82 3.2.81 trunk 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 All 143 releases
← All changes | vendor/symfony/string/AbstractUnicodeString.php +9 -9 3.0.23.2.89 View file →
@@ -7,13 +7,13 @@
7 7 *
8 8 * For the full copyright and license information, please view the LICENSE
9 9 * file that was distributed with this source code.
10 10 */
11 -namespace WindPressPackages\Symfony\Component\String;
11 +namespace WindPressDeps\Symfony\Component\String;
12 12
13 -use WindPressPackages\Symfony\Component\String\Exception\ExceptionInterface;
14 -use WindPressPackages\Symfony\Component\String\Exception\InvalidArgumentException;
15 -use WindPressPackages\Symfony\Component\String\Exception\RuntimeException;
13 +use WindPressDeps\Symfony\Component\String\Exception\ExceptionInterface;
14 +use WindPressDeps\Symfony\Component\String\Exception\InvalidArgumentException;
15 +use WindPressDeps\Symfony\Component\String\Exception\RuntimeException;
16 16 /**
17 17 * Represents a string of abstract Unicode characters.
18 18 *
19 19 * Unicode defines 3 types of "characters" (bytes, code points and grapheme clusters).
@@ -127,9 +127,9 @@
127 127 $c = (string) iconv('UTF-8', 'ASCII//TRANSLIT', $c[0]);
128 128 if ('' === $c && '' === iconv('UTF-8', 'ASCII//TRANSLIT', '²')) {
129 129 throw new \LogicException(sprintf('"%s" requires a translit-able iconv implementation, try installing "gnu-libiconv" if you\'re using Alpine Linux.', static::class));
130 130 }
131 - return (1 < \strlen($c)) ? ltrim($c, '\'`"^~') : (('' !== $c) ? $c : '?');
131 + return 1 < \strlen($c) ? ltrim($c, '\'`"^~') : ('' !== $c ? $c : '?');
132 132 }, $s);
133 133 }
134 134 }
135 135 $str->string .= $s;
@@ -138,9 +138,9 @@
138 138 public function camel(): parent
139 139 {
140 140 $str = clone $this;
141 141 $str->string = str_replace(' ', '', preg_replace_callback('/\b.(?!\p{Lu})/u', static function ($m) use (&$i) {
142 - return (1 === ++$i) ? ('İ' === $m[0]) ? 'i̇' : mb_strtolower($m[0], 'UTF-8') : mb_convert_case($m[0], \MB_CASE_TITLE, 'UTF-8');
142 + return 1 === ++$i ? 'İ' === $m[0] ? 'i̇' : mb_strtolower($m[0], 'UTF-8') : mb_convert_case($m[0], \MB_CASE_TITLE, 'UTF-8');
143 143 }, preg_replace('/[^\pL0-9]++/u', ' ', $this->string)));
144 144 return $str;
145 145 }
146 146 /**
@@ -160,9 +160,9 @@
160 160 }
161 161 public function folded(bool $compat = \true): parent
162 162 {
163 163 $str = clone $this;
164 - if (!$compat || \PHP_VERSION_ID < 70300 || !\defined('WindPressPackages\Normalizer::NFKC_CF')) {
164 + if (!$compat || \PHP_VERSION_ID < 70300 || !\defined('WindPressDeps\Normalizer::NFKC_CF')) {
165 165 $str->string = normalizer_normalize($str->string, $compat ? \Normalizer::NFKC : \Normalizer::NFC);
166 166 $str->string = mb_strtolower(str_replace(self::FOLD_FROM, self::FOLD_TO, $str->string), 'UTF-8');
167 167 } else {
168 168 $str->string = normalizer_normalize($str->string, \Normalizer::NFKC_CF);
@@ -171,9 +171,9 @@
171 171 }
172 172 public function join(array $strings, ?string $lastGlue = null): parent
173 173 {
174 174 $str = clone $this;
175 - $tail = (null !== $lastGlue && 1 < \count($strings)) ? $lastGlue . array_pop($strings) : '';
175 + $tail = null !== $lastGlue && 1 < \count($strings) ? $lastGlue . array_pop($strings) : '';
176 176 $str->string = implode($this->string, $strings) . $tail;
177 177 if (!preg_match('//u', $str->string)) {
178 178 throw new InvalidArgumentException('Invalid UTF-8 string.');
179 179 }
@@ -186,9 +186,9 @@
186 186 return $str;
187 187 }
188 188 public function match(string $regexp, int $flags = 0, int $offset = 0): array
189 189 {
190 - $match = ((\PREG_PATTERN_ORDER | \PREG_SET_ORDER) & $flags) ? 'preg_match_all' : 'preg_match';
190 + $match = (\PREG_PATTERN_ORDER | \PREG_SET_ORDER) & $flags ? 'preg_match_all' : 'preg_match';
191 191 if ($this->ignoreCase) {
192 192 $regexp .= 'i';
193 193 }
194 194 set_error_handler(static function ($t, $m) {