Completed
Pull Request — master (#44)
by Timothy
02:36
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
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             try {
41 41
                 $decoded = $this->bodyParser->json($request->getBody(), false);
42 42
             } catch (\DomainException $e) {
43
-                return $this->invalidateResponse($response, 'Malformed JSON: ' . $e->getMessage());
43
+                return $this->invalidateResponse($response, 'Malformed JSON: '.$e->getMessage());
44 44
             }
45 45
 
46 46
             $validator = new Validator();
@@ -112,6 +112,6 @@  discard block
 block discarded – undo
112 112
             return $schema;
113 113
         }
114 114
 
115
-        return 'file://' . $schema;
115
+        return 'file://'.$schema;
116 116
     }
117 117
 }
Please login to merge, or discard this patch.