summaryrefslogtreecommitdiff
path: root/vendor/filp/whoops/src/Whoops
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/filp/whoops/src/Whoops')
-rw-r--r--vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php1
-rw-r--r--vendor/filp/whoops/src/Whoops/Handler/XmlResponseHandler.php4
-rw-r--r--vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css33
-rw-r--r--vendor/filp/whoops/src/Whoops/Resources/views/frame_list.html.php2
-rw-r--r--vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php1
-rw-r--r--vendor/filp/whoops/src/Whoops/Resources/views/panel_left.html.php7
6 files changed, 42 insertions, 6 deletions
diff --git a/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php b/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php
index 1a0fcc8328..08197b4d35 100644
--- a/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php
+++ b/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php
@@ -96,6 +96,7 @@ class PrettyPageHandler extends Handler
"phpstorm" => "phpstorm://open?file=%file&line=%line",
"idea" => "idea://open?file=%file&line=%line",
"vscode" => "vscode://file/%file:%line",
+ "atom" => "atom://core/open/file?filename=%file&line=%line",
];
/**
diff --git a/vendor/filp/whoops/src/Whoops/Handler/XmlResponseHandler.php b/vendor/filp/whoops/src/Whoops/Handler/XmlResponseHandler.php
index b6f93c5761..0d0a577e5d 100644
--- a/vendor/filp/whoops/src/Whoops/Handler/XmlResponseHandler.php
+++ b/vendor/filp/whoops/src/Whoops/Handler/XmlResponseHandler.php
@@ -67,7 +67,7 @@ class XmlResponseHandler extends Handler
*/
private static function addDataToNode(\SimpleXMLElement $node, $data)
{
- assert('is_array($data) || $node instanceof Traversable');
+ assert(is_array($data) || $data instanceof Traversable);
foreach ($data as $key => $value) {
if (is_numeric($key)) {
@@ -98,7 +98,7 @@ class XmlResponseHandler extends Handler
*/
private static function toXml($data)
{
- assert('is_array($data) || $node instanceof Traversable');
+ assert(is_array($data) || $data instanceof Traversable);
$node = simplexml_load_string("<?xml version='1.0' encoding='utf-8'?><root />");
diff --git a/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css b/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css
index 0289f122c4..8c08bbc9a7 100644
--- a/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css
+++ b/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css
@@ -459,6 +459,39 @@ kbd {
}
}
+/* Stack panels */
+@media (max-width: 600px) {
+ .panel {
+ position: static;
+ width: 100%;
+ }
+}
+
+/* Stack details tables */
+@media (max-width: 400px) {
+ .data-table,
+ .data-table tbody,
+ .data-table tbody tr,
+ .data-table tbody td {
+ display: block;
+ width: 100%;
+ }
+
+ .data-table tbody tr:first-child {
+ padding-top: 0;
+ }
+
+ .data-table tbody td:first-child,
+ .data-table tbody td:last-child {
+ padding-left: 0;
+ padding-right: 0;
+ }
+
+ .data-table tbody td:last-child {
+ padding-top: 3px;
+ }
+}
+
.tooltipped {
position: relative
}
diff --git a/vendor/filp/whoops/src/Whoops/Resources/views/frame_list.html.php b/vendor/filp/whoops/src/Whoops/Resources/views/frame_list.html.php
index 7e8fa3d4e1..a4bc338c2b 100644
--- a/vendor/filp/whoops/src/Whoops/Resources/views/frame_list.html.php
+++ b/vendor/filp/whoops/src/Whoops/Resources/views/frame_list.html.php
@@ -14,4 +14,4 @@
--><span class="frame-line"><?php echo (int) $frame->getLine() ?></span>
</div>
</div>
-<?php endforeach; ?>
+<?php endforeach;
diff --git a/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php b/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php
index 76911d0dff..6b676cc6dd 100644
--- a/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php
+++ b/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php
@@ -8,6 +8,7 @@
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex,nofollow"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<title><?php echo $tpl->escape($page_title) ?></title>
<style><?php echo $stylesheet ?></style>
diff --git a/vendor/filp/whoops/src/Whoops/Resources/views/panel_left.html.php b/vendor/filp/whoops/src/Whoops/Resources/views/panel_left.html.php
index 3d96546a3f..7e652e4698 100644
--- a/vendor/filp/whoops/src/Whoops/Resources/views/panel_left.html.php
+++ b/vendor/filp/whoops/src/Whoops/Resources/views/panel_left.html.php
@@ -1,3 +1,4 @@
-<?php $tpl->render($header_outer) ?>
-<?php $tpl->render($frames_description) ?>
-<?php $tpl->render($frames_container) ?> \ No newline at end of file
+<?php
+$tpl->render($header_outer);
+$tpl->render($frames_description);
+$tpl->render($frames_container);