Passed
Branch master (ddb51c)
by Ramesh
04:48
created
src/Client.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             );
54 54
         }
55 55
 
56
-        $response = $this->client->request('POST', $this->apiUrl . '/b2_create_bucket', [
56
+        $response = $this->client->request('POST', $this->apiUrl.'/b2_create_bucket', [
57 57
             'headers' => [
58 58
                 'Authorization' => $this->authToken,
59 59
             ],
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $options['BucketId'] = $this->getBucketIdFromName($options['BucketName']);
87 87
         }
88 88
 
89
-        $response = $this->client->request('POST', $this->apiUrl . '/b2_update_bucket', [
89
+        $response = $this->client->request('POST', $this->apiUrl.'/b2_update_bucket', [
90 90
             'headers' => [
91 91
                 'Authorization' => $this->authToken,
92 92
             ],
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $buckets = [];
111 111
 
112
-        $response = $this->client->request('POST', $this->apiUrl . '/b2_list_buckets', [
112
+        $response = $this->client->request('POST', $this->apiUrl.'/b2_list_buckets', [
113 113
             'headers' => [
114 114
                 'Authorization' => $this->authToken,
115 115
             ],
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $options['BucketId'] = $this->getBucketIdFromName($options['BucketName']);
138 138
         }
139 139
 
140
-        $this->client->request('POST', $this->apiUrl . '/b2_delete_bucket', [
140
+        $this->client->request('POST', $this->apiUrl.'/b2_delete_bucket', [
141 141
             'headers' => [
142 142
                 'Authorization' => $this->authToken
143 143
             ],
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         }
169 169
 
170 170
         // Retrieve the URL that we should be uploading to.
171
-        $response = $this->client->request('POST', $this->apiUrl . '/b2_get_upload_url', [
171
+        $response = $this->client->request('POST', $this->apiUrl.'/b2_get_upload_url', [
172 172
             'headers' => [
173 173
                 'Authorization' => $this->authToken
174 174
             ],
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
         if (isset($options['FileId'])) {
247 247
             $requestOptions['query'] = ['fileId' => $options['FileId']];
248
-            $requestUrl = $this->downloadUrl . '/b2api/v1/b2_download_file_by_id';
248
+            $requestUrl = $this->downloadUrl.'/b2api/v1/b2_download_file_by_id';
249 249
         } else {
250 250
             if (!isset($options['BucketName']) && isset($options['BucketId'])) {
251 251
                 $options['BucketName'] = $this->getBucketNameFromId($options['BucketId']);
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 
286 286
         // B2 returns, at most, 1000 files per "page". Loop through the pages and compile an array of File objects.
287 287
         while (true) {
288
-            $response = $this->client->request('POST', $this->apiUrl . '/b2_list_file_names', [
288
+            $response = $this->client->request('POST', $this->apiUrl.'/b2_list_file_names', [
289 289
                 'headers' => [
290 290
                     'Authorization' => $this->authToken
291 291
                 ],
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
             }
346 346
         }
347 347
 
348
-        $response = $this->client->request('POST', $this->apiUrl . '/b2_get_file_info', [
348
+        $response = $this->client->request('POST', $this->apiUrl.'/b2_get_file_info', [
349 349
             'headers' => [
350 350
                 'Authorization' => $this->authToken
351 351
             ],
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
             $options['FileId'] = $file->getId();
388 388
         }
389 389
 
390
-        $this->client->request('POST', $this->apiUrl . '/b2_delete_file_version', [
390
+        $this->client->request('POST', $this->apiUrl.'/b2_delete_file_version', [
391 391
             'headers' => [
392 392
                 'Authorization' => $this->authToken
393 393
             ],
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
         ]);
413 413
 
414 414
         $this->authToken = $response['authorizationToken'];
415
-        $this->apiUrl = $response['apiUrl'] . '/b2api/v1';
415
+        $this->apiUrl = $response['apiUrl'].'/b2api/v1';
416 416
         $this->downloadUrl = $response['downloadUrl'];
417 417
     }
418 418
 
Please login to merge, or discard this patch.
src/ErrorHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
             $exceptionClass = B2Exception::class;
34 34
         }
35 35
 
36
-        throw new $exceptionClass('Received error from B2: ' . $responseJson['message']);
36
+        throw new $exceptionClass('Received error from B2: '.$responseJson['message']);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.