mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
src: style sweep
This commit is contained in:
parent
6f5bd00252
commit
7d87c3b2e0
@ -28,14 +28,15 @@
|
||||
|
||||
namespace OPNsense\System;
|
||||
|
||||
enum SystemStatusCode:int
|
||||
enum SystemStatusCode: int
|
||||
{
|
||||
case ERROR = -1;
|
||||
case WARNING = 0;
|
||||
case NOTICE = 1;
|
||||
case OK = 2;
|
||||
|
||||
public static function toValueNameArray(): array {
|
||||
public static function toValueNameArray(): array
|
||||
{
|
||||
$result = [];
|
||||
foreach (self::cases() as $case) {
|
||||
$result[$case->value] = $case->name;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user