mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
fix code style php5.4 syntax
close 5458
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
?><!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
@ -27,21 +29,21 @@ use yii\helpers\Html;
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1><?php echo Html::encode($title)?></h1>
|
||||
<h1><?= Html::encode($title) ?></h1>
|
||||
|
||||
<ul>
|
||||
<li><strong>Source:</strong> <?php echo Html::encode($sourcePath)?></li>
|
||||
<li><strong>Translation:</strong> <?php echo Html::encode($translationPath)?></li>
|
||||
<li><strong>Source:</strong> <?= Html::encode($sourcePath) ?></li>
|
||||
<li><strong>Translation:</strong> <?= Html::encode($translationPath) ?></li>
|
||||
</ul>
|
||||
|
||||
<?php foreach($results as $name => $result):?>
|
||||
<h2 class="<?php echo empty($result['errors']) ? 'ok' : 'errors'?>"><?php echo $name?></h2>
|
||||
<?php foreach($result['errors'] as $error):?>
|
||||
<p><?php echo Html::encode($error)?></p>
|
||||
<?php foreach($results as $name => $result): ?>
|
||||
<h2 class="<?= empty($result['errors']) ? 'ok' : 'errors' ?>"><?= $name ?></h2>
|
||||
<?php foreach($result['errors'] as $error): ?>
|
||||
<p><?= Html::encode($error) ?></p>
|
||||
<?php endforeach ?>
|
||||
<?php if(!empty($result['diff'])):?>
|
||||
<code class="diff"><pre><?php echo $this->context->highlightDiff($result['diff'])?></pre></code>
|
||||
<?php endif?>
|
||||
<?php if (!empty($result['diff'])): ?>
|
||||
<code class="diff"><pre><?= $this->context->highlightDiff($result['diff']) ?></pre></code>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user