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