mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: remove unneeded method_exist() check
This commit is contained in:
parent
4a636853e1
commit
3519bddd57
@ -809,7 +809,7 @@ class CodeIgniter
|
||||
*/
|
||||
protected function determinePath()
|
||||
{
|
||||
return method_exists($this->request, 'getPath') ? $this->request->getPath() : $this->request->getUri()->getPath();
|
||||
return $this->request->getPath();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user