mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
coding standards elseif
This commit is contained in:
parent
2ba9f3b8fb
commit
b880714231
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue