Completed
Push — master ( de4379...69572d )
by Neomerx
09:55
created
sample/Validation/Rules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public static function amount(int $max): RuleInterface
41 41
     {
42
-        assert ($max > 0);
42
+        assert($max > 0);
43 43
 
44 44
         return static::stringToInt(static::between(1, $max));
45 45
     }
Please login to merge, or discard this patch.
sample/Validation/IsDeliveryDateRule.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
             $value <= new DateTime('+5 days');
41 41
 
42 42
         return $isValidDeliveryDate === true ?
43
-            static::createSuccessReply($value) :
44
-            static::createErrorReply($context, $value, Errors::IS_DELIVERY_DATE);
43
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, Errors::IS_DELIVERY_DATE);
45 44
     }
46 45
 }
Please login to merge, or discard this patch.
sample/Validation/IsSkuRule.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@
 block discarded – undo
35 35
         $idExists = is_int($value) === true && $value < 3;
36 36
 
37 37
         return $idExists === true ?
38
-            static::createSuccessReply($value) :
39
-            static::createErrorReply($context, $value, Errors::IS_VALID_SKU);
38
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, Errors::IS_VALID_SKU);
40 39
     }
41 40
 }
Please login to merge, or discard this patch.