@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | if (!empty($string)) { |
74 | 74 | $string = strip_tags($string); |
75 | - $result = (string)Stringy::create($string)->truncate($length, $substring); |
|
75 | + $result = (string) Stringy::create($string)->truncate($length, $substring); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | return $result; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | if (!empty($string)) { |
98 | 98 | $string = strip_tags($string); |
99 | - $result = (string)Stringy::create($string)->safeTruncate($length, $substring); |
|
99 | + $result = (string) Stringy::create($string)->safeTruncate($length, $substring); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | return $result; |
@@ -128,9 +128,9 @@ discard block |
||
128 | 128 | $result = self::extractTextFromTags($field); |
129 | 129 | } else { |
130 | 130 | if (\is_array($field)) { |
131 | - $result = self::smartStripTags((string)$field[0]); |
|
131 | + $result = self::smartStripTags((string) $field[0]); |
|
132 | 132 | } else { |
133 | - $result = self::smartStripTags((string)$field); |
|
133 | + $result = self::smartStripTags((string) $field); |
|
134 | 134 | } |
135 | 135 | } |
136 | 136 | |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | |
337 | 337 | $result = \is_array($keywords) |
338 | 338 | ? implode(', ', \array_slice(array_keys($keywords), 0, $limit)) |
339 | - : (string)$keywords; |
|
339 | + : (string) $keywords; |
|
340 | 340 | |
341 | 341 | return self::sanitizeUserInput($result); |
342 | 342 | } |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | |
375 | 375 | $result = \is_array($sentences) |
376 | 376 | ? implode(' ', $sentences) |
377 | - : (string)$sentences; |
|
377 | + : (string) $sentences; |
|
378 | 378 | |
379 | 379 | return self::sanitizeUserInput($result); |
380 | 380 | } |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | $str = html_entity_decode($str, ENT_NOQUOTES, 'UTF-8'); |
395 | 395 | $str = rawurldecode($str); |
396 | 396 | // Remove any linebreaks |
397 | - $str = (string)preg_replace("/\r|\n/", "", $str); |
|
397 | + $str = (string) preg_replace("/\r|\n/", "", $str); |
|
398 | 398 | $str = strip_tags($str); |
399 | 399 | // Remove any embedded Twig code |
400 | 400 | $str = preg_replace('/{{.*?}}/', '', $str); |