@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | // Be careful, there are non secable spaces here |
51 | 51 | $uglyString = str_replace(['\'\'', ' ;', ' ?', ' !', ' :', ' »', '« ', '\'', '...'], ['"', ' ;', ' ?', ' !', ' :', ' »', '« ', '’', '…'], $uglyString); |
52 | 52 | $uglyString = preg_replace('#(\d)\s?([$€£¥])#u', '$1 $2', $uglyString); |
53 | - $uglyString = preg_replace_callback('#\d{4,}#u', function ($matches) { |
|
53 | + $uglyString = preg_replace_callback('#\d{4,}#u', function($matches) { |
|
54 | 54 | return number_format((float) $matches[0], 0, ',', ' '); |
55 | 55 | }, $uglyString); |
56 | 56 | |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $transliterate_string = transliterator_transliterate("Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC; Lower();", $string); |
251 | 251 | |
252 | 252 | if (false === $transliterate_string) { |
253 | - throw new \Exception('This function (' . __FUNCTION__ .') was not able to transliterate “'. $string .'”'); |
|
253 | + throw new \Exception('This function ('.__FUNCTION__.') was not able to transliterate “'.$string.'”'); |
|
254 | 254 | } |
255 | 255 | |
256 | 256 | $string = trim($transliterate_string, '-'); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | */ |
50 | 50 | public static function pluck(array $multidimensionalArray, string $property): array |
51 | 51 | { |
52 | - return array_reduce($multidimensionalArray, function ($result, $currentArray) use ($property) { |
|
52 | + return array_reduce($multidimensionalArray, function($result, $currentArray) use ($property) { |
|
53 | 53 | if (isset($currentArray[$property])) { |
54 | 54 | $result[] = $currentArray[$property]; |
55 | 55 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * @param string $class The fully-qualified class name. |
15 | 15 | * @return void |
16 | 16 | */ |
17 | -spl_autoload_register(function ($class) { |
|
17 | +spl_autoload_register(function($class) { |
|
18 | 18 | $prefix = 'Rico\\'; |
19 | 19 | $prefixTest = 'Rico\\Test\\'; |
20 | 20 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $baseDir = ''; |
24 | 24 | $relativeClass = ''; |
25 | 25 | if (0 === strncmp($prefix, $class, $length)) { |
26 | - $baseDir = __DIR__.'/src/'; |
|
26 | + $baseDir = __DIR__.'/src/'; |
|
27 | 27 | $relativeClass = mb_substr($class, $length); |
28 | 28 | } |
29 | 29 | if (0 === strncmp($prefixTest, $class, $lengthTest)) { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -spl_autoload_register(function ($class) { |
|
4 | +spl_autoload_register(function($class) { |
|
5 | 5 | $prefix = 'Rico\\'; |
6 | 6 | |
7 | 7 | $length = mb_strlen($prefix); |