@@ -113,19 +113,19 @@ public function __construct(string $appName,
113113 IconsCacher $ iconsCacher ,
114114 \OC_Defaults $ defaults ) {
115115 parent ::__construct ($ appName , $ request );
116- $ this ->appName = $ appName ;
117- $ this ->config = $ config ;
118- $ this ->userManager = $ userManager ;
119- $ this ->logger = $ logger ;
116+ $ this ->appName = $ appName ;
117+ $ this ->config = $ config ;
118+ $ this ->userManager = $ userManager ;
119+ $ this ->logger = $ logger ;
120120 $ this ->urlGenerator = $ urlGenerator ;
121- $ this ->timeFactory = $ timeFactory ;
122- $ this ->userSession = $ userSession ;
123- $ this ->appManager = $ appManager ;
124- $ this ->iconsCacher = $ iconsCacher ;
125- $ this ->defaults = $ defaults ;
121+ $ this ->timeFactory = $ timeFactory ;
122+ $ this ->userSession = $ userSession ;
123+ $ this ->appManager = $ appManager ;
124+ $ this ->iconsCacher = $ iconsCacher ;
125+ $ this ->defaults = $ defaults ;
126126
127127 $ this ->serverRoot = \OC ::$ SERVERROOT ;
128- $ this ->appRoot = $ this ->appManager ->getAppPath ($ this ->appName );
128+ $ this ->appRoot = $ this ->appManager ->getAppPath ($ this ->appName );
129129 }
130130
131131 /**
@@ -136,8 +136,8 @@ public function __construct(string $appName,
136136 * @return DataDisplayResponse
137137 */
138138 public function getCss (): DataDisplayResponse {
139- $ css = '' ;
140- $ imports = '' ;
139+ $ css = '' ;
140+ $ imports = '' ;
141141 if ($ this ->userSession ->isLoggedIn ()) {
142142 $ userValues = $ this ->getUserValues ();
143143 } else {
@@ -182,7 +182,7 @@ public function getCss(): DataDisplayResponse {
182182
183183 // Rebase all urls
184184 $ appWebRoot = substr ($ this ->appRoot , strlen ($ this ->serverRoot ) - strlen (\OC ::$ WEBROOT ));
185- $ css = $ this ->rebaseUrls ($ css , $ appWebRoot . '/css ' );
185+ $ css = $ this ->rebaseUrls ($ css , $ appWebRoot . '/css ' );
186186
187187 if (in_array ('dark ' , $ userValues ) && $ this ->iconsCacher ->getCachedList () && $ this ->iconsCacher ->getCachedList ()->getSize () > 0 ) {
188188 $ iconsCss = $ this ->invertSvgIconsColor ($ this ->iconsCacher ->getCachedList ()->getContent ());
@@ -215,7 +215,7 @@ public function getCss(): DataDisplayResponse {
215215 */
216216 private function getUserValues (): array {
217217 $ userTheme = $ this ->config ->getUserValue ($ this ->userSession ->getUser ()->getUID (), $ this ->appName , 'theme ' , false );
218- $ userFont = $ this ->config ->getUserValue ($ this ->userSession ->getUser ()->getUID (), $ this ->appName , 'font ' , false );
218+ $ userFont = $ this ->config ->getUserValue ($ this ->userSession ->getUser ()->getUID (), $ this ->appName , 'font ' , false );
219219 $ userHighContrast = $ this ->config ->getUserValue ($ this ->userSession ->getUser ()->getUID (), $ this ->appName , 'highcontrast ' , false );
220220
221221 return [$ userTheme , $ userHighContrast , $ userFont ];
@@ -240,7 +240,7 @@ private function filterOutRule(string $rule, string $css): string {
240240 * @return string
241241 */
242242 private function rebaseUrls (string $ css , string $ webDir ): string {
243- $ re = '/url\([ \'"]([^\/][\.\w?=\/-]*)[ \'"]\)/x ' ;
243+ $ re = '/url\([ \'"]([^\/][\.\w?=\/-]*)[ \'"]\)/x ' ;
244244 $ subst = 'url( \'' . $ webDir . '/$1 \') ' ;
245245
246246 return preg_replace ($ re , $ subst , $ css );
0 commit comments