diff --git a/core/modules/config/lib/Drupal/config/Controller/ConfigController.php b/core/modules/config/lib/Drupal/config/Controller/ConfigController.php index 5f4e8e2..3f54d0a 100644 --- a/core/modules/config/lib/Drupal/config/Controller/ConfigController.php +++ b/core/modules/config/lib/Drupal/config/Controller/ConfigController.php @@ -47,7 +47,11 @@ class ConfigController implements ControllerInterface { * {@inheritdoc} */ public static function create(ContainerInterface $container) { - return new static($container->get('config.storage'), $container->get('config.storage.staging'), $container->get('module_handler')); + return new static( + $container->get('config.storage'), + $container->get('config.storage.staging'), + $container->get('module_handler') + ); } /** diff --git a/core/modules/image/lib/Drupal/image/Controller/ImageStyleController.php b/core/modules/image/lib/Drupal/image/Controller/ImageStyleController.php index 252633b..752dbaf 100644 --- a/core/modules/image/lib/Drupal/image/Controller/ImageStyleController.php +++ b/core/modules/image/lib/Drupal/image/Controller/ImageStyleController.php @@ -81,12 +81,13 @@ public static function create(ContainerInterface $container) { * The request object. * @param string $scheme * The file scheme, defaults to 'private'. - * @param $image_style + * @param string $image_style * The image style to deliver. * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException * - * @return BinaryFileResponse|Response + * @return \Symfony\Component\HttpFoundation\BinaryFileResponse|\Symfony\Component\HttpFoundation\Response + * The transferred file as response or some error response. */ public function deliver(Request $request, $scheme, $image_style) { $target = $request->query->get('file'); diff --git a/core/modules/image/lib/Drupal/image/EventSubscriber/RouteSubscriber.php b/core/modules/image/lib/Drupal/image/EventSubscriber/RouteSubscriber.php index 17e460f..c0dde68 100644 --- a/core/modules/image/lib/Drupal/image/EventSubscriber/RouteSubscriber.php +++ b/core/modules/image/lib/Drupal/image/EventSubscriber/RouteSubscriber.php @@ -26,13 +26,15 @@ public static function getSubscribedEvents() { } /** - * Register dynamic routes for image styles. + * Registers dynamic routes for image styles. * - * Generate image derivatives of publicly available files. - * If clean URLs are disabled, image derivatives will always be served - * through the menu system. - * If clean URLs are enabled and the image derivative already exists, - * PHP will be bypassed. + * Generate image derivatives of publicly available files. If clean URLs are + * disabled, image derivatives will always be served through the menu system. + * If clean URLs are enabled and the image derivative already exists, PHP will + * be bypassed. + * + * @param \Drupal\Core\Routing\RouteBuildEvent $event + * The route building event. */ public function dynamicRoutes(RouteBuildEvent $event) { $collection = $event->getRouteCollection(); diff --git a/core/modules/system/lib/Drupal/system/FileController.php b/core/modules/system/lib/Drupal/system/FileController.php index c516ac6..d60e459 100644 --- a/core/modules/system/lib/Drupal/system/FileController.php +++ b/core/modules/system/lib/Drupal/system/FileController.php @@ -42,7 +42,9 @@ public function __construct(ModuleHandlerInterface $module_handler) { * {@inheritdoc} */ public static function create(ContainerInterface $container) { - return new static($container->get('module_handler')); + return new static( + $container->get('module_handler') + ); } /** @@ -65,7 +67,7 @@ public static function create(ContainerInterface $container) { * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException * Thrown when the requested file does not exist. * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException - * Thrown when the + * Thrown when the user does not have access to the file. * * @return \Symfony\Component\HttpFoundation\BinaryFileResponse * The transferred file as response. diff --git a/core/modules/system/lib/Drupal/system/PathProcessor/PathProcessorFiles.php b/core/modules/system/lib/Drupal/system/PathProcessor/PathProcessorFiles.php index a7baa41..bd1ee07 100644 --- a/core/modules/system/lib/Drupal/system/PathProcessor/PathProcessorFiles.php +++ b/core/modules/system/lib/Drupal/system/PathProcessor/PathProcessorFiles.php @@ -10,6 +10,9 @@ use Drupal\Core\PathProcessor\InboundPathProcessorInterface; use Symfony\Component\HttpFoundation\Request; +/** + * Defines a path processor to rewrite file URLs. + */ class PathProcessorFiles implements InboundPathProcessorInterface { /**