@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | */ |
16 | 16 | function between($input, $left, $right) |
17 | 17 | { |
18 | - $input = ' ' . $input; |
|
18 | + $input = ' '.$input; |
|
19 | 19 | $ini = strpos($input, $left); |
20 | 20 | |
21 | 21 | if ($ini == 0) { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | $input = preg_replace_callback( |
55 | 55 | '/[-_\s]+(.)?/u', |
56 | - function ($match) { |
|
56 | + function($match) { |
|
57 | 57 | if (isset($match[1])) { |
58 | 58 | return strtoupper($match[1]); |
59 | 59 | } else { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | $input = preg_replace_callback( |
67 | 67 | '/[\d]+(.)?/u', |
68 | - function ($match) { |
|
68 | + function($match) { |
|
69 | 69 | return strtoupper($match[0]); |
70 | 70 | }, |
71 | 71 | $input |
@@ -653,7 +653,7 @@ discard block |
||
653 | 653 | */ |
654 | 654 | function swapCase($string, $mb = false) |
655 | 655 | { |
656 | - return array_reduce(str_split($string), function ($carry, $item) use ($mb) { |
|
656 | + return array_reduce(str_split($string), function($carry, $item) use ($mb) { |
|
657 | 657 | return $carry .= isLower($item, $mb) ? toUpper($item, $mb) : toLower($item, $mb); |
658 | 658 | }, ''); |
659 | 659 | } |
@@ -691,7 +691,7 @@ discard block |
||
691 | 691 | |
692 | 692 | return preg_replace_callback( |
693 | 693 | '/([\S]+)/u', |
694 | - function ($match) use ($ignore) { |
|
694 | + function($match) use ($ignore) { |
|
695 | 695 | if (in_array(strtolower($match[0]), $ignore)) { |
696 | 696 | return $match[0]; |
697 | 697 | } else { |
@@ -729,7 +729,7 @@ discard block |
||
729 | 729 | { |
730 | 730 | $lastWord = array_pop($array); |
731 | 731 | |
732 | - return implode($delimiter, $array) . $lastDelimiter . $lastWord; |
|
732 | + return implode($delimiter, $array).$lastDelimiter.$lastWord; |
|
733 | 733 | } |
734 | 734 | |
735 | 735 | /** |
@@ -751,7 +751,7 @@ discard block |
||
751 | 751 | $lastDel = trim($delimiter, ' '); |
752 | 752 | } |
753 | 753 | |
754 | - return implode($delimiter, $array) . $lastDel . $lastDelimiter . $lastWord; |
|
754 | + return implode($delimiter, $array).$lastDel.$lastDelimiter.$lastWord; |
|
755 | 755 | } |
756 | 756 | |
757 | 757 | |
@@ -795,7 +795,7 @@ discard block |
||
795 | 795 | } |
796 | 796 | } |
797 | 797 | |
798 | - return implode(array_slice($splits, 0, $lastSplit)) . $chars; |
|
798 | + return implode(array_slice($splits, 0, $lastSplit)).$chars; |
|
799 | 799 | } else { |
800 | 800 | return $input; |
801 | 801 | } |