Completed
Push — develop ( 32c5af...9b083d )
by Ben
10s
created
src/Api.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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];
Please login to merge, or discard this patch.