Completed
Push — master ( 0f523a...629a26 )
by Michal
13:41
created
src/Params/JsonInputParam.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@
 block discarded – undo
46 46
             return new ValidationResult(ValidationResult::STATUS_ERROR, ['missing data']);
47 47
         }
48 48
 
49
-        if (!empty($this->rawInput) && json_last_error()) {
49
+        if ( ! empty($this->rawInput) && json_last_error()) {
50 50
             return new ValidationResult(ValidationResult::STATUS_ERROR, [json_last_error_msg()]);
51 51
         }
52 52
 
53
-        if (!$value && $this->isRequired() === self::OPTIONAL) {
53
+        if ( ! $value && $this->isRequired() === self::OPTIONAL) {
54 54
             return new ValidationResult(ValidationResult::STATUS_OK);
55 55
         }
56 56
 
Please login to merge, or discard this patch.