@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $recursive |
198 | 198 | ); |
199 | 199 | |
200 | - $path = rtrim($path, '/') . '/'; |
|
200 | + $path = rtrim($path, '/').'/'; |
|
201 | 201 | |
202 | 202 | $treeMetadata = $this->extractMetaDataFromTreeInfo($info[self::KEY_TREE], $path, $recursive); |
203 | 203 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | { |
214 | 214 | //@NOTE: The github API does not return a MIME type, so we have to guess :-( |
215 | 215 | if (strrpos($path, '.') > 1) { |
216 | - $extension = substr($path, strrpos($path, '.')+1); |
|
216 | + $extension = substr($path, strrpos($path, '.') + 1); |
|
217 | 217 | $mimeType = MimeType::detectByFileExtension($extension) ?: 'text/plain'; |
218 | 218 | } else { |
219 | 219 | $content = $this->getFileContents($path); |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | $matchPath = substr($path, 0, -1); |
261 | 261 | $length = strlen($matchPath) - 1; |
262 | 262 | |
263 | - $metadata = array_filter($tree, function ($entry) use ($matchPath, $recursive, $length) { |
|
263 | + $metadata = array_filter($tree, function($entry) use ($matchPath, $recursive, $length) { |
|
264 | 264 | $match = false; |
265 | 265 | |
266 | 266 | $entryPath = $entry[self::KEY_PATH]; |