We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edcc58c commit 404f689Copy full SHA for 404f689
src/views/package/details.php
@@ -55,11 +55,9 @@
55
<b>Last updated:</b> <?= Yii::$app->formatter->asDateTime($package->getUpdateTime()) ?> (<?= Yii::$app->formatter->asRelativeTime($package->getUpdateTime()) ?>)
56
<br>
57
<b>Legend:</b>
58
- <?php
59
- foreach ($stability_colors as $stability => $color) {
60
- echo Html::tag('span', $stability, ['class' => 'label label-' . $color]) . ' ';
61
- }
62
- ?>
+ <?php foreach ($stability_colors as $stability => $color) : ?>
+ <?= Html::tag('span', $stability, ['class' => 'label label-' . $color]) . ' ' ?>
+ <?php endforeach ?>
63
<br><br>
64
65
<?php if (Yii::$app->session->hasFlash('rate-limited')) : ?>
0 commit comments