それが助けになるかどうかはわかりませんが、Codesniffer が関数/メソッドを指摘できれば、まともな PHP IDE (私は PHPEd を提供しています) を使用して、各関数の PHPDoc コメントを簡単に検査およびスキャフォールディングできます。
/**
各関数の上に入力して ENTER を押すだけで、PHPEd は@param1
、@param1
、@return
などを正しく入力してコードを自動補完し、追加の説明の準備が整います。例を提供するために最初に試したのは次のとおりです。
/**
* put your comment here...
*
* @param mixed $url
* @param mixed $method
* @param mixed $timeout
* @param mixed $vars
* @param mixed $allow_redirects
* @return mixed
*/
public static function curl_get_file_contents($url, $method = 'get', $timeout = 30, $vars = array(), $allow_redirects = true)
これは次のように簡単に調整できます。
/**
* Retrieves a file using the cURL extension
*
* @param string $url
* @param string $method
* @param int $timeout
* @param array $vars parameters to pass to cURL
* @param int $allow_redirects boolean choice to follow any redirects $url serves up
* @return mixed
*/
public static function curl_get_file_contents($url, $method = 'get', $timeout = 30, $vars = array(), $allow_redirects = true)
正確には自動化されたソリューションではありませんが、怠惰な開発者としての私にとっては十分に迅速です:)