coding standards elseif

This commit is contained in:
Rob McVey 2015-03-13 16:27:24 +00:00
parent 2ba9f3b8fb
commit b880714231

View file

@ -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;