From dbe9044bc2682f7bfb6a347f67f2d792953f8ab7 Mon Sep 17 00:00:00 2001 From: Scott Joudry <sj@slydevil.com> Date: Wed, 12 Apr 2023 12:51:16 -0300 Subject: [PATCH] Issue #3339543 by ptmkenny: Fix coding standards --- CHANGELOG.md | 3 ++- src/EventSubscriber/MinifyHTMLExit.php | 2 +- tests/modules/minifyhtml_test/src/Controller/Cases.php | 2 +- tests/src/Functional/ResponseTest.php | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cee5f9..cd1b793 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,7 +54,8 @@ Changes since 8.x-1.2: Changes since 8.x-1.1: - Issue #2973794 - system.performance:minifyhtml missing schema -- Issue #3000443 - Only use minified HTML if there was not a preg_replace() error +- Issue #3000443 - Only use minified HTML if there was not a preg_replace() +error ## Minifyhtml 8.x-1.1, 2017-08-18 diff --git a/src/EventSubscriber/MinifyHTMLExit.php b/src/EventSubscriber/MinifyHTMLExit.php index 4296ec9..f09d740 100644 --- a/src/EventSubscriber/MinifyHTMLExit.php +++ b/src/EventSubscriber/MinifyHTMLExit.php @@ -107,7 +107,7 @@ class MinifyHTMLExit implements EventSubscriberInterface { /** * Minifies the HTML. * - * @param \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event + * @param \Symfony\Component\HttpKernel\Event\ResponseEvent $event * Response event object. */ public function response(ResponseEvent $event) { diff --git a/tests/modules/minifyhtml_test/src/Controller/Cases.php b/tests/modules/minifyhtml_test/src/Controller/Cases.php index ecc675b..b9296df 100644 --- a/tests/modules/minifyhtml_test/src/Controller/Cases.php +++ b/tests/modules/minifyhtml_test/src/Controller/Cases.php @@ -6,7 +6,7 @@ use Drupal\Core\Controller\ControllerBase; use Drupal\Core\Render\HtmlResponse; /** - * Class Cases. + * Provides test cases for minifyhtml module. * * @package Drupal\minifyhtml_test\Controller */ diff --git a/tests/src/Functional/ResponseTest.php b/tests/src/Functional/ResponseTest.php index 6c4c8eb..faad3c6 100644 --- a/tests/src/Functional/ResponseTest.php +++ b/tests/src/Functional/ResponseTest.php @@ -6,7 +6,7 @@ use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; /** - * Class ResponseTest. + * Tests the response to ensure HTML is minified. * * @package Drupal\Tests\minifyhtml\Kernel * -- GitLab