`$theme = $app->getTheme();` is there twice.