@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Nasyrov\Laravel\Enums\Rules; |
4 | 4 | |
5 | 5 | use Illuminate\Contracts\Validation\Rule; |
6 | +use InvalidArgumentException; |
|
6 | 7 | use Nasyrov\Laravel\Enums\Enum; |
7 | 8 | use ReflectionClass; |
8 | -use InvalidArgumentException; |
|
9 | 9 | |
10 | 10 | class EnumRule implements Rule |
11 | 11 | { |
@@ -13,8 +13,8 @@ |
||
13 | 13 | protected $enumClass; |
14 | 14 | |
15 | 15 | /** |
16 | - * @param string $enumClass Class of the enum to validate against |
|
17 | - */ |
|
16 | + * @param string $enumClass Class of the enum to validate against |
|
17 | + */ |
|
18 | 18 | public function __construct(string $enumClass) |
19 | 19 | { |
20 | 20 | if (!$this->isEnumClass($enumClass)) { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function message() |
50 | 50 | { |
51 | - return 'The :attribute is not a valid value for the ' . Enum::class; |
|
51 | + return 'The :attribute is not a valid value for the '.Enum::class; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |