@@ -40,7 +40,6 @@ |
||
| 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 | } |
@@ -40,7 +40,6 @@ |
||
| 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 | } |
@@ -40,7 +40,6 @@ |
||
| 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 | } |
@@ -40,7 +40,6 @@ |
||
| 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 | } |
@@ -40,7 +40,6 @@ |
||
| 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 | } |
@@ -40,7 +40,6 @@ |
||
| 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 | } |
@@ -41,7 +41,7 @@ |
||
| 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, []); |
@@ -48,7 +48,7 @@ |
||
| 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, |
@@ -41,7 +41,7 @@ |
||
| 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, []); |