Skip to content

Commit 9545ed9

Browse files
committed
refactor: remove unneeded method_exist() check
1 parent 6890e5c commit 9545ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/CodeIgniter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ protected function tryToRouteIt(?RouteCollectionInterface $routes = null)
811811
*/
812812
protected function determinePath()
813813
{
814-
return method_exists($this->request, 'getPath') ? $this->request->getPath() : $this->request->getUri()->getPath();
814+
return $this->request->getPath();
815815
}
816816

817817
/**

0 commit comments

Comments
 (0)