Completed
Pull Request — master (#160)
by Lito
04:39
created
src/Dropbox/Models/SearchResult.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     /**
50 50
      * Indicates what type of match was found for the result
51 51
      *
52
-     * @return bool
52
+     * @return string
53 53
      */
54 54
     public function getMatchType()
55 55
     {
Please login to merge, or discard this patch.
src/Dropbox/DropboxClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      */
94 94
     protected function buildAuthHeader($accessToken = "")
95 95
     {
96
-        return ['Authorization' => 'Bearer '. $accessToken];
96
+        return ['Authorization' => 'Bearer ' . $accessToken];
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.
src/Dropbox/Http/Clients/DropboxGuzzleHttpClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         } catch (RequestException $e) {
61 61
             $rawResponse = $e->getResponse();
62 62
 
63
-            if (! $rawResponse instanceof ResponseInterface) {
63
+            if (!$rawResponse instanceof ResponseInterface) {
64 64
                 throw new DropboxClientException($e->getMessage(), $e->getCode());
65 65
             }
66 66
         }
Please login to merge, or discard this patch.
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.