From 4957418a4bad3d2cba1b157c1dbe2959f9d39034 Mon Sep 17 00:00:00 2001 From: Mathew Foscarini Date: Tue, 5 Aug 2014 08:39:19 -0400 Subject: [PATCH] Added missing return statement. PhpStorm is flagging this function as missing a return statement. Using a return statement (instead of the default) makes the intent of the source code clearer. --- lib/Cake/Network/CakeResponse.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index ce36a0f3b..a1796ee80 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -597,6 +597,7 @@ class CakeResponse { return isset($headers['Location']) ? $headers['Location'] : null; } $this->header('Location', $url); + return null; } /**