コード例 #1
0
ファイル: fast.php プロジェクト: vvval/spiral
    echo join(', ', $arguments);
    ?>
</span>)<br/>
                        <em>
                            In&nbsp;<?php 
    echo $trace['file'];
    ?>
&nbsp;at&nbsp;<strong>line <?php 
    echo $trace['line'];
    ?>
</strong>
                        </em>
                    </div>
                    <div class="lines">
                        <?php 
    echo \Spiral\Support\ExceptionSupport::highlightSource($trace['file'], $trace['line'], 10, new \Spiral\Tokenizer\Highlighter\InversedStyle());
    ?>
                    </div>
                </div>
                <?php 
}
?>
        </div>
        <div class="chain">
            <div class="calls">
                <?php 
foreach (array_reverse($stacktrace) as $index => $trace) {
    if (empty($trace['file']) && isset($stacktrace[$index - 1]['file'])) {
        $trace['file'] = $stacktrace[$index - 1]['file'];
        $trace['line'] = $stacktrace[$index - 1]['line'];
    }
コード例 #2
0
ファイル: QuickSnapshot.php プロジェクト: vvval/spiral
 /**
  * {@inheritdoc}
  */
 public function getMessage()
 {
     return ExceptionSupport::createMessage($this->exception);
 }
コード例 #3
0
ファイル: slow.php プロジェクト: vvval/spiral
    echo join(', ', $arguments);
    ?>
</span>)<br/>
                        <em>
                            In&nbsp;<?php 
    echo $trace['file'];
    ?>
&nbsp;at&nbsp;<strong>line <?php 
    echo $trace['line'];
    ?>
</strong>
                        </em>
                    </div>
                    <div class="lines">
                        <?php 
    echo \Spiral\Support\ExceptionSupport::highlightSource($trace['file'], $trace['line']);
    ?>
                    </div>
                </div>
                <?php 
}
?>
        </div>
        <div class="chain">
            <div class="calls">
                <?php 
foreach (array_reverse($stacktrace) as $index => $trace) {
    if (empty($trace['file']) && isset($stacktrace[$index - 1]['file'])) {
        $trace['file'] = $stacktrace[$index - 1]['file'];
        $trace['line'] = $stacktrace[$index - 1]['line'];
    }