mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 14:57:23 +08:00
code style. FOREACH
This commit is contained in:
@@ -18,7 +18,7 @@ ArrayHelper::multisort($methods, 'name');
|
||||
?>
|
||||
<h2>Method Details</h2>
|
||||
|
||||
<?php foreach($methods as $method): ?>
|
||||
<?php foreach ($methods as $method): ?>
|
||||
|
||||
<div class="detailHeader h3" id="<?= $method->name . '()-detail' ?>">
|
||||
<?= $method->name ?>()
|
||||
@@ -36,7 +36,7 @@ ArrayHelper::multisort($methods, 'name');
|
||||
<div class="signature2"><?= $this->context->renderMethodSignature($method) ?></div>
|
||||
</td></tr>
|
||||
<?php if (!empty($method->params) || !empty($method->return) || !empty($method->exceptions)): ?>
|
||||
<?php foreach($method->params as $param): ?>
|
||||
<?php foreach ($method->params as $param): ?>
|
||||
<tr>
|
||||
<td class="paramNameCol"><?= $param->name ?></td>
|
||||
<td class="paramTypeCol"><?= $this->context->typeLink($param->types) ?></td>
|
||||
@@ -50,7 +50,7 @@ ArrayHelper::multisort($methods, 'name');
|
||||
<td class="paramDescCol"><?= ApiMarkdown::process($method->return, $type); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php foreach($method->exceptions as $exception => $description): ?>
|
||||
<?php foreach ($method->exceptions as $exception => $description): ?>
|
||||
<tr>
|
||||
<td class="paramNameCol"><?= 'throws' ?></td>
|
||||
<td class="paramTypeCol"><?= $this->context->typeLink($exception) ?></td>
|
||||
|
||||
Reference in New Issue
Block a user