Passed
Push — master ( d7563a...f1d8ce )
by Martijn
01:40
created
src/Multibyte.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Sentence.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.