File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 11<?php
2+
23namespace phpbu \App \Backup \Sync ;
34
45use Aws \S3 \S3Client ;
56
67/**
78 * Backblaze Sync
89 *
9- * Docs example https://help.backblaze.com/hc/en-us/articles/360046980814-Using-the-AWS-SDK-for-PHP-with-Backblaze-B2-Cloud-Storage
10+ * Docs example
11+ * https://help.backblaze.com/hc/en-us/articles/360046980814-Using-the-AWS-SDK-for-PHP-with-Backblaze-B2-Cloud-Storage
1012 *
1113 * @package phpbu
1214 * @subpackage Backup
1517 * @license https://opensource.org/licenses/MIT The MIT License (MIT)
1618 * @link http://phpbu.de/
1719 */
18-
19- class BackblazeS3 extends AmazonS3v3 {
20-
20+ class BackblazeS3 extends AmazonS3v3
21+ {
2122 /**
2223 * Create the Backblaze AWS client.
2324 *
@@ -43,8 +44,8 @@ protected function createClient() : S3Client
4344 *
4445 * @return string
4546 */
46- protected function createEndpoint () {
47- return sprintf ('https://s3.%s.backblazeb2.com ' , $ this ->region );
47+ private function createEndpoint ()
48+ {
49+ return strtr ('https://s3.{region}.backblazeb2.com ' , '{region} ' , $ this ->region );
4850 }
49-
50- }
51+ }
You can’t perform that action at this time.
0 commit comments