@@ -91,20 +91,18 @@ public function run(IOutput $output) {
9191 $ this ->userManager ->callForSeenUsers (function (IUser $ user ) use ($ output ) {
9292 $ config = [];
9393
94- $ font = $ this ->config ->getUserValue ($ user ->getUID (), 'accessibility ' , 'font ' , false );
95- $ highcontrast = $ this ->config ->getUserValue ($ user ->getUID (), 'accessibility ' , 'highcontrast ' , false );
96- $ theme = $ this ->config ->getUserValue ($ user ->getUID (), 'accessibility ' , 'theme ' , false );
97-
98- if ($ highcontrast || $ theme ) {
99- if ($ theme === 'dark ' && $ highcontrast === 'highcontrast ' ) {
100- $ config [] = $ this ->darkHighContrastTheme ->getId ();
101- } else if ($ theme === 'dark ' ) {
102- $ config [] = $ this ->darkTheme ->getId ();
103- } else if ($ highcontrast === 'highcontrast ' ) {
104- $ config [] = $ this ->highContrastTheme ->getId ();
105- }
94+ $ font = $ this ->config ->getUserValue ($ user ->getUID (), 'accessibility ' , 'font ' , '' );
95+ $ highcontrast = $ this ->config ->getUserValue ($ user ->getUID (), 'accessibility ' , 'highcontrast ' , '' );
96+ $ theme = $ this ->config ->getUserValue ($ user ->getUID (), 'accessibility ' , 'theme ' , '' );
97+
98+ if ($ theme === 'dark ' && $ highcontrast === 'highcontrast ' ) {
99+ $ config [] = $ this ->darkHighContrastTheme ->getId ();
100+ } else if ($ theme === 'dark ' ) {
101+ $ config [] = $ this ->darkTheme ->getId ();
102+ } else if ($ highcontrast === 'highcontrast ' ) {
103+ $ config [] = $ this ->highContrastTheme ->getId ();
106104 }
107-
105+
108106 if ($ font === 'fontdyslexic ' ) {
109107 $ config [] = $ this ->dyslexiaFont ->getId ();
110108 }
0 commit comments