脚本宝典收集整理的这篇文章主要介绍了PHP代码嗅探器没有提取文件,类和功能文档注释,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
但是,我无法弄清楚为什么我仍然得到一个ERROR,说该类缺少文件,类和函数doc注释.
---------------------------------------------------------------------- FOUND 7 ERRORS AFFECTING 7 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment 28 | ERROR | Missing class doc comment 45 | ERROR | Missing function doc comment 59 | ERROR | Missing function doc comment 73 | ERROR | Missing function doc comment 88 | ERROR | Missing function doc comment 102 | ERROR | Missing function doc comment ----------------------------------------------------------------------
这是PHP类:
<?PHP /** * EndpointHelPEr File Doc Comment * * @category EndpointHelper * @package Helper * @author brian SmITh <brian.smith@company.COM> * @copyright Copyright 2015 Company,Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE * @link http://arctg.com */ /** * EndpointHelper Class Doc Comment * * Endpoint Helper to retrieve application wide * URLs based on active webinstance. * * @category Class * @package EndpointHelper * @author Brian Smith <brian.smith@company.com> * @copyright Copyright 2015 Company,Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE * @link http://company.com * * @since 1.0.1 */ class EndpointHelper { /** * component params object * * @VAR type * @since 1.0.1 */ PRivate static $params = false; /** * Retrieve Reservation URL based on web instance * * @return String * * @since 1.0.1 */ public static function getReservationUrl() { $instance = self::getInstanceType(); return self::$params->get($instance . '_reservation_api_url'); } /** * Retrieve Rental URL based on web instance * * @return String * * @since 1.0.1 */ public static function getRentalUrl() { $instance = self::getInstanceType(); return self::$params->get($instance . '_rental_api_url'); } /** * Retrieve cache URL based on web instance * * @return String * * @since 1.0.1 */ public static function getCacheUrl() { $instance = self::getInstanceType(); return self::$params->get($instance . '_data_cache_api_url'); } /** * Retrieve Systems Staging File Sync URL based on web * instance. * * @return String * * @since 1.0.1 */ public static function getFileSyncUrl() { $instance = self::getInstanceType(); return self::$params->get($instance . '_file_sync'); } /** * Private utilty class to retrieve current web instance * * @return String * * @since 1.0.1 */ private static function getInstanceType() { if (!self::$params) { self::$params = JComponentHelper::getParams('com_custom'); } return self::$params->get('web_instance'); } }
谢谢你的帮助!!
以上是脚本宝典为你收集整理的PHP代码嗅探器没有提取文件,类和功能文档注释全部内容,希望文章能够帮你解决PHP代码嗅探器没有提取文件,类和功能文档注释所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。