File tree Expand file tree Collapse file tree
src/Illuminate/Foundation/Exceptions Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments