Skip to content

Commit 295a486

Browse files
committed
refactor: rename method
1 parent 0522efa commit 295a486

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

system/HTTP/URIFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public function __construct(array &$server, array &$get, App $appConfig)
4040
}
4141

4242
/**
43-
* Create the current URI object.
43+
* Create the current URI object from superglobals.
4444
*
4545
* This method updates superglobal $_SERVER and $_GET.
4646
*/
47-
public function createCurrentURI(): URI
47+
public function createFromGlobals(): URI
4848
{
4949
$routePath = $this->detectRoutePath();
5050

tests/system/HTTP/URIFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testCreateCurrentURI()
4949

5050
$factory = new URIFactory($_SERVER, $_GET, new App());
5151

52-
$uri = $factory->createCurrentURI();
52+
$uri = $factory->createFromGlobals();
5353

5454
$this->assertInstanceOf(URI::class, $uri);
5555
$this->assertSame('http://localhost:8080/woot?code=good', (string) $uri);

0 commit comments

Comments
 (0)