Completed
Push — develop ( c57941...523020 )
by Neomerx
27:29 queued 12:28
created
sample/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Sample;
4 4
 
5
-require_once __DIR__ . '/vendor/autoload.php';
5
+require_once __DIR__.'/vendor/autoload.php';
6 6
 
7 7
 /**
8 8
  * Copyright 2015-2020 [email protected]
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_iterable($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/Types/IsBool.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/IsFloat.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/IsArray.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/Types/IsDateTime.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/IsInt.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/IsNumeric.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/IsString.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_string($value) === true ?
43
-            static::createSuccessReply($value) :
44
-            static::createErrorReply($context, $value, ErrorCodes::IS_STRING, Messages::IS_STRING, []);
43
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::IS_STRING, Messages::IS_STRING, []);
45 44
     }
46 45
 }
Please login to merge, or discard this patch.