Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
fbdf2ef4
Commit
fbdf2ef4
authored
Sep 04, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed HelpParser::getFull() to HelpParser::getDetail()
parent
d549aa39
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Action.php
framework/console/Action.php
+1
-1
Controller.php
framework/console/Controller.php
+2
-2
HelpParser.php
framework/console/HelpParser.php
+1
-1
No files found.
framework/console/Action.php
View file @
fbdf2ef4
...
@@ -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
::
get
Ful
l
(
new
\ReflectionClass
(
$this
));
return
HelpParser
::
get
Detai
l
(
new
\ReflectionClass
(
$this
));
}
}
}
}
framework/console/Controller.php
View file @
fbdf2ef4
...
@@ -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
::
get
Ful
l
(
new
\ReflectionClass
(
$this
));
return
HelpParser
::
get
Detai
l
(
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
::
get
Ful
l
(
$class
);
return
HelpParser
::
get
Detai
l
(
$class
);
}
}
}
}
framework/console/HelpParser.php
View file @
fbdf2ef4
...
@@ -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
get
Ful
l
(
\Reflector
$reflector
)
public
static
function
get
Detai
l
(
\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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment