diff --git a/src/Console/Commands/MakeEnumCommand.php b/src/Console/Commands/MakeEnumCommand.php index ee9fded..865adfa 100644 --- a/src/Console/Commands/MakeEnumCommand.php +++ b/src/Console/Commands/MakeEnumCommand.php @@ -3,7 +3,7 @@ /* * This file is part of the Jiannei/laravel-enum. * - * (c) Jiannei + * (c) Jiannei * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. diff --git a/src/Providers/LaravelServiceProvider.php b/src/Providers/LaravelServiceProvider.php index ab85766..45194c9 100644 --- a/src/Providers/LaravelServiceProvider.php +++ b/src/Providers/LaravelServiceProvider.php @@ -3,7 +3,7 @@ /* * This file is part of the Jiannei/laravel-enum. * - * (c) Jiannei + * (c) Jiannei * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. diff --git a/src/Support/Enums/HttpStatusCode.php b/src/Support/Enums/HttpStatusCode.php index 0ab4fd5..7dd5608 100644 --- a/src/Support/Enums/HttpStatusCode.php +++ b/src/Support/Enums/HttpStatusCode.php @@ -3,7 +3,7 @@ /* * This file is part of the Jiannei/laravel-enum. * - * (c) Jiannei + * (c) Jiannei * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. diff --git a/src/Support/Traits/EnumEnhance.php b/src/Support/Traits/EnumEnhance.php index f95b94d..30e63c7 100644 --- a/src/Support/Traits/EnumEnhance.php +++ b/src/Support/Traits/EnumEnhance.php @@ -3,7 +3,7 @@ /* * This file is part of the Jiannei/laravel-enum. * - * (c) Jiannei + * (c) Jiannei * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. @@ -40,7 +40,7 @@ public function is(\BackedEnum $enum): bool public function isNot(\BackedEnum $enum): bool { - return ! $this->is($enum); + return !$this->is($enum); } public function isAny(array $enums): bool @@ -70,7 +70,7 @@ public static function hasValue(int|string $value, bool $strict = false): bool public static function fromName(string $name): static { - if (! static::hasName($name)) { + if (!static::hasName($name)) { throw new \ValueError("$name is not a valid backing name for enum \"".static::class.'"'); } @@ -79,7 +79,7 @@ public static function fromName(string $name): static public static function fromValue(int|string $value): static { - if (! static::hasValue($value)) { + if (!static::hasValue($value)) { throw new \ValueError("$value is not a valid backing value for enum \"".static::class.'"'); } diff --git a/tests/Enums/UserType.php b/tests/Enums/UserType.php index 2d9c768..f414d9f 100644 --- a/tests/Enums/UserType.php +++ b/tests/Enums/UserType.php @@ -3,7 +3,7 @@ /* * This file is part of the Jiannei/laravel-enum. * - * (c) Jiannei + * (c) Jiannei * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. diff --git a/tests/Feature/EnumTest.php b/tests/Feature/EnumTest.php index 9a5ff86..3113c3c 100644 --- a/tests/Feature/EnumTest.php +++ b/tests/Feature/EnumTest.php @@ -3,7 +3,7 @@ /* * This file is part of the Jiannei/laravel-enum. * - * (c) Jiannei + * (c) Jiannei * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. diff --git a/tests/Pest.php b/tests/Pest.php index 5602eee..6e884ca 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -3,7 +3,7 @@ /* * This file is part of the Jiannei/laravel-enum. * - * (c) Jiannei + * (c) Jiannei * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. diff --git a/tests/TestCase.php b/tests/TestCase.php index bac1728..755815c 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -3,7 +3,7 @@ /* * This file is part of the Jiannei/laravel-enum. * - * (c) Jiannei + * (c) Jiannei * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. diff --git a/tests/Unit/EnumTest.php b/tests/Unit/EnumTest.php index 7b98766..bd2b310 100644 --- a/tests/Unit/EnumTest.php +++ b/tests/Unit/EnumTest.php @@ -3,7 +3,7 @@ /* * This file is part of the Jiannei/laravel-enum. * - * (c) Jiannei + * (c) Jiannei * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. diff --git a/tests/lang/zh_CN/enums.php b/tests/lang/zh_CN/enums.php index 5038a7d..1605de4 100644 --- a/tests/lang/zh_CN/enums.php +++ b/tests/lang/zh_CN/enums.php @@ -3,7 +3,7 @@ /* * This file is part of the Jiannei/laravel-enum. * - * (c) Jiannei + * (c) Jiannei * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE.