From b880714231fdb1c9b23770f66cb6c267fee67f69 Mon Sep 17 00:00:00 2001 From: Rob McVey Date: Fri, 13 Mar 2015 16:27:24 +0000 Subject: [PATCH] coding standards elseif --- lib/Cake/View/JsonView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/View/JsonView.php b/lib/Cake/View/JsonView.php index eb8eb9114..edfa926da 100644 --- a/lib/Cake/View/JsonView.php +++ b/lib/Cake/View/JsonView.php @@ -161,7 +161,7 @@ class JsonView extends View { $error = __('JSON encoding failed: Error code %s', json_last_error()); } throw new CakeException($error); - } else if ($json === false) { + } elseif ($json === false) { throw new CakeException(__('Failed to parse JSON')); } return $json;