X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FStringUtils.php;h=48cde0eb19e93de51050681d8330a570eefb49b9;hb=392e68ab855beca7a5084e3423e84c6781a92961;hp=21a392a856f3d52f90da15c1184cd4e66e77d46c;hpb=c0f872ddf7ac1ebe791933a1423c629eee9ee521;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/StringUtils.php b/includes/StringUtils.php index 21a392a856..48cde0eb19 100644 --- a/includes/StringUtils.php +++ b/includes/StringUtils.php @@ -65,7 +65,7 @@ class StringUtils { | [\xf8-\xfb][\x80-\xbf]{4} | \xfc[\x84-\xbf][\x80-\xbf]{4} )+$/x', $value ); - return ($hasUtf8 > 0 ); + return ( $hasUtf8 > 0 ); } } @@ -233,7 +233,7 @@ class StringUtils { // Explode, then put the replaced separators back in $items = explode( $separator, $cleaned ); - foreach( $items as $i => $str ) { + foreach ( $items as $i => $str ) { $items[$i] = str_replace( $placeholder, $separator, $str ); } @@ -440,7 +440,7 @@ class ReplacementArray { * @param $data array */ function removeArray( $data ) { - foreach( $data as $from => $to ) { + foreach ( $data as $from => $to ) { $this->removePair( $from ); } $this->fss = false;