Skip to content

Commit 0c0ac99

Browse files
edenleungStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 8d0382e commit 0c0ac99

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/Hander/Whoops.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function render($request, Throwable $e): Response
3434
$this->runner->pushHandler(new PrettyPageHandler());
3535

3636
// 兼容 Cors Postman 请求
37-
if ($request->isAjax() ||
37+
if ($request->isAjax() ||
3838
false !== strpos($_SERVER['HTTP_USER_AGENT'], 'Postman') ||
3939
(isset($_SERVER['HTTP_SEC_FETCH_MODE']) && $_SERVER['HTTP_SEC_FETCH_MODE'] === 'cors')) {
4040
$this->runner->pushHandler(new JsonResponseHandler());

src/Runner.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function handleException($exception)
3434

3535
foreach ($handlers as $handler) {
3636
if ($handler instanceof PrettyPageHandler) {
37-
3837
$handler->addDataTable('ThinkPHP Application', [
3938
'Version' => App::VERSION,
4039
'URI' => Request::url(true),

0 commit comments

Comments
 (0)