@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare (strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * @copyright Copyright (c) 2018 John Molakvoæ (skjnldsv) <[email protected]> |
5 | 5 | * @copyright Copyright (c) 2019 Janis Köhr <[email protected]> |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $this->config = $config; |
72 | 72 | $this->userSession = $userSession; |
73 | 73 | $this->accessibilityProvider = $accessibilityProvider; |
74 | - $this->userId = $userSession->getUser()->getUID(); |
|
74 | + $this->userId = $userSession->getUser()->getUID(); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if ($key === 'theme' || $key === 'font' || $key === 'highcontrast') { |
104 | 104 | |
105 | 105 | if ($value === false || $value === '') { |
106 | - throw new OCSBadRequestException('Invalid value: ' . $value); |
|
106 | + throw new OCSBadRequestException('Invalid value: '.$value); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | $themes = $this->accessibilityProvider->getThemes(); |
@@ -119,10 +119,10 @@ discard block |
||
119 | 119 | return new DataResponse(); |
120 | 120 | } |
121 | 121 | |
122 | - throw new OCSBadRequestException('Invalid value: ' . $value); |
|
122 | + throw new OCSBadRequestException('Invalid value: '.$value); |
|
123 | 123 | } |
124 | 124 | |
125 | - throw new OCSBadRequestException('Invalid key: ' . $key); |
|
125 | + throw new OCSBadRequestException('Invalid key: '.$key); |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | return new DataResponse(); |
149 | 149 | } |
150 | 150 | |
151 | - throw new OCSBadRequestException('Invalid key: ' . $key); |
|
151 | + throw new OCSBadRequestException('Invalid key: '.$key); |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | } |