Completed
Push — master ( 22fd50...798002 )
by Neomerx
03:53
created
src/Execution/BlockInterpreter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
     /**
338 338
      * @param array $serializedBlocks
339 339
      *
340
-     * @return array
340
+     * @return integer[]
341 341
      *
342 342
      * @SuppressWarnings(PHPMD.StaticAccess)
343 343
      */
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
     /**
358 358
      * @param array $serializedBlocks
359 359
      *
360
-     * @return array
360
+     * @return integer[]
361 361
      *
362 362
      * @SuppressWarnings(PHPMD.StaticAccess)
363 363
      */
Please login to merge, or discard this patch.
src/Rules/Converters/StringToDateTime.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
      * @param string $input
97 97
      * @param string $format
98 98
      *
99
-     * @return DateTimeInterface|null
99
+     * @return DateTimeImmutable|null
100 100
      *
101 101
      * @SuppressWarnings(PHPMD.StaticAccess)
102 102
      */
Please login to merge, or discard this patch.
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.
sample/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
             v::isString(v::stringToDateTime(DATE_ATOM, v::between($fromDate, $toDate)))
102 102
                 ->setName('my_date')->enableCapture()
103 103
         );
104
-        $input     = '2001-03-04T05:06:07+08:00';
104
+        $input = '2001-03-04T05:06:07+08:00';
105 105
         if ($validator->validate($input) === true) {
106 106
             $this->console("Validation OK for `$input`." . PHP_EOL);
107 107
             $myDate = $validator->getCaptures()->get()['my_date'];
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.