4848
4949class AccessibilityController extends Controller {
5050
51- /** @var string */
52- protected $ appName ;
53-
54- /** @var string */
55- protected $ serverRoot ;
56-
57- /** @var IConfig */
58- private $ config ;
59-
60- /** @var LoggerInterface */
61- private $ logger ;
62-
63- /** @var ITimeFactory */
64- protected $ timeFactory ;
65-
66- /** @var IUserSession */
67- private $ userSession ;
68-
69- /** @var IconsCacher */
70- protected $ iconsCacher ;
71-
72- /** @var \OC_Defaults */
73- private $ defaults ;
74-
75- /** @var null|string */
76- private $ injectedVariables ;
77-
78- /** @var string */
79- private $ appRoot ;
51+ protected string $ serverRoot ;
52+ private IConfig $ config ;
53+ private LoggerInterface $ logger ;
54+ protected ITimeFactory $ timeFactory ;
55+ private IUserSession $ userSession ;
56+ protected IconsCacher $ iconsCacher ;
57+ private \OC_Defaults $ defaults ;
58+ private ?string $ injectedVariables = null ;
59+ private string $ appRoot ;
8060
8161 public function __construct (string $ appName ,
8262 IRequest $ request ,
@@ -104,8 +84,6 @@ public function __construct(string $appName,
10484 * @PublicPage
10585 * @NoCSRFRequired
10686 * @NoSameSiteCookieRequired
107- *
108- * @return DataDisplayResponse
10987 */
11088 public function getCss (): DataDisplayResponse {
11189 $ css = '' ;
@@ -186,8 +164,6 @@ public function getCss(): DataDisplayResponse {
186164
187165 /**
188166 * Return an array with the user theme & font settings
189- *
190- * @return array
191167 */
192168 private function getUserValues (): array {
193169 $ userTheme = $ this ->config ->getUserValue ($ this ->userSession ->getUser ()->getUID (), $ this ->appName , 'theme ' , false );
@@ -210,10 +186,6 @@ private function filterOutRule(string $rule, string $css): string {
210186
211187 /**
212188 * Add the correct uri prefix to make uri valid again
213- *
214- * @param string $css
215- * @param string $webDir
216- * @return string
217189 */
218190 private function rebaseUrls (string $ css , string $ webDir ): string {
219191 $ re = '/url\([ \'"]([^\/][\.\w?=\/-]*)[ \'"]\)/x ' ;
@@ -226,9 +198,8 @@ private function rebaseUrls(string $css, string $webDir): string {
226198 * Remove all matches from the $rule regex
227199 *
228200 * @param string $css string to parse
229- * @return string
230201 */
231- private function invertSvgIconsColor (string $ css ) {
202+ private function invertSvgIconsColor (string $ css ): string {
232203 return str_replace (
233204 ['color=000& ' , 'color=fff& ' , 'color=***& ' ],
234205 ['color=***& ' , 'color=000& ' , 'color=fff& ' ],
0 commit comments