mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-01 15:07:49 +08:00
many phpcs fixes
This commit is contained in:
@@ -45,17 +45,17 @@ class FunctionDoc extends BaseDoc
|
||||
|
||||
$this->isReturnByReference = $reflector->isByRef();
|
||||
|
||||
foreach($reflector->getArguments() as $arg) {
|
||||
foreach ($reflector->getArguments() as $arg) {
|
||||
$arg = new ParamDoc($arg, $context, ['sourceFile' => $this->sourceFile]);
|
||||
$this->params[$arg->name] = $arg;
|
||||
}
|
||||
|
||||
foreach($this->tags as $i => $tag) {
|
||||
foreach ($this->tags as $i => $tag) {
|
||||
if ($tag instanceof ThrowsTag) {
|
||||
$this->exceptions[$tag->getType()] = $tag->getDescription();
|
||||
unset($this->tags[$i]);
|
||||
} elseif ($tag instanceof PropertyTag) {
|
||||
// ignore property tag
|
||||
// ignore property tag
|
||||
} elseif ($tag instanceof ParamTag) {
|
||||
$paramName = $tag->getVariableName();
|
||||
if (!isset($this->params[$paramName]) && $context !== null) {
|
||||
|
||||
Reference in New Issue
Block a user