Skip to content

Commit 258de28

Browse files
committed
fix style
1 parent 3d91def commit 258de28

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/Backup/Sync/BackblazeS3.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?php
2+
23
namespace phpbu\App\Backup\Sync;
34

45
use 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
@@ -15,9 +17,8 @@
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+
}

0 commit comments

Comments
 (0)