@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public static function mb_str_pad(string $input, int $pad_length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT): string |
27 | 27 | { |
28 | - $diff = strlen( $input ) - mb_strlen( $input ); |
|
29 | - return str_pad( $input, $pad_length + $diff, $pad_string, $pad_type ); |
|
28 | + $diff = strlen($input) - mb_strlen($input); |
|
29 | + return str_pad($input, $pad_length + $diff, $pad_string, $pad_type); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | public static function sanitizeClass(string $input): string |
51 | 51 | { |
52 | 52 | $input = strtr($input, [':' => '\\', '/' => '\\']); |
53 | - return ('\\' == $input[0]) ? mb_substr($input, 1) : $input ; |
|
53 | + return ('\\' == $input[0]) ? mb_substr($input, 1) : $input; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | public static function getTaskCall(object $class): string |
@@ -101,7 +101,7 @@ |
||
101 | 101 | $namespaced = strtr($namespaced, DIRECTORY_SEPARATOR, '\\'); |
102 | 102 | // remove ext |
103 | 103 | $withExt = mb_strripos($file, Interfaces\ISources::EXT_PHP); |
104 | - $withoutExt = (false !== $withExt) ? mb_substr($file, 0, $withExt) : $file ; |
|
104 | + $withoutExt = (false !== $withExt) ? mb_substr($file, 0, $withExt) : $file; |
|
105 | 105 | // return named class |
106 | 106 | return $namespaced . $withoutExt; |
107 | 107 | } |