@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | public static function directory(string $path, string $delimiter = DIRECTORY_SEPARATOR): string |
87 | 87 | { |
88 | 88 | $pos = mb_strrpos($path, $delimiter); |
89 | - return (false !== $pos) ? mb_substr($path, 0, $pos + 1) : '' ; |
|
89 | + return (false !== $pos) ? mb_substr($path, 0, $pos + 1) : ''; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | public static function filename(string $path, string $delimiter = DIRECTORY_SEPARATOR): string |
100 | 100 | { |
101 | 101 | $pos = mb_strrpos($path, $delimiter); |
102 | - return (false !== $pos) ? mb_substr($path, $pos + 1) : $path ; |
|
102 | + return (false !== $pos) ? mb_substr($path, $pos + 1) : $path; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | public static function fileBase(string $path, string $delimiter = IPaths::SPLITTER_DOT): string |
112 | 112 | { |
113 | 113 | $pos = mb_strrpos($path, $delimiter); |
114 | - return (false !== $pos) && (0 < $pos) ? mb_substr($path, 0, $pos) : $path ; |
|
114 | + return (false !== $pos) && (0 < $pos) ? mb_substr($path, 0, $pos) : $path; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | /** |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | public static function fileExt(string $path, string $delimiter = IPaths::SPLITTER_DOT): string |
124 | 124 | { |
125 | 125 | $pos = mb_strrpos($path, $delimiter); |
126 | - return ((false !== $pos) && (0 < $pos)) ? mb_substr($path, $pos + 1) : '' ; |
|
126 | + return ((false !== $pos) && (0 < $pos)) ? mb_substr($path, $pos + 1) : ''; |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | */ |
135 | 135 | public static function removeEndingSlash(string $path, string $delimiter = DIRECTORY_SEPARATOR): string |
136 | 136 | { |
137 | - return ($delimiter == mb_substr($path, -1, 1)) ? mb_substr($path, 0, -1) : $path ; |
|
137 | + return ($delimiter == mb_substr($path, -1, 1)) ? mb_substr($path, 0, -1) : $path; |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $base = static::fileBase($fName); |
155 | 155 | $extLen = strlen($ext); |
156 | 156 | $cut = substr($base, 0, ($maxLen - $extLen)); |
157 | - return ($extLen) ? $cut . $delimiter . $ext : $cut ; |
|
157 | + return ($extLen) ? $cut . $delimiter . $ext : $cut; |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | /** |