Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php if (! $is_ajax): ?> <div class="page-header"> <h2><?= t('Estimated vs ac..

Decoded Output download

<?php if (! $is_ajax): ?>
    <div class="page-header">
        <h2><?= t('Estimated vs actual time per column') ?></h2>
    </div>
<?php endif ?>

<?php if (empty($metrics)): ?>
    <p class="alert"><?= t('Not enough data to show the graph.') ?></p>
<?php else: ?>
    <?= $this->app->component('chart-project-estimated-actual-column', array(
        'metrics' => $metrics,
        'labelSpent' => t('Hours Spent'),
        'labelEstimated' => t('Hours Estimated'),
    )) ?>

    <table class="table-striped">
        <tr>
            <th><?= t('Column') ?></th>
            <th><?= t('Hours Spent') ?></th>
            <th><?= t('Hours Estimated') ?></th>
        </tr>
        <?php foreach ($metrics as $column): ?>
            <tr>
                <td><?= $this->text->e($column['title']) ?></td>
                <td><?= $this->dt->durationHours($column['hours_spent']) ?></td>
                <td><?= $this->dt->durationHours($column['hours_estimated']) ?></td>
            </tr>
        <?php endforeach ?>
    </table>
<?php endif ?>

Did this file decode correctly?

Original Code

<?php if (! $is_ajax): ?>
    <div class="page-header">
        <h2><?= t('Estimated vs actual time per column') ?></h2>
    </div>
<?php endif ?>

<?php if (empty($metrics)): ?>
    <p class="alert"><?= t('Not enough data to show the graph.') ?></p>
<?php else: ?>
    <?= $this->app->component('chart-project-estimated-actual-column', array(
        'metrics' => $metrics,
        'labelSpent' => t('Hours Spent'),
        'labelEstimated' => t('Hours Estimated'),
    )) ?>

    <table class="table-striped">
        <tr>
            <th><?= t('Column') ?></th>
            <th><?= t('Hours Spent') ?></th>
            <th><?= t('Hours Estimated') ?></th>
        </tr>
        <?php foreach ($metrics as $column): ?>
            <tr>
                <td><?= $this->text->e($column['title']) ?></td>
                <td><?= $this->dt->durationHours($column['hours_spent']) ?></td>
                <td><?= $this->dt->durationHours($column['hours_estimated']) ?></td>
            </tr>
        <?php endforeach ?>
    </table>
<?php endif ?>

Function Calls

t 1

Variables

None

Stats

MD5 5f055151ed7f2fa32b6f289d3cb1984a
Eval Count 0
Decode Time 89 ms