@@ -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 | * |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $this->config = $config; |
71 | 71 | $this->userSession = $userSession; |
72 | 72 | $this->accessibilityProvider = $accessibilityProvider; |
73 | - $this->userId = $userSession->getUser()->getUID(); |
|
73 | + $this->userId = $userSession->getUser()->getUID(); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -124,10 +124,10 @@ discard block |
||
124 | 124 | return new DataResponse(); |
125 | 125 | } |
126 | 126 | |
127 | - throw new OCSBadRequestException('Invalid value: ' . $value); |
|
127 | + throw new OCSBadRequestException('Invalid value: '.$value); |
|
128 | 128 | } |
129 | 129 | |
130 | - throw new OCSBadRequestException('Invalid key: ' . $key); |
|
130 | + throw new OCSBadRequestException('Invalid key: '.$key); |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | } |
134 | 134 | \ No newline at end of file |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | // we want to check if any theme or font is enabled. |
58 | 58 | if (count($userValues) > 0) { |
59 | 59 | $hash = $this->config->getUserValue($loggedUser->getUID(), $this->appName, 'icons-css', md5(implode('-', $userValues))); |
60 | - $linkToCSS = $this->urlGenerator->linkToRoute($this->appName . '.accessibility.getCss', ['md5' => $hash]); |
|
60 | + $linkToCSS = $this->urlGenerator->linkToRoute($this->appName.'.accessibility.getCss', ['md5' => $hash]); |
|
61 | 61 | \OCP\Util::addHeader('link', ['rel' => 'stylesheet', 'href' => $linkToCSS]); |
62 | 62 | } |
63 | 63 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | public function injectJavascript() { |
67 | 67 | $linkToJs = $this->urlGenerator->linkToRoute( |
68 | - $this->appName . '.accessibility.getJavascript', |
|
68 | + $this->appName.'.accessibility.getJavascript', |
|
69 | 69 | [ |
70 | 70 | 'v' => \OC::$server->getConfig()->getAppValue('accessibility', 'cachebuster', '0'), |
71 | 71 | ] |