Completed
Pull Request — master (#12)
by
unknown
12:12
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->validateEnumClass($enumClass)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     {
51 51
         $enumClassName = explode('\\', $this->enumClass);
52 52
 
53
-        return 'The :attribute it not a valid value for the ' . array_pop($enumClassName);
53
+        return 'The :attribute it not a valid value for the '.array_pop($enumClassName);
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.