Completed
Push — master ( 317789...22fd50 )
by Neomerx
04:26
created
sample/Validation/Validator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public static function isEmail()
32 32
     {
33
-        $condition = function ($input) {
33
+        $condition = function($input) {
34 34
             return filter_var($input, FILTER_VALIDATE_EMAIL) !== false;
35 35
         };
36 36
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public static function isExistingPaymentPlan()
64 64
     {
65 65
         // emulate database request
66
-        $existsInDatabase = function ($recordId) {
66
+        $existsInDatabase = function($recordId) {
67 67
             return $recordId < 3;
68 68
         };
69 69
 
Please login to merge, or discard this patch.
src/Expressions/IterateRules.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use Limoncello\Validation\Contracts\AutoNameRuleInterface;
20 20
 use Limoncello\Validation\Contracts\ErrorAggregatorInterface;
21 21
 use Limoncello\Validation\Contracts\RuleInterface;
22
-use Limoncello\Validation\Rules;
23 22
 
24 23
 /**
25 24
  * @package Limoncello\Validation
Please login to merge, or discard this patch.
src/Converters/BoolConverter.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
             if (is_string($input) === true) {
38 38
                 $value = (
39 39
                     strcasecmp($input, 'true') === 0 ?
40
-                        true :
41
-                        (strcasecmp($input, 'false') === 0 ? false : (bool)$input)
40
+                        true : (strcasecmp($input, 'false') === 0 ? false : (bool)$input)
42 41
                 );
43 42
             } else {
44 43
                 $value = (bool)$input;
Please login to merge, or discard this patch.
src/Validator/Types.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      */
75 75
     protected static function isDateTime(): RuleInterface
76 76
     {
77
-        return new CallableRule(function ($value) {
77
+        return new CallableRule(function($value) {
78 78
             return $value instanceof DateTimeInterface;
79 79
         }, MessageCodes::IS_DATE_TIME);
80 80
     }
Please login to merge, or discard this patch.
src/Validator/Compares.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected static function equals($value): RuleInterface
34 34
     {
35
-        return new CallableRule(function ($input) use ($value) {
35
+        return new CallableRule(function($input) use ($value) {
36 36
             return $input === $value;
37 37
         }, MessageCodes::EQUALS);
38 38
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected static function notEquals($value): RuleInterface
46 46
     {
47
-        return new CallableRule(function ($input) use ($value) {
47
+        return new CallableRule(function($input) use ($value) {
48 48
             return $input !== $value;
49 49
         }, MessageCodes::NOT_EQUALS);
50 50
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected static function lessThan($value): RuleInterface
58 58
     {
59
-        return new CallableRule(function ($input) use ($value) {
59
+        return new CallableRule(function($input) use ($value) {
60 60
             return $input < $value;
61 61
         }, MessageCodes::LESS_THAN);
62 62
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected static function lessOrEquals($value): RuleInterface
70 70
     {
71
-        return new CallableRule(function ($input) use ($value) {
71
+        return new CallableRule(function($input) use ($value) {
72 72
             return $input <= $value;
73 73
         }, MessageCodes::LESS_OR_EQUALS);
74 74
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     protected static function moreThan($value): RuleInterface
82 82
     {
83
-        return new CallableRule(function ($input) use ($value) {
83
+        return new CallableRule(function($input) use ($value) {
84 84
             return $input > $value;
85 85
         }, MessageCodes::MORE_THAN);
86 86
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected static function moreOrEquals($value): RuleInterface
94 94
     {
95
-        return new CallableRule(function ($input) use ($value) {
95
+        return new CallableRule(function($input) use ($value) {
96 96
             return $input >= $value;
97 97
         }, MessageCodes::MORE_OR_EQUALS);
98 98
     }
Please login to merge, or discard this patch.
src/Validator/Values.php 1 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
     protected static function notNull(): RuleInterface
52 52
     {
53
-        return new CallableRule(function ($input) {
53
+        return new CallableRule(function($input) {
54 54
             return $input !== null;
55 55
         }, MessageCodes::NOT_NULL);
56 56
     }
Please login to merge, or discard this patch.