Merge pull request #428 from ldsink/phpdoc

update PHPDoc comments
This commit is contained in:
joyqi 2016-01-26 15:08:15 +08:00
commit 30cbefc453
3 changed files with 45 additions and 45 deletions

View File

@ -78,7 +78,6 @@ class Typecho_Plugin
*
* @access public
* @param string $handle 插件
* @return void
*/
public function __construct($handle)
{
@ -92,7 +91,7 @@ class Typecho_Plugin
* @access private
* @param array $pluginHandles
* @param array $otherPluginHandles
* @return void
* @return array
*/
private static function pluginHandlesDiff(array $pluginHandles, array $otherPluginHandles)
{
@ -110,7 +109,6 @@ class Typecho_Plugin
*
* @access public
* @param array $plugins 插件列表
* @param mixed $callback 获取插件系统变量的代理函数
* @return void
*/
public static function init(array $plugins)
@ -126,6 +124,7 @@ class Typecho_Plugin
* 获取实例化插件对象
*
* @access public
* @param string $handle 插件
* @return Typecho_Plugin
*/
public static function factory($handle)
@ -336,6 +335,7 @@ class Typecho_Plugin
* @param string $pluginName 插件名
* @param string $path 插件目录
* @return array
* @throws Typecho_Plugin_Exception
*/
public static function portal($pluginName, $path)
{
@ -405,7 +405,7 @@ class Typecho_Plugin
*
* @access public
* @param string $pluginName 插件名称
* @return void
* @return mixed
*/
public function exists($pluginName) {
return array_search($pluginName, self::$_plugins['activated']);

View File

@ -190,7 +190,7 @@ class Typecho_Request
/**
* 检查ua是否合法
*
* @param $agent ua字符串
* @param string $agent ua字符串
* @return boolean
*/
private function _checkAgent($agent)

View File

@ -27,45 +27,45 @@ class Typecho_Response
*/
private static $_httpCode = array(
100 => 'Continue',
101 => 'Switching Protocols',
200 => 'OK',
201 => 'Created',
202 => 'Accepted',
203 => 'Non-Authoritative Information',
204 => 'No Content',
205 => 'Reset Content',
206 => 'Partial Content',
300 => 'Multiple Choices',
301 => 'Moved Permanently',
302 => 'Found',
303 => 'See Other',
304 => 'Not Modified',
305 => 'Use Proxy',
307 => 'Temporary Redirect',
400 => 'Bad Request',
401 => 'Unauthorized',
402 => 'Payment Required',
403 => 'Forbidden',
404 => 'Not Found',
405 => 'Method Not Allowed',
406 => 'Not Acceptable',
407 => 'Proxy Authentication Required',
408 => 'Request Timeout',
409 => 'Conflict',
410 => 'Gone',
411 => 'Length Required',
412 => 'Precondition Failed',
413 => 'Request Entity Too Large',
414 => 'Request-URI Too Long',
415 => 'Unsupported Media Type',
416 => 'Requested Range Not Satisfiable',
417 => 'Expectation Failed',
500 => 'Internal Server Error',
501 => 'Not Implemented',
502 => 'Bad Gateway',
503 => 'Service Unavailable',
504 => 'Gateway Timeout',
505 => 'HTTP Version Not Supported'
101 => 'Switching Protocols',
200 => 'OK',
201 => 'Created',
202 => 'Accepted',
203 => 'Non-Authoritative Information',
204 => 'No Content',
205 => 'Reset Content',
206 => 'Partial Content',
300 => 'Multiple Choices',
301 => 'Moved Permanently',
302 => 'Found',
303 => 'See Other',
304 => 'Not Modified',
305 => 'Use Proxy',
307 => 'Temporary Redirect',
400 => 'Bad Request',
401 => 'Unauthorized',
402 => 'Payment Required',
403 => 'Forbidden',
404 => 'Not Found',
405 => 'Method Not Allowed',
406 => 'Not Acceptable',
407 => 'Proxy Authentication Required',
408 => 'Request Timeout',
409 => 'Conflict',
410 => 'Gone',
411 => 'Length Required',
412 => 'Precondition Failed',
413 => 'Request Entity Too Large',
414 => 'Request-URI Too Long',
415 => 'Unsupported Media Type',
416 => 'Requested Range Not Satisfiable',
417 => 'Expectation Failed',
500 => 'Internal Server Error',
501 => 'Not Implemented',
502 => 'Bad Gateway',
503 => 'Service Unavailable',
504 => 'Gateway Timeout',
505 => 'HTTP Version Not Supported'
);
/**
@ -295,7 +295,7 @@ class Typecho_Response
} else if (!empty($default)) {
$this->redirect($default);
}
exit;
}
}