Commit c3d55cff by pana1990 Committed by Carsten Brandt

fix code style php5.4 syntax

close 5458
parent 0d98452c
<?php <?php
use yii\helpers\Html; use yii\helpers\Html;
?><!doctype html> ?><!doctype html>
<html> <html>
<head> <head>
...@@ -27,21 +29,21 @@ use yii\helpers\Html; ...@@ -27,21 +29,21 @@ use yii\helpers\Html;
</style> </style>
</head> </head>
<body> <body>
<h1><?php echo Html::encode($title)?></h1> <h1><?= Html::encode($title) ?></h1>
<ul> <ul>
<li><strong>Source:</strong> <?php echo Html::encode($sourcePath)?></li> <li><strong>Source:</strong> <?= Html::encode($sourcePath) ?></li>
<li><strong>Translation:</strong> <?php echo Html::encode($translationPath)?></li> <li><strong>Translation:</strong> <?= Html::encode($translationPath) ?></li>
</ul> </ul>
<?php foreach($results as $name => $result):?> <?php foreach($results as $name => $result): ?>
<h2 class="<?php echo empty($result['errors']) ? 'ok' : 'errors'?>"><?php echo $name?></h2> <h2 class="<?= empty($result['errors']) ? 'ok' : 'errors' ?>"><?= $name ?></h2>
<?php foreach($result['errors'] as $error):?> <?php foreach($result['errors'] as $error): ?>
<p><?php echo Html::encode($error)?></p> <p><?= Html::encode($error) ?></p>
<?php endforeach ?> <?php endforeach ?>
<?php if(!empty($result['diff'])):?> <?php if (!empty($result['diff'])): ?>
<code class="diff"><pre><?php echo $this->context->highlightDiff($result['diff'])?></pre></code> <code class="diff"><pre><?= $this->context->highlightDiff($result['diff']) ?></pre></code>
<?php endif?> <?php endif ?>
<?php endforeach ?> <?php endforeach ?>
</body> </body>
</html> </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