Skip to content

Commit 404f689

Browse files
authored
Code style adjustment
1 parent edcc58c commit 404f689

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/views/package/details.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@
5555
<b>Last updated:</b> <?= Yii::$app->formatter->asDateTime($package->getUpdateTime()) ?> (<?= Yii::$app->formatter->asRelativeTime($package->getUpdateTime()) ?>)
5656
<br>
5757
<b>Legend:</b>
58-
<?php
59-
foreach ($stability_colors as $stability => $color) {
60-
echo Html::tag('span', $stability, ['class' => 'label label-' . $color]) . ' ';
61-
}
62-
?>
58+
<?php foreach ($stability_colors as $stability => $color) : ?>
59+
<?= Html::tag('span', $stability, ['class' => 'label label-' . $color]) . ' ' ?>
60+
<?php endforeach ?>
6361
<br><br>
6462

6563
<?php if (Yii::$app->session->hasFlash('rate-limited')) : ?>

0 commit comments

Comments
 (0)