Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jan 11, 2024
1 parent 84f67d9 commit e72b6fa
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Console/Commands/MakeEnumCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Jiannei/laravel-enum.
*
* (c) Jiannei <longjian.huang@foxmail.com>
* (c) Jiannei <jiannei@sinan.fun>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Jiannei/laravel-enum.
*
* (c) Jiannei <longjian.huang@foxmail.com>
* (c) Jiannei <jiannei@sinan.fun>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Enums/HttpStatusCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Jiannei/laravel-enum.
*
* (c) Jiannei <longjian.huang@foxmail.com>
* (c) Jiannei <jiannei@sinan.fun>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
Expand Down
8 changes: 4 additions & 4 deletions src/Support/Traits/EnumEnhance.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Jiannei/laravel-enum.
*
* (c) Jiannei <longjian.huang@foxmail.com>
* (c) Jiannei <jiannei@sinan.fun>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.'"');
}

Expand All @@ -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.'"');
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Enums/UserType.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Jiannei/laravel-enum.
*
* (c) Jiannei <longjian.huang@foxmail.com>
* (c) Jiannei <jiannei@sinan.fun>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/EnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Jiannei/laravel-enum.
*
* (c) Jiannei <longjian.huang@foxmail.com>
* (c) Jiannei <jiannei@sinan.fun>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Jiannei/laravel-enum.
*
* (c) Jiannei <longjian.huang@foxmail.com>
* (c) Jiannei <jiannei@sinan.fun>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Jiannei/laravel-enum.
*
* (c) Jiannei <longjian.huang@foxmail.com>
* (c) Jiannei <jiannei@sinan.fun>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/EnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Jiannei/laravel-enum.
*
* (c) Jiannei <longjian.huang@foxmail.com>
* (c) Jiannei <jiannei@sinan.fun>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
Expand Down
2 changes: 1 addition & 1 deletion tests/lang/zh_CN/enums.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Jiannei/laravel-enum.
*
* (c) Jiannei <longjian.huang@foxmail.com>
* (c) Jiannei <jiannei@sinan.fun>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
Expand Down

0 comments on commit e72b6fa

Please sign in to comment.