File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,9 +116,6 @@ public function setActiveTheme(string|null $theme): bool
116116 $ this ->activeTheme = $ theme ;
117117 $ this ->theme = $ this ->themes [$ theme ];
118118
119- // need to set later
120- //$this->setThemeCookie();
121-
122119 return true ;
123120 }
124121
@@ -230,7 +227,14 @@ public function checkTheme(string|null $theme): bool
230227 return array_key_exists ($ theme ?? '' , $ this ->themes );
231228 }
232229
233- /** @return mixed[] */
230+ /** @return array{
231+ * id: string,
232+ * name: string,
233+ * version: string,
234+ * is_active: bool,
235+ * color_mode: string,
236+ * color_modes: array<string|int, string>
237+ * }[] $themes */
234238 public function getThemesArray (): array
235239 {
236240 $ themes = [];
Original file line number Diff line number Diff line change @@ -54,11 +54,6 @@ public function testGetThemesArray(): void
5454 $ tm ->initializeTheme ();
5555 $ themes = $ tm ->getThemesArray ();
5656 self ::assertArrayHasKey (0 , $ themes );
57- self ::assertIsArray ($ themes [0 ]);
58- self ::assertArrayHasKey ('id ' , $ themes [0 ]);
59- self ::assertArrayHasKey ('name ' , $ themes [0 ]);
60- self ::assertArrayHasKey ('version ' , $ themes [0 ]);
61- self ::assertArrayHasKey ('is_active ' , $ themes [0 ]);
6257 }
6358
6459 /**
You can’t perform that action at this time.
0 commit comments