fucongcong/framework

View on GitHub
core/Group/Events/ExceptionEvent.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 13 of 13 total issues

Opening class brace must be on a line by itself
Open

{

Line exceeds 120 characters; contains 157 characters
Open

.container {margin-top: 100px; vertical-align: middle;width: 1170px;margin-right: auto;margin-left: auto;}.content {text-align: left;display: inline-block;

Line exceeds 120 characters; contains 146 characters
Open

<h2>啊哦!出错了:</h2> </div> <br><div class=\"content\"><h3>错误文件名:</h3><p>{$error['file']}</p></div><br><div class=\"content\">

Spaces must be used to indent lines; tabs are not allowed
Open

if (!is_array($error)) return $error;

Inline control structures are not allowed
Open

if (!is_array($error)) return $error;

Spaces must be used to indent lines; tabs are not allowed
Open

return $str;

Spaces must be used to indent lines; tabs are not allowed
Open

$error['trace'] = str_replace("#", "<br/>", $error['trace']);

Spaces must be used to indent lines; tabs are not allowed
Open

$str = "<!DOCTYPE html><html><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><body><style>html, body {height: 100%;}body {margin: 0;padding: 0;width: 100%; display: table;font-weight: 100;font-family: 'Lato';}

Line exceeds 120 characters; contains 240 characters
Open

$str = "<!DOCTYPE html><html><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><body><style>html, body {height: 100%;}body {margin: 0;padding: 0;width: 100%; display: table;font-weight: 100;font-family: 'Lato';}

Line exceeds 120 characters; contains 220 characters
Open

<h3>line:{$error['line']}</h3></div><br><div class=\"content\"><h3>错误信息:</h3> <p>{$error['message']}</p></div> <br><div class=\"content\"><h3>Trace:</h3><p>{$error['trace']}</p></div><br><div class=\"content\">

Line exceeds 120 characters; contains 144 characters
Open

}.title {font-size: 16px;}h3{color:#a94442;}p {color:#3c763d;}</style><div class=\"container\"><div class=\"content\" style=\"color:#8a6d3b\">

Line exceeds 120 characters; contains 129 characters
Open

<p style=\"color:#31708f\">power by group framework @author:fucongcong;email:cc@xitongxue.com. </p></div></div></body></html>";

Whitespace found at end of line
Open

{
Category
Status