Completed
Push — master ( 7c338b...cf31cf )
by Nils
02:12
created
src/Rules/Json/JsonSchema/JsonSchemaRule.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
         $data = json_decode($response->getBody());
40 40
         if ($data === null) {
41 41
             throw new ValidationFailedException("The given JSON data can not be validated (last error: '" . $this->json_errors[json_last_error()] . "').");
42
-        }
43
-        else {
42
+        } else {
44 43
             $error = false;
45 44
             $messageParts = array();
46 45
 
Please login to merge, or discard this patch.
src/Rules/Json/JsonPathExistsRule.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@
 block discarded – undo
53 53
 
54 54
     public function doValidation(Response $response)
55 55
     {
56
-	$body = (string)$response->getBody();
56
+    $body = (string)$response->getBody();
57 57
 
58 58
         $json = json_decode($body);
59 59
 
60
-	if(!$json) {
61
- 	    throw new ValidationFailedException('The given json document is empty or not valid json.');
62
-	}
60
+    if(!$json) {
61
+            throw new ValidationFailedException('The given json document is empty or not valid json.');
62
+    }
63 63
 
64 64
         $store = new JsonStore($json);
65 65
 
Please login to merge, or discard this patch.