From fbdf2ef46148d37dbcfb30da14554ec087ba2605 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 4 Sep 2014 20:20:15 +0400 Subject: [PATCH] Renamed HelpParser::getFull() to HelpParser::getDetail() --- framework/console/Action.php | 2 +- framework/console/Controller.php | 4 ++-- framework/console/HelpParser.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/console/Action.php b/framework/console/Action.php index 07427a6..7349841 100644 --- a/framework/console/Action.php +++ b/framework/console/Action.php @@ -43,6 +43,6 @@ class Action extends \yii\base\Action */ public function getHelp() { - return HelpParser::getFull(new \ReflectionClass($this)); + return HelpParser::getDetail(new \ReflectionClass($this)); } } diff --git a/framework/console/Controller.php b/framework/console/Controller.php index e251830..5e0aaaa 100644 --- a/framework/console/Controller.php +++ b/framework/console/Controller.php @@ -318,7 +318,7 @@ class Controller extends \yii\base\Controller */ 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 $class = new \ReflectionClass($action); } - return HelpParser::getFull($class); + return HelpParser::getDetail($class); } } diff --git a/framework/console/HelpParser.php b/framework/console/HelpParser.php index 9498009..beb86f0 100644 --- a/framework/console/HelpParser.php +++ b/framework/console/HelpParser.php @@ -38,7 +38,7 @@ class HelpParser * @param \Reflector $reflector * @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", ''); if (preg_match('/^\s*@\w+/m', $comment, $matches, PREG_OFFSET_CAPTURE)) {