mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-29 13:57:50 +08:00
code style. FOREACH
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
$see = [];
|
||||
foreach($object->tags as $tag) {
|
||||
foreach ($object->tags as $tag) {
|
||||
/** @var $tag phpDocumentor\Reflection\DocBlock\Tag\SeeTag */
|
||||
if (get_class($tag) == 'phpDocumentor\Reflection\DocBlock\Tag\SeeTag') {
|
||||
$ref = $tag->getReference();
|
||||
@@ -24,7 +24,7 @@ if (empty($see)) {
|
||||
<div class="SeeAlso">
|
||||
<h4>See Also</h4>
|
||||
<ul>
|
||||
<?php foreach($see as $ref): ?>
|
||||
<?php foreach ($see as $ref): ?>
|
||||
<li><?= \yii\apidoc\helpers\ApiMarkdown::process($ref, $object->definedBy, true) ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user