Skip to content

Commit 13b8ad0

Browse files
author
Mark S
committed
Fix CS
1 parent bb638a6 commit 13b8ad0

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

src/Error/Middleware/ErrorHandlerMiddleware.php

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
namespace Tools\Error\Middleware;
44

55
use Cake\Core\Configure;
6-
use Cake\Log\Log;
7-
use Exception;
86
use Cake\Error\Middleware\ErrorHandlerMiddleware as CoreErrorHandlerMiddleware;
7+
use Cake\Log\Log;
98

109
/**
1110
* Error handling middleware.
@@ -29,17 +28,15 @@
2928
* In case you need custom 404 mappings for some additional custom exceptions, make use of `log404` option.
3029
* It will overwrite the current defaults completely.
3130
*/
32-
class ErrorHandlerMiddleware extends CoreErrorHandlerMiddleware
33-
{
31+
class ErrorHandlerMiddleware extends CoreErrorHandlerMiddleware {
3432

3533
/**
3634
* @param string|callable|null $renderer The renderer or class name
3735
* to use or a callable factory.
3836
* @param array $config Configuration options to use. If empty, `Configure::read('Error')`
3937
* will be used.
4038
*/
41-
public function __construct($renderer = null, array $config = [])
42-
{
39+
public function __construct($renderer = null, array $config = []) {
4340
// Only needed until CakePHP 3.4+ for BC reasons.
4441
if ($renderer === null) {
4542
$renderer = Configure::read('Error.exceptionRenderer');
@@ -48,14 +45,14 @@ public function __construct($renderer = null, array $config = [])
4845
parent::__construct($renderer, $config);
4946
}
5047

51-
/**
52-
* Log an error for the exception if applicable.
53-
*
54-
* @param \Psr\Http\Message\ServerRequestInterface $request The current request.
55-
* @param \Exception $exception The exception to log a message for.
56-
* @return void
57-
*/
58-
protected function logException($request, $exception) {
48+
/**
49+
* Log an error for the exception if applicable.
50+
*
51+
* @param \Psr\Http\Message\ServerRequestInterface $request The current request.
52+
* @param \Exception $exception The exception to log a message for.
53+
* @return void
54+
*/
55+
protected function logException($request, $exception) {
5956
$blacklist = [
6057
'Cake\Routing\Exception\MissingControllerException',
6158
'Cake\Routing\Exception\MissingActionException',
@@ -80,7 +77,7 @@ protected function logException($request, $exception) {
8077
return;
8178
}
8279

83-
parent::logException($request, $exception);
84-
}
80+
parent::logException($request, $exception);
81+
}
8582

8683
}

0 commit comments

Comments
 (0)