公司PHP开发规范

1. setter方法在getter方法之前

2. 要写type hint

3. html中命名class名为-,不要用_

4. script中去掉type="text/javascript"

5. php中的entity,方法顺序是construct, setter, getter, prepersist等等

6. 执行php-cs-fixer

7. 写代码要有步骤,使代码更清新

 

posted @ 2015-12-15 09:42  峰峰仔  阅读(180)  评论(0)    收藏  举报