@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $time = $time->format($format); |
58 | 58 | $url = ($request->getRequestUri() !== '') ? $request->getRequestUri() : '--'; |
59 | 59 | $method = is_string($request->getMethod()) ? $request->getMethod() : '--'; |
60 | - if($this->config->getValue('installed', false)) { |
|
60 | + if ($this->config->getValue('installed', false)) { |
|
61 | 61 | $user = \OC_User::getUser() ? \OC_User::getUser() : '--'; |
62 | 62 | } else { |
63 | 63 | $user = '--'; |
@@ -88,10 +88,10 @@ discard block |
||
88 | 88 | // PHP's json_encode only accept proper UTF-8 strings, loop over all |
89 | 89 | // elements to ensure that they are properly UTF-8 compliant or convert |
90 | 90 | // them manually. |
91 | - foreach($entry as $key => $value) { |
|
92 | - if(is_string($value)) { |
|
91 | + foreach ($entry as $key => $value) { |
|
92 | + if (is_string($value)) { |
|
93 | 93 | $testEncode = json_encode($value, JSON_UNESCAPED_SLASHES); |
94 | - if($testEncode === false) { |
|
94 | + if ($testEncode === false) { |
|
95 | 95 | $entry[$key] = utf8_encode($value); |
96 | 96 | } |
97 | 97 | } |