Completed
Pull Request — master (#44)
by Timothy
04:51
created
src/Middleware/JsonSchema.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
     /**
57 57
      * @param ServerRequestInterface $request
58
-     * @return string|bool
58
+     * @return string|false
59 59
      */
60 60
     private function getSchema(ServerRequestInterface $request)
61 61
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             $validator = new Validator();
36 36
             $decoded = $this->decodeBody($request);
37 37
             if (json_last_error() !== JSON_ERROR_NONE) {
38
-                return $response->withStatus(422, 'Malformed JSON: ' . json_last_error_msg());
38
+                return $response->withStatus(422, 'Malformed JSON: '.json_last_error_msg());
39 39
             }
40 40
 
41 41
             $validator->check($decoded, (object) [
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             return $schema;
81 81
         }
82 82
 
83
-        return 'file://' . $schema;
83
+        return 'file://'.$schema;
84 84
     }
85 85
 
86 86
     /**
Please login to merge, or discard this patch.