1
0
Fork 0

Merge pull request #3819 from fonsecas72/fix_doc

Add/Fix DocBlock
pull/3822/head
Jordi Boggiano 2015-03-05 22:21:10 +00:00
commit b8ac790b4f
1 changed files with 10 additions and 4 deletions

View File

@ -215,6 +215,12 @@ class JsonFile
return $result;
}
/**
* Throws an exception according to a given code with a customized message
*
* @param int $code return code of json_last_error function
* @throws \RuntimeException
*/
private static function throwEncodeError($code)
{
switch ($code) {