Apply code style

This commit is contained in:
Shift
2023-05-24 21:36:42 +00:00
parent 41147b26f2
commit c6c639afc2
7 changed files with 38 additions and 32 deletions

View File

@@ -80,7 +80,7 @@ class CurlErrorCodes extends Enum
public const CURLE_RTSP_SESSION_ERROR = 86;
public const CURLE_FTP_BAD_FILE_LIST = 87;
public const CURLE_CHUNK_FAILED = 88;
/**
* Curl Error messages
@@ -163,7 +163,7 @@ class CurlErrorCodes extends Enum
86 => 'CURLE_RTSP_SESSION_ERROR.',
87 => 'CURLE_FTP_BAD_FILE_LIST.',
88 => 'CURLE_CHUNK_FAILED.',
];
}

View File

@@ -8,7 +8,7 @@ class Enum
{
/**
* Message list
*
*
* @var array<string<static>>
*/
public static $messages = [];
@@ -57,12 +57,12 @@ class Enum
/**
* Returns a message from the enum subclass
*
*
* @return string
*/
public static function getMessage(int $messageIndex, string $defaultMessage = 'Unknown'): string
{
if(array_key_exists($messageIndex, self::$messages) === true) {
if (array_key_exists($messageIndex, self::$messages) === true) {
return self::$messages[$messageIndex];
}