Commit fbdf2ef4 by Alexander Makarov

Renamed HelpParser::getFull() to HelpParser::getDetail()

parent d549aa39
...@@ -43,6 +43,6 @@ class Action extends \yii\base\Action ...@@ -43,6 +43,6 @@ class Action extends \yii\base\Action
*/ */
public function getHelp() public function getHelp()
{ {
return HelpParser::getFull(new \ReflectionClass($this)); return HelpParser::getDetail(new \ReflectionClass($this));
} }
} }
...@@ -318,7 +318,7 @@ class Controller extends \yii\base\Controller ...@@ -318,7 +318,7 @@ class Controller extends \yii\base\Controller
*/ */
public function getHelp() public function getHelp()
{ {
return HelpParser::getFull(new \ReflectionClass($this)); return HelpParser::getDetail(new \ReflectionClass($this));
} }
/** /**
...@@ -339,6 +339,6 @@ class Controller extends \yii\base\Controller ...@@ -339,6 +339,6 @@ class Controller extends \yii\base\Controller
$class = new \ReflectionClass($action); $class = new \ReflectionClass($action);
} }
return HelpParser::getFull($class); return HelpParser::getDetail($class);
} }
} }
...@@ -38,7 +38,7 @@ class HelpParser ...@@ -38,7 +38,7 @@ class HelpParser
* @param \Reflector $reflector * @param \Reflector $reflector
* @return string * @return string
*/ */
public static function getFull(\Reflector $reflector) public static function getDetail(\Reflector $reflector)
{ {
$comment = strtr(trim(preg_replace('/^\s*\**( |\t)?/m', '', trim($reflector->getDocComment(), '/'))), "\r", ''); $comment = strtr(trim(preg_replace('/^\s*\**( |\t)?/m', '', trim($reflector->getDocComment(), '/'))), "\r", '');
if (preg_match('/^\s*@\w+/m', $comment, $matches, PREG_OFFSET_CAPTURE)) { if (preg_match('/^\s*@\w+/m', $comment, $matches, PREG_OFFSET_CAPTURE)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment