Improve code style

This commit is contained in:
Val Bancer 2018-11-18 16:24:25 +01:00
parent 509accc421
commit 92e9277d20

View file

@ -246,6 +246,7 @@ class CakeRequest implements ArrayAccess {
* @return string URI The CakePHP request path that is being accessed.
*/
protected function _url() {
$uri = '';
if (!empty($_SERVER['PATH_INFO'])) {
return $_SERVER['PATH_INFO'];
} elseif (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], '://') === false) {