Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21efe5b

Browse files
committed
CS
1 parent 385cb45 commit 21efe5b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Illuminate/Foundation/Exceptions/Handler.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ public function __construct(LoggerInterface $log)
4141
*/
4242
public function report(Exception $e)
4343
{
44-
if ($this->shouldntReport($e))
45-
return;
44+
if ($this->shouldntReport($e)) return;
4645

4746
$this->log->error((string) $e);
4847
}
@@ -57,8 +56,7 @@ protected function shouldntReport(Exception $e)
5756
{
5857
foreach ($this->dontReport as $type)
5958
{
60-
if ($e instanceof $type)
61-
return true;
59+
if ($e instanceof $type) return true;
6260
}
6361
}
6462

@@ -101,9 +99,11 @@ public function renderForConsole($output, Exception $e)
10199
*/
102100
protected function renderHttpException(HttpException $e)
103101
{
104-
if (view()->exists('errors.'.$e->getStatusCode()))
102+
$status = $e->getStatusCode();
103+
104+
if (view()->exists("errors.{$status}"))
105105
{
106-
return response()->view('errors.'.$e->getStatusCode(), [], $e->getStatusCode());
106+
return response()->view("errors.{$status}", [], $status);
107107
}
108108
else
109109
{

0 commit comments

Comments
 (0)