mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-30 06:29:02 +08:00
code style. FOREACH
This commit is contained in:
@@ -23,7 +23,7 @@ use yii\helpers\Html;
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($values as $name => $value): ?>
|
||||
<?php foreach ($values as $name => $value): ?>
|
||||
<tr>
|
||||
<th style="width: 200px;"><?= Html::encode($name) ?></th>
|
||||
<td style="overflow:auto"><?= Html::encode($value) ?></td>
|
||||
|
||||
@@ -23,7 +23,7 @@ use yii\helpers\VarDumper;
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($values as $name => $value): ?>
|
||||
<?php foreach ($values as $name => $value): ?>
|
||||
<tr>
|
||||
<th style="width: 200px;"><?= Html::encode($name) ?></th>
|
||||
<td><?= htmlspecialchars(VarDumper::dumpAsString($value), ENT_QUOTES|ENT_SUBSTITUTE, \Yii::$app->charset, true) ?></td>
|
||||
|
||||
Reference in New Issue
Block a user