| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 54 | 2 | private function normalizeError(JsonRpcExceptionInterface $error)  | 
            |
| 55 |     { | 
            ||
| 56 | $normalizedError = [  | 
            ||
| 57 | 2 | self::SUB_KEY_ERROR_CODE => $error->getErrorCode(),  | 
            |
| 58 | 2 | self::SUB_KEY_ERROR_MESSAGE => $error->getErrorMessage()  | 
            |
| 59 | ];  | 
            ||
| 60 | |||
| 61 | 2 |         if ($error->getErrorData()) { | 
            |
| 62 | 1 | $normalizedError[self::SUB_KEY_ERROR_DATA] = $error->getErrorData();  | 
            |
| 63 | }  | 
            ||
| 64 | |||
| 65 | 2 | return $normalizedError;  | 
            |
| 66 | }  | 
            ||
| 68 |