Micro-PHP /
http-exception-dev
| 1 | <table class="logs" data-filter-level="Emergency,Alert,Critical,Error,Warning,Notice,Info,Debug" data-filters> |
||
| 2 | <?php $channelIsDefined = isset($logs[0]['channel']); ?> |
||
| 3 | <thead> |
||
| 4 | <tr> |
||
| 5 | <th data-filter="level">Level</th> |
||
| 6 | <?php if ($channelIsDefined) { ?><th data-filter="channel">Channel</th><?php } ?> |
||
| 7 | <th class="full-width">Message</th> |
||
| 8 | </tr> |
||
| 9 | </thead> |
||
| 10 | |||
| 11 | <tbody> |
||
| 12 | <?php |
||
| 13 | foreach ($logs as $log) { |
||
| 14 | if ($log['priority'] >= 400) { |
||
| 15 | $status = 'error'; |
||
| 16 | } elseif ($log['priority'] >= 300) { |
||
| 17 | $status = 'warning'; |
||
| 18 | } else { |
||
| 19 | $severity = 0; |
||
| 20 | if (($exception = $log['context']['exception'] ?? null) instanceof \ErrorException || $exception instanceof \Symfony\Component\ErrorHandler\Exception\SilencedErrorContext) { |
||
|
0 ignored issues
–
show
|
|||
| 21 | $severity = $exception->getSeverity(); |
||
| 22 | } |
||
| 23 | $status = \E_DEPRECATED === $severity || \E_USER_DEPRECATED === $severity ? 'warning' : 'normal'; |
||
| 24 | } ?> |
||
| 25 | <tr class="status-<?= $status; ?>" data-filter-level="<?= strtolower($this->escape($log['priorityName'])); ?>"<?php if ($channelIsDefined) { ?> data-filter-channel="<?= $this->escape($log['channel']); ?>"<?php } ?>> |
||
| 26 | <td class="text-small nowrap"> |
||
| 27 | <span class="colored text-bold"><?= $this->escape($log['priorityName']); ?></span> |
||
| 28 | <span class="text-muted newline"><?= date('H:i:s', $log['timestamp']); ?></span> |
||
| 29 | </td> |
||
| 30 | <?php if ($channelIsDefined) { ?> |
||
| 31 | <td class="text-small text-bold nowrap"> |
||
| 32 | <?= $this->escape($log['channel']); ?> |
||
| 33 | </td> |
||
| 34 | <?php } ?> |
||
| 35 | <td> |
||
| 36 | <?= $this->formatLogMessage($log['message'], $log['context']); ?> |
||
| 37 | <?php if ($log['context']) { ?> |
||
| 38 | <pre class="text-muted prewrap m-t-5"><?= $this->escape(json_encode($log['context'], \JSON_PRETTY_PRINT | \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES)); ?></pre> |
||
| 39 | <?php } ?> |
||
| 40 | </td> |
||
| 41 | </tr> |
||
| 42 | <?php |
||
| 43 | } ?> |
||
| 44 | </tbody> |
||
| 45 | </table> |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths