Completed
Pull Request — master (#19)
by
unknown
09:01
created
src/Rules/EnumRule.php 3 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.