Completed
Push — master ( e60177...3ac8c4 )
by Neomerx
03:54
created
sample/Validation/IsPaymentPlanRule.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,6 @@
 block discarded – undo
46 46
         $idExists = is_int($value) === true && $value < 3;
47 47
 
48 48
         return $idExists === true ?
49
-            BlockReplies::createSuccessReply($value) :
50
-            BlockReplies::createErrorReply($context, $value, CustomErrorCodes::IS_EXISTING_PAYMENT_PLAN);
49
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, CustomErrorCodes::IS_EXISTING_PAYMENT_PLAN);
51 50
     }
52 51
 }
Please login to merge, or discard this patch.
sample/Validation/IsEmailRule.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,6 @@
 block discarded – undo
46 46
         $isValidEmail = is_string($value) === true && filter_var($value, FILTER_VALIDATE_EMAIL) !== false;
47 47
 
48 48
         return $isValidEmail === true ?
49
-            BlockReplies::createSuccessReply($value) :
50
-            BlockReplies::createErrorReply($context, $value, CustomErrorCodes::IS_EMAIL);
49
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, CustomErrorCodes::IS_EMAIL);
51 50
     }
52 51
 }
Please login to merge, or discard this patch.
src/Rules/Comparisons/ScalarInValues.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function __construct(array $scalars)
32 32
     {
33
-        assert(call_user_func(function () use ($scalars) {
33
+        assert(call_user_func(function() use ($scalars) {
34 34
             foreach ($scalars as $scalar) {
35 35
                 assert(static::isValidType($scalar) === true);
36 36
             }
Please login to merge, or discard this patch.
src/Rules/Types/AsFloat.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
     public static function execute($value, ContextInterface $context): array
48 48
     {
49 49
         return is_float($value) === true ?
50
-            BlockReplies::createSuccessReply($value) :
51
-            BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_FLOAT);
50
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_FLOAT);
52 51
     }
53 52
 }
Please login to merge, or discard this patch.
src/Rules/Types/AsArray.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
     public static function execute($value, ContextInterface $context): array
48 48
     {
49 49
         return is_array($value) === true ?
50
-            BlockReplies::createSuccessReply($value) :
51
-            BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_ARRAY);
50
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_ARRAY);
52 51
     }
53 52
 }
Please login to merge, or discard this patch.
src/Rules/Types/AsBool.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
     public static function execute($value, ContextInterface $context): array
48 48
     {
49 49
         return is_bool($value) === true ?
50
-            BlockReplies::createSuccessReply($value) :
51
-            BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_BOOL);
50
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_BOOL);
52 51
     }
53 52
 }
Please login to merge, or discard this patch.
src/Rules/Types/AsString.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
     public static function execute($value, ContextInterface $context): array
48 48
     {
49 49
         return is_string($value) === true ?
50
-            BlockReplies::createSuccessReply($value) :
51
-            BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_STRING);
50
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_STRING);
52 51
     }
53 52
 }
Please login to merge, or discard this patch.
src/Rules/Types/AsInt.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
     public static function execute($value, ContextInterface $context): array
48 48
     {
49 49
         return is_int($value) === true ?
50
-            BlockReplies::createSuccessReply($value) :
51
-            BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_INT);
50
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_INT);
52 51
     }
53 52
 }
Please login to merge, or discard this patch.
src/Rules/Types/AsNumeric.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
     public static function execute($value, ContextInterface $context): array
48 48
     {
49 49
         return is_numeric($value) === true ?
50
-            BlockReplies::createSuccessReply($value) :
51
-            BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_NUMERIC);
50
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, ErrorCodes::IS_NUMERIC);
52 51
     }
53 52
 }
Please login to merge, or discard this patch.