Commit c3d55cff by pana1990 Committed by Carsten Brandt

fix code style php5.4 syntax

close 5458
parent 0d98452c
<?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>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment