Completed
Pull Request — master (#160)
by Lito
02:33
created
src/Dropbox/Security/RandomStringGeneratorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected static function defaultRandomStringGenerator()
58 58
     {
59 59
         //Mcrypt
60
-        if (function_exists('mcrypt_create_iv') && version_compare( PHP_VERSION, '7.1', '<' )) {
60
+        if (function_exists('mcrypt_create_iv') && version_compare(PHP_VERSION, '7.1', '<')) {
61 61
             return new McryptRandomStringGenerator();
62 62
         }
63 63
 
Please login to merge, or discard this patch.
src/Dropbox/Dropbox.php 2 patches
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -487,7 +487,6 @@  discard block
 block discarded – undo
487 487
 	/**
488 488
      * Search a folder for files/folders
489 489
      *
490
-     * @param  string $path   Path to search
491 490
      * @param  string $query  Search Query
492 491
      * @param  array  $params Additional Params
493 492
      *
@@ -907,7 +906,7 @@  discard block
 block discarded – undo
907 906
     /**
908 907
      * Upload file in sessions/chunks
909 908
      *
910
-     * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file
909
+     * @param DropboxFile $dropboxFile DropboxFile object or Path to file
911 910
      * @param string $path Path to save the file to, on Dropbox
912 911
      * @param int $fileSize The size of the file
913 912
      * @param int $chunkSize The amount of data to upload in each chunk
@@ -972,7 +971,7 @@  discard block
 block discarded – undo
972 971
     /**
973 972
      * Start an Upload Session
974 973
      *
975
-     * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file
974
+     * @param string $dropboxFile DropboxFile object or Path to file
976 975
      * @param int $chunkSize Size of file chunk to upload
977 976
      * @param boolean $close Closes the session for "appendUploadSession"
978 977
      *
@@ -1025,7 +1024,7 @@  discard block
 block discarded – undo
1025 1024
     /**
1026 1025
      * Append more data to an Upload Session
1027 1026
      *
1028
-     * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file
1027
+     * @param DropboxFile $dropboxFile DropboxFile object or Path to file
1029 1028
      * @param string $sessionId Session ID returned by `startUploadSession`
1030 1029
      * @param int $offset The amount of data that has been uploaded so far
1031 1030
      * @param int $chunkSize The amount of data to upload
@@ -1074,7 +1073,7 @@  discard block
 block discarded – undo
1074 1073
     /**
1075 1074
      * Finish an upload session and save the uploaded data to the given file path
1076 1075
      *
1077
-     * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file
1076
+     * @param DropboxFile $dropboxFile DropboxFile object or Path to file
1078 1077
      * @param string $sessionId Session ID returned by `startUploadSession`
1079 1078
      * @param int $offset The amount of data that has been uploaded so far
1080 1079
      * @param int $remaining The amount of data that is remaining
@@ -1122,7 +1121,7 @@  discard block
 block discarded – undo
1122 1121
     /**
1123 1122
      * Upload a File to Dropbox in a single request
1124 1123
      *
1125
-     * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file
1124
+     * @param DropboxFile $dropboxFile DropboxFile object or Path to file
1126 1125
      * @param string $path Path to upload the file to
1127 1126
      * @param array $params Additional Params
1128 1127
      *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
         //Set the path and query
507 507
         $params['query'] = $query;
508 508
 
509
-		if( !array_key_exists( 'include_highlights', $params ) ){
509
+		if (!array_key_exists('include_highlights', $params)) {
510 510
 			$params['include_highlights'] = false;
511 511
 		}
512 512
 
@@ -1239,7 +1239,7 @@  discard block
 block discarded – undo
1239 1239
 
1240 1240
             //Since the metadata is returned as a json string
1241 1241
             //it needs to be decoded into an associative array
1242
-            $metadata = json_decode((string)$data, true);
1242
+            $metadata = json_decode((string) $data, true);
1243 1243
         }
1244 1244
 
1245 1245
         //Return the metadata
Please login to merge, or discard this patch.