@@ -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 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | */ |
72 | 72 | public static function split($pattern, $string, $limit = -1, $flags = 0) |
73 | 73 | { |
74 | - $offset_capture = (bool)($flags & PREG_SPLIT_OFFSET_CAPTURE); |
|
74 | + $offset_capture = (bool) ($flags & PREG_SPLIT_OFFSET_CAPTURE); |
|
75 | 75 | |
76 | 76 | $lengths = self::getSplitLengths($pattern, $string); |
77 | 77 |