Skip to content

Commit c3d4e01

Browse files
committed
Small fixes
1 parent 9ac2d73 commit c3d4e01

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

routing/page_loader_core.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ public function __construct(driver_interface $db, string $pages_table)
4141
* Loads routes defined in Page's database.
4242
*
4343
* @return RouteCollection A RouteCollection instance
44-
*
45-
* @api
4644
*/
47-
public function loadRoutes(): RouteCollection
45+
public function load_routes(): RouteCollection
4846
{
4947
$collection = new RouteCollection();
5048

@@ -69,7 +67,7 @@ public function loadRoutes(): RouteCollection
6967
* @param mixed $type The type to check support for.
7068
* @return bool True if the type is supported, false otherwise.
7169
*/
72-
public function supportsType($type): bool
70+
public function supports_type($type): bool
7371
{
7472
return $type === 'phpbb_pages_route';
7573
}

routing/page_loader_phpbb3.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function load($resource, $type = null)
4747
{
4848
throw new InvalidArgumentException('Type must be string or null');
4949
}
50-
return $this->core->loadRoutes();
50+
return $this->core->load_routes();
5151
}
5252

5353
/**
@@ -59,6 +59,6 @@ public function load($resource, $type = null)
5959
*/
6060
public function supports($resource, $type = null): bool
6161
{
62-
return $this->core->supportsType($type);
62+
return $this->core->supports_type($type);
6363
}
6464
}

routing/page_loader_phpbb4.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(driver_interface $db, string $pages_table)
4343
*/
4444
public function load(mixed $resource, ?string $type = null): RouteCollection
4545
{
46-
return $this->core->loadRoutes();
46+
return $this->core->load_routes();
4747
}
4848

4949
/**
@@ -55,6 +55,6 @@ public function load(mixed $resource, ?string $type = null): RouteCollection
5555
*/
5656
public function supports(mixed $resource, ?string $type = null): bool
5757
{
58-
return $this->core->supportsType($type);
58+
return $this->core->supports_type($type);
5959
}
6060
}

0 commit comments

Comments
 (0)