@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | * |
| 225 | 225 | * @var string |
| 226 | 226 | */ |
| 227 | - public const TRY = 'TRY'; |
|
| 227 | + public const try = 'TRY'; |
|
| 228 | 228 | |
| 229 | 229 | /** |
| 230 | 230 | * Dolar |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | self::SEK, |
| 277 | 277 | self::CHF, |
| 278 | 278 | self::THB, |
| 279 | - self::TRY, |
|
| 279 | + self::try, |
|
| 280 | 280 | self::USD, |
| 281 | 281 | self::GBP, |
| 282 | 282 | ]; |
@@ -54,9 +54,9 @@ |
||
| 54 | 54 | if ($message === null) { |
| 55 | 55 | $message = Response::$statusCodesErrors[$statusCode] ?? 'Operace neproběhla v pořádku.'; |
| 56 | 56 | } |
| 57 | - if (isset($response[0]) === true && \is_array($response[0]) === true && \count($response[0]) > 0) { |
|
| 58 | - $message .= "\n" . 'Please check keys: "' . implode('", "', array_keys($response[0])) . '".'; |
|
| 59 | - } |
|
| 57 | + if (isset($response[0]) === true && \is_array($response[0]) === true && \count($response[0]) > 0) { |
|
| 58 | + $message .= "\n" . 'Please check keys: "' . implode('", "', array_keys($response[0])) . '".'; |
|
| 59 | + } |
|
| 60 | 60 | |
| 61 | 61 | // construct exception |
| 62 | 62 | parent::__construct($message, $statusCode, $previous); |