Skip to content

Commit 383bf8c

Browse files
committed
update function name to camelcase
1 parent da418ce commit 383bf8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

solid/lib/Controller/GetStorageUrlTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getStorageUrl($userId) {
5050
}
5151

5252
$url['host'] = $userId . '.' . $url['host']; // $storageUrl = $userId . '.' . $storageUrl;
53-
$storageUrl = $this->build_url($url);
53+
$storageUrl = $this->buildUrl($url);
5454
}
5555

5656
return $storageUrl;
@@ -79,7 +79,7 @@ public function validateUrl(RequestInterface $request): bool {
7979

8080
////////////////////////////// UTILITY METHODS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\
8181

82-
private function build_url(array $parts) {
82+
private function buildUrl(array $parts) {
8383
// @FIXME: Replace with existing more robust URL builder
8484
return (isset($parts['scheme']) ? "{$parts['scheme']}:" : '') .
8585
(isset($parts['host']) ? "//{$parts['host']}" : '') .

solid/tests/Unit/Controller/GetStorageUrlTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testGetStorageUrlWithUserSubDomainsDisabled($url, $userId, $expe
8383
/**
8484
* @testdox GetStorageUrlTrait should return a string when called with a UrlGenerator and Configuration
8585
* @covers ::getStorageUrl
86-
* @covers ::build_url
86+
* @covers ::buildUrl
8787
*
8888
* @dataProvider provideSubDomainsEnabledUrls
8989
*/

0 commit comments

Comments
 (0)