Completed
Push — develop ( 7f5846...6de5fe )
by Neomerx
01:50
created
src/Rules/Types/AsDateTime.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,6 @@
 block discarded – undo
40 40
     public static function execute($value, ContextInterface $context): array
41 41
     {
42 42
         return $value instanceof DateTimeInterface ?
43
-            static::createSuccessReply($value) :
44
-            static::createErrorReply($context, $value, ErrorCodes::IS_DATE_TIME, Messages::IS_DATE_TIME, []);
43
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_DATE_TIME, Messages::IS_DATE_TIME, []);
45 44
     }
46 45
 }
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
@@ -40,7 +40,6 @@
 block discarded – undo
40 40
     public static function execute($value, ContextInterface $context): array
41 41
     {
42 42
         return is_float($value) === true ?
43
-            static::createSuccessReply($value) :
44
-            static::createErrorReply($context, $value, ErrorCodes::IS_FLOAT, Messages::IS_FLOAT, []);
43
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_FLOAT, Messages::IS_FLOAT, []);
45 44
     }
46 45
 }
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
@@ -40,7 +40,6 @@
 block discarded – undo
40 40
     public static function execute($value, ContextInterface $context): array
41 41
     {
42 42
         return is_bool($value) === true ?
43
-            static::createSuccessReply($value) :
44
-            static::createErrorReply($context, $value, ErrorCodes::IS_BOOL, Messages::IS_BOOL, []);
43
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_BOOL, Messages::IS_BOOL, []);
45 44
     }
46 45
 }
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
@@ -40,7 +40,6 @@
 block discarded – undo
40 40
     public static function execute($value, ContextInterface $context): array
41 41
     {
42 42
         return is_numeric($value) === true ?
43
-            static::createSuccessReply($value) :
44
-            static::createErrorReply($context, $value, ErrorCodes::IS_NUMERIC, Messages::IS_NUMERIC, []);
43
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_NUMERIC, Messages::IS_NUMERIC, []);
45 44
     }
46 45
 }
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
@@ -40,7 +40,6 @@
 block discarded – undo
40 40
     public static function execute($value, ContextInterface $context): array
41 41
     {
42 42
         return is_int($value) === true ?
43
-            static::createSuccessReply($value) :
44
-            static::createErrorReply($context, $value, ErrorCodes::IS_INT, Messages::IS_INT, []);
43
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_INT, Messages::IS_INT, []);
45 44
     }
46 45
 }
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
@@ -40,7 +40,6 @@
 block discarded – undo
40 40
     public static function execute($value, ContextInterface $context): array
41 41
     {
42 42
         return is_array($value) === true ?
43
-            static::createSuccessReply($value) :
44
-            static::createErrorReply($context, $value, ErrorCodes::IS_ARRAY, Messages::IS_ARRAY, []);
43
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_ARRAY, Messages::IS_ARRAY, []);
45 44
     }
46 45
 }
Please login to merge, or discard this patch.
src/Rules/Converters/StringToInt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     public static function execute($value, ContextInterface $context): array
42 42
     {
43 43
         if (is_string($value) === true || is_numeric($value) === true) {
44
-            return static::createSuccessReply((int)$value);
44
+            return static::createSuccessReply((int) $value);
45 45
         }
46 46
 
47 47
         return static::createErrorReply($context, $value, ErrorCodes::IS_INT, Messages::IS_INT, []);
Please login to merge, or discard this patch.
src/Rules/Converters/StringArrayToIntArray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         if (is_array($value) === true) {
49 49
             foreach ($value as $key => $mightBeString) {
50 50
                 if (is_string($mightBeString) === true || is_numeric($mightBeString) === true) {
51
-                    $result[$key] = (int)$mightBeString;
51
+                    $result[$key] = (int) $mightBeString;
52 52
                 } else {
53 53
                     $reply = static::createErrorReply(
54 54
                         $context,
Please login to merge, or discard this patch.
src/Rules/Converters/StringToFloat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     public static function execute($value, ContextInterface $context): array
42 42
     {
43 43
         if (is_string($value) === true || is_numeric($value) === true) {
44
-            return static::createSuccessReply((float)$value);
44
+            return static::createSuccessReply((float) $value);
45 45
         }
46 46
 
47 47
         return static::createErrorReply($context, $value, ErrorCodes::IS_FLOAT, Messages::IS_FLOAT, []);
Please login to merge, or discard this patch.