【发布时间】:2015-12-04 01:14:25
【问题描述】:
我使用了 drupal coder 模块来检查我的代码,并且总是将缺少文件 doc 作为错误。 我使用了以下文件文档注释,但仍然显示错误。你能指导我我做错了什么吗? 编辑:
<?php
/**
* @file
* Description
*/
/**
* Implements hook_menu().
*
* Description
*
* @return array An array of menu items
*/
function hook_menu() {
//My code
}
【问题讨论】:
-
您是否尝试将 php 版本添加到您的文件中,它看起来像 /* PHP 5 */
-
你能给我举个例子吗?我检查了 drupal 标准模块api.drupal.org/api/drupal/modules!comment!comment.module/… 并且还有一个缺少文件注释的问题。可能是codesniffer的问题?
-
我只是读了一篇博客blog.rajatpandit.com/2009/10/01/…
-
添加了 PHP 版本 5 但仍然存在问题
标签: drupal codesniffer