@@ -30,9 +30,9 @@ |
||
30 | 30 | */ |
31 | 31 | public static function split($pattern, $string, $limit = -1, $flags = 0) |
32 | 32 | { |
33 | - $split_no_empty = (bool)($flags & PREG_SPLIT_NO_EMPTY); |
|
34 | - $offset_capture = (bool)($flags & PREG_SPLIT_OFFSET_CAPTURE); |
|
35 | - $delim_capture = (bool)($flags & PREG_SPLIT_DELIM_CAPTURE); |
|
33 | + $split_no_empty = (bool) ($flags & PREG_SPLIT_NO_EMPTY); |
|
34 | + $offset_capture = (bool) ($flags & PREG_SPLIT_OFFSET_CAPTURE); |
|
35 | + $delim_capture = (bool) ($flags & PREG_SPLIT_DELIM_CAPTURE); |
|
36 | 36 | |
37 | 37 | $lengths = self::getSplitLengths($pattern, $string); |
38 | 38 |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $merges = []; |
122 | 122 | $merge = ''; |
123 | 123 | |
124 | - $filtered = array_filter($punctuations, function ($p) { |
|
124 | + $filtered = array_filter($punctuations, function($p) { |
|
125 | 125 | return $p !== ''; |
126 | 126 | }); |
127 | 127 | |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | */ |
367 | 367 | private static function trimSentences($sentences) |
368 | 368 | { |
369 | - return array_map(function ($sentence) { |
|
369 | + return array_map(function($sentence) { |
|
370 | 370 | return Multibyte::trim($sentence); |
371 | 371 | }, $sentences); |
372 | 372 | } |