@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | if ($this->cache !== null) { |
56 | - $fileCacheKey = $file . filemtime($file); |
|
56 | + $fileCacheKey = $file.filemtime($file); |
|
57 | 57 | if ($cachedValue = $this->cache->get($fileCacheKey)) { |
58 | 58 | return json_decode($cachedValue, true); |
59 | 59 | } |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | */ |
230 | 230 | public function xmlToArray($xml) { |
231 | 231 | if (!$xml->children()) { |
232 | - return (string)$xml; |
|
232 | + return (string) $xml; |
|
233 | 233 | } |
234 | 234 | |
235 | 235 | $array = []; |
@@ -245,16 +245,16 @@ discard block |
||
245 | 245 | $data = [ |
246 | 246 | '@attributes' => [], |
247 | 247 | ]; |
248 | - if (!count($node->children())){ |
|
249 | - $value = (string)$node; |
|
248 | + if (!count($node->children())) { |
|
249 | + $value = (string) $node; |
|
250 | 250 | if (!empty($value)) { |
251 | - $data['@value'] = (string)$node; |
|
251 | + $data['@value'] = (string) $node; |
|
252 | 252 | } |
253 | 253 | } else { |
254 | 254 | $data = array_merge($data, $this->xmlToArray($node)); |
255 | 255 | } |
256 | 256 | foreach ($attributes as $attr => $value) { |
257 | - $data['@attributes'][$attr] = (string)$value; |
|
257 | + $data['@attributes'][$attr] = (string) $value; |
|
258 | 258 | } |
259 | 259 | |
260 | 260 | if ($totalElement > 1) { |
@@ -91,13 +91,13 @@ discard block |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | $entry['active'] = false; |
94 | - if(!isset($entry['icon'])) { |
|
94 | + if (!isset($entry['icon'])) { |
|
95 | 95 | $entry['icon'] = ''; |
96 | 96 | } |
97 | - if(!isset($entry['classes'])) { |
|
97 | + if (!isset($entry['classes'])) { |
|
98 | 98 | $entry['classes'] = ''; |
99 | 99 | } |
100 | - if(!isset($entry['type'])) { |
|
100 | + if (!isset($entry['type'])) { |
|
101 | 101 | $entry['type'] = 'link'; |
102 | 102 | } |
103 | 103 | $this->entries[$entry['id']] = $entry; |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | ]); |
230 | 230 | |
231 | 231 | $logoutUrl = \OC_User::getLogoutUrl($this->urlGenerator); |
232 | - if($logoutUrl !== '') { |
|
232 | + if ($logoutUrl !== '') { |
|
233 | 233 | // Logout |
234 | 234 | $this->add([ |
235 | 235 | 'type' => 'settings', |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | continue; |
287 | 287 | } |
288 | 288 | $l = $this->l10nFac->get($app); |
289 | - $id = $nav['id'] ?? $app . ($key === 0 ? '' : $key); |
|
289 | + $id = $nav['id'] ?? $app.($key === 0 ? '' : $key); |
|
290 | 290 | $order = isset($nav['order']) ? $nav['order'] : 100; |
291 | 291 | $type = isset($nav['type']) ? $nav['type'] : 'link'; |
292 | 292 | $route = $nav['route'] !== '' ? $this->urlGenerator->linkToRoute($nav['route']) : ''; |