duankuang7928 2014-01-10 23:39
浏览 124
已采纳

NetBeans IDE - PHP提示问题

I just installed NetBeans IDE 7.4 on my PC, because I heard that it's nice for code writing. Then I set up a new project from existing source files and when it opened NetBeans showed hints on places where it should not. For example:

$Data = Database::Map("lang/string");
if($Data["lang"] != "") return true;
return false;

And NetBeans hints me that If-Else statements must use braces. Well, as I know braces aren't required if after the if there is only one line code to run. Another example:

public static function checkUrl(){

NetBeans says that Method length is 12(10 allowed). I don't even know what this error is about.

  • 写回答

1条回答 默认 最新

  • douxian3828 2014-01-11 17:08
    关注

    These hints are configurable, see Tools -> Options -> Editor -> Hints

    enter image description here

    You can adjust it to your needs or disable them. They are only to suggest using best practices and prevent writing bad code

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 matlab实现基于主成分变换的图像融合。
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊