Completed
Push — master ( de4379...69572d )
by Neomerx
09:55
created
src/Rules/Types/AsFloat.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@
 block discarded – undo
36 36
     public static function execute($value, ContextInterface $context): array
37 37
     {
38 38
         return is_float($value) === true ?
39
-            static::createSuccessReply($value) :
40
-            static::createErrorReply($context, $value, ErrorCodes::IS_FLOAT);
39
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_FLOAT);
41 40
     }
42 41
 }
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
@@ -36,7 +36,6 @@
 block discarded – undo
36 36
     public static function execute($value, ContextInterface $context): array
37 37
     {
38 38
         return is_bool($value) === true ?
39
-            static::createSuccessReply($value) :
40
-            static::createErrorReply($context, $value, ErrorCodes::IS_BOOL);
39
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_BOOL);
41 40
     }
42 41
 }
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
@@ -36,7 +36,6 @@
 block discarded – undo
36 36
     public static function execute($value, ContextInterface $context): array
37 37
     {
38 38
         return is_int($value) === true ?
39
-            static::createSuccessReply($value) :
40
-            static::createErrorReply($context, $value, ErrorCodes::IS_INT);
39
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_INT);
41 40
     }
42 41
 }
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
@@ -36,7 +36,6 @@
 block discarded – undo
36 36
     public static function execute($value, ContextInterface $context): array
37 37
     {
38 38
         return is_string($value) === true ?
39
-            static::createSuccessReply($value) :
40
-            static::createErrorReply($context, $value, ErrorCodes::IS_STRING);
39
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_STRING);
41 40
     }
42 41
 }
Please login to merge, or discard this patch.
src/Rules/Types/AsDateTime.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
     public static function execute($value, ContextInterface $context): array
38 38
     {
39 39
         return $value instanceof DateTimeInterface ?
40
-            static::createSuccessReply($value) :
41
-            static::createErrorReply($context, $value, ErrorCodes::IS_DATE_TIME);
40
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_DATE_TIME);
42 41
     }
43 42
 }
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
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         if (is_array($value) === true) {
43 43
             foreach ($value as $key => $mightBeString) {
44 44
                 if (is_string($mightBeString) === true || is_numeric($mightBeString) === true) {
45
-                    $result[$key] = (int)$mightBeString;
45
+                    $result[$key] = (int) $mightBeString;
46 46
                 } else {
47 47
                     $reply = static::createErrorReply($context, $mightBeString, ErrorCodes::IS_STRING);
48 48
                     break;
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
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public static function execute($value, ContextInterface $context): array
37 37
     {
38 38
         if (is_string($value) === true || is_numeric($value) === true) {
39
-            return static::createSuccessReply((float)$value);
39
+            return static::createSuccessReply((float) $value);
40 40
         }
41 41
 
42 42
         return static::createErrorReply($context, $value, ErrorCodes::IS_FLOAT);
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
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public static function execute($value, ContextInterface $context): array
37 37
     {
38 38
         if (is_string($value) === true || is_numeric($value) === true) {
39
-            return static::createSuccessReply((int)$value);
39
+            return static::createSuccessReply((int) $value);
40 40
         }
41 41
 
42 42
         return static::createErrorReply($context, $value, ErrorCodes::IS_INT);
Please login to merge, or discard this patch.
src/Rules/Generic/Enum.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,6 @@
 block discarded – undo
56 56
         $isOk   = in_array($value, $values);
57 57
 
58 58
         return $isOk === true ?
59
-            static::createSuccessReply($value) :
60
-            static::createErrorReply($context, $value, ErrorCodes::INVALID_VALUE);
59
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::INVALID_VALUE);
61 60
     }
62 61
 }
Please login to merge, or discard this patch.