| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 82 | 6 | protected function buildLogMessage(Exception $exception): string |
|
| 83 | { |
||
| 84 | 6 | $message = $exception->getMessage() . "({$exception->getCode()})"; |
|
| 85 | |||
| 86 | 6 | if ($exception instanceof PhprestException && $exception->getDetails()) { |
|
| 87 | 1 | $message .= ' Details :: ' . json_encode($exception->getDetails()); |
|
| 88 | } |
||
| 89 | |||
| 90 | 6 | $message .= ' Stack trace :: ' . $exception->getTraceAsString(); |
|
| 91 | |||
| 92 | 6 | return $message; |
|
| 93 | } |
||
| 95 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.