diff --git a/core/modules/system/lib/Drupal/system/Controller/ThemeController.php b/core/modules/system/lib/Drupal/system/Controller/ThemeController.php index 26a1ca3..6b42cca 100644 --- a/core/modules/system/lib/Drupal/system/Controller/ThemeController.php +++ b/core/modules/system/lib/Drupal/system/Controller/ThemeController.php @@ -2,13 +2,13 @@ /** * @file - * Contains of \Drupal\system\Controller\ThemeController. + * Contains \Drupal\system\Controller\ThemeController. */ namespace Drupal\system\Controller; use Drupal\Core\Config\ConfigFactory; -use Drupal\Core\ControllerInterface; +use Drupal\Core\Controller\ControllerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; @@ -49,16 +49,16 @@ public static function create(ContainerInterface $container) { * Disables a theme. * * @param \Symfony\Component\HttpFoundation\Request $request - * A request object containing a theme name and a valid token. + * A request object containing a theme name and a valid token. * * @return \Symfony\Component\HttpFoundation\RedirectResponse - * Redirects back to the appearance admin page. - * + * Redirects back to the appearance admin page. + * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException - * Throws access denied when no theme or token is set in the request or when - * the token is invalid. + * Throws access denied when no theme or token is set in the request or when + * the token is invalid. */ - function disable(Request $request) { + public function disable(Request $request) { $theme = $request->get('theme'); $token = $request->get('token'); @@ -91,14 +91,14 @@ function disable(Request $request) { * Enables a theme. * * @param \Symfony\Component\HttpFoundation\Request $request - * A request object containing a theme name and a valid token. + * A request object containing a theme name and a valid token. * * @return \Symfony\Component\HttpFoundation\RedirectResponse - * Redirects back to the appearance admin page. + * Redirects back to the appearance admin page. * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException - * Throws access denied when no theme or token is set in the request or when - * the token is invalid. + * Throws access denied when no theme or token is set in the request or when + * the token is invalid. */ public function enable(Request $request) { $theme = $request->get('theme'); @@ -122,4 +122,5 @@ public function enable(Request $request) { throw new AccessDeniedHttpException(); } + }