@@ -58,7 +58,7 @@ public static function parseLines(string $text, bool $toAssoc = true): array
5858 $ text = self ::clean ($ text , false , false , false );
5959
6060 $ text = str_replace (["\n" , "\r" , "\r\n" , PHP_EOL ], "\n" , $ text );
61- $ lines = ( array ) explode ("\n" , $ text );
61+ $ lines = explode ("\n" , $ text );
6262
6363 $ result = [];
6464 foreach ($ lines as $ line ) {
@@ -135,7 +135,7 @@ public static function htmlEnt(string $string, bool $encodedEntities = false): s
135135 return (string )preg_replace ($ regExp , '& ' , strtr ($ string , $ transTable ));
136136 }
137137
138- return ( string ) htmlentities ($ string , ENT_QUOTES , self ::$ encoding );
138+ return htmlentities ($ string , ENT_QUOTES , self ::$ encoding );
139139 }
140140
141141 /**
@@ -385,7 +385,7 @@ public static function len(string $string): int
385385 return (int )mb_strlen ($ string , self ::$ encoding );
386386 }
387387
388- return ( int ) strlen ($ string );
388+ return strlen ($ string );
389389 }
390390
391391 /**
@@ -526,7 +526,7 @@ public static function low($string): string
526526 return (string )mb_strtolower ((string )$ string , self ::$ encoding );
527527 }
528528
529- return ( string ) strtolower ((string )$ string );
529+ return strtolower ((string )$ string );
530530 }
531531
532532 /**
@@ -543,7 +543,7 @@ public static function up($string): string
543543 return (string )mb_strtoupper ((string )$ string , self ::$ encoding );
544544 }
545545
546- return ( string ) strtoupper ((string )$ string );
546+ return strtoupper ((string )$ string );
547547 }
548548
549549 /**
@@ -559,7 +559,7 @@ public static function subCount(string $haystack, string $needle): int
559559 return (int )mb_substr_count ($ haystack , $ needle , self ::$ encoding );
560560 }
561561
562- return ( int ) substr_count ($ haystack , $ needle );
562+ return substr_count ($ haystack , $ needle );
563563 }
564564
565565 /**
0 commit comments