PSR规范调整

This commit is contained in:
thinkphp
2015-10-04 13:05:15 +08:00
parent 1cfb3704c6
commit 27e724bb3c
135 changed files with 9426 additions and 11556 deletions

View File

@@ -11,12 +11,15 @@
namespace think\transform\driver;
class Json{
public function encode($data){
return json_encode($data, JSON_UNESCAPED_UNICODE);
}
class Json
{
public function encode($data)
{
return json_encode($data, JSON_UNESCAPED_UNICODE);
}
public function decode($data, $assoc = true){
return json_decode($data, $assoc);
}
public function decode($data, $assoc = true)
{
return json_decode($data, $assoc);
}
}