1
0
Fork 0

Add license info for code snippet we reused

pull/586/merge
Jordi Boggiano 2012-05-13 13:16:38 +02:00
parent 6c9c1f17ef
commit f516c1de48
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ class JsonFile
* This code is based on the function found at: * This code is based on the function found at:
* http://recursive-design.com/blog/2008/03/11/format-json-with-php/ * http://recursive-design.com/blog/2008/03/11/format-json-with-php/
* *
* Originally licensed under MIT by Dave Perrett <mail@recursive-design.com>
*
* @param mixed $data Data to encode into a formatted JSON string * @param mixed $data Data to encode into a formatted JSON string
* @param int $options json_encode options (defaults to JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) * @param int $options json_encode options (defaults to JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)
* @return string Encoded json * @return string Encoded json