@@ -53,8 +53,8 @@ |
||
53 | 53 | protected function transformByStatusCodeAndName(\Exception $exception, $errorStatusCode, $errorStatusName) |
54 | 54 | { |
55 | 55 | foreach ($this->supportedApiExceptions as $apiExceptionClass) { |
56 | - $statusCode = constant($apiExceptionClass.'::STATUS_CODE'); |
|
57 | - $statusName = constant($apiExceptionClass.'::STATUS_NAME'); |
|
56 | + $statusCode = constant($apiExceptionClass . '::STATUS_CODE'); |
|
57 | + $statusName = constant($apiExceptionClass . '::STATUS_NAME'); |
|
58 | 58 | if ($errorStatusCode === $statusCode && $errorStatusName === $statusName) { |
59 | 59 | return new $apiExceptionClass($exception); |
60 | 60 | } |