File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1313
1414class ThemeStyles
1515{
16- const AUTO_MODE = 'auto ' ;
17- const LIGHT_MODE = 'light ' ;
18- const DARK_MODE = 'dark ' ;
16+ private const AUTO_MODE = 'auto ' ;
17+ private const LIGHT_MODE = 'light ' ;
18+ private const DARK_MODE = 'dark ' ;
1919
2020 // to maintain BC w/ old names that were defined in LESS
2121 private static $ propertyNamesToLessVariableNames = [
@@ -328,7 +328,7 @@ public function toLessCode()
328328 if (is_array ($ value )) {
329329 if ($ this ->getIsDarkMode ()) {
330330 $ result .= "@ $ varName: $ value [1 ]; \n" ;
331- } else if ($ this ->getIsLightMode ()) {
331+ } elseif ($ this ->getIsLightMode ()) {
332332 $ result .= "@ $ varName: $ value [0 ]; \n" ;
333333 } else {
334334 $ result .= "@ $ varName: light-dark( $ value [0 ], $ value [1 ]); \n" ;
Original file line number Diff line number Diff line change 1212use Exception ;
1313use Piwik \API \Request ;
1414use Piwik \API \ResponseBuilder ;
15- use Piwik \AssetManager ;
1615use Piwik \Auth \PasswordStrength ;
1716use Piwik \Common ;
1817use Piwik \Config \GeneralConfig ;
You can’t perform that action at this time.
0 commit comments