aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/Request.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classes/Request.class.php')
-rw-r--r--lib/classes/Request.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/classes/Request.class.php b/lib/classes/Request.class.php
index 27ed629..efdd2d6 100644
--- a/lib/classes/Request.class.php
+++ b/lib/classes/Request.class.php
@@ -150,7 +150,7 @@ class Request implements ArrayAccess, IteratorAggregate
* Return the filename of the currently executing script.
* @return string
*/
- public static function script_name(): string
+ public static function scriptName(): string
{
return $_SERVER['SCRIPT_NAME'];
}
@@ -159,9 +159,9 @@ class Request implements ArrayAccess, IteratorAggregate
* Returns the complete path info including duplicated slashes.
* $_SERVER['PATH_INFO'] will remove them.
*/
- public static function path_info(): string
+ public static function pathInfo(): string
{
- $script_name = self::script_name();
+ $script_name = self::scriptName();
$script_name = preg_quote($script_name, '#');
$script_name = str_replace('/', '/+', $script_name);