Completed
Pull Request — develop (#67)
by Kevin
02:54
created
lib/View/Controllers/Save.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                 'message'   => sprintf(
33 33
                     '%d setting%s saved in the context: %s',
34 34
                         count($json['values']),
35
-                        count($json['values'])>1?'s':'',
35
+                        count($json['values']) > 1 ? 's' : '',
36 36
                         $json['context'])
37 37
             ]]);
38 38
         } catch (\Exception $e) {
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function read(ServerRequestInterface $request)
56 56
     {
57
-        if (strpos($request->getHeader('content-type'),  'application/json') === false) {
57
+        if (strpos($request->getHeader('content-type'), 'application/json') === false) {
58 58
             throw new InvalidRequestException('MCM save operation requires an application/json content type');
59 59
         }
60 60
         $body = $request->getBody();
61 61
         $body->rewind();
62
-        $json  = json_decode($body->getContents(), true);
62
+        $json = json_decode($body->getContents(), true);
63 63
         if ($json === false) {
64 64
             throw new InvalidRequestException('Unable to read JSON string');
65 65
         }
Please login to merge, or discard this patch.