Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
atirtan committed Nov 28, 2019
1 parent 4fd8e9f commit 4a4ba66
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Helpers/StringHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@

use function random_int;

final class StringHelper {
final class StringHelper
{

public static function stripNonPrintableCharacters(string $value): string {
public static function stripNonPrintableCharacters(string $value): string
{
return (string)preg_replace('/[\x00-\x1F\x7F]/u', '', $value);
}

public static function sortAlphabetically(string $string): string {
public static function sortAlphabetically(string $string): string
{
$arr = str_split($string, 1);
sort($arr);

Expand Down

0 comments on commit 4a4ba66

Please sign in to comment.