From 3804cb3b69dbd3696ff86819cc8d24386396a6b3 Mon Sep 17 00:00:00 2001 From: Christian Heel <66922325+heelc29@users.noreply.github.com> Date: Sun, 20 Oct 2024 18:28:41 +0200 Subject: [PATCH] [5.2] phpcs comments / use statements (#44194) * move use statement out of phpcs disable caused by #43265 * move use statement out of phpcs disable caused by #40129 * remove blank line in phpcs disable * fix phpcs enable rule caused by #40343 --- .../components/com_content/src/Model/FeaturedModel.php | 2 +- libraries/src/Event/Application/BeforeCompileHeadEvent.php | 1 - libraries/src/Extension/Service/Provider/MVCFactory.php | 2 +- libraries/src/Table/Ucm.php | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/administrator/components/com_content/src/Model/FeaturedModel.php b/administrator/components/com_content/src/Model/FeaturedModel.php index 2f9893f99a4f1..a91926785134c 100644 --- a/administrator/components/com_content/src/Model/FeaturedModel.php +++ b/administrator/components/com_content/src/Model/FeaturedModel.php @@ -10,9 +10,9 @@ namespace Joomla\Component\Content\Administrator\Model; -// phpcs:disable PSR1.Files.SideEffects use Joomla\Database\QueryInterface; +// phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects diff --git a/libraries/src/Event/Application/BeforeCompileHeadEvent.php b/libraries/src/Event/Application/BeforeCompileHeadEvent.php index 87a019dfaa1a9..b9e5a211353f3 100644 --- a/libraries/src/Event/Application/BeforeCompileHeadEvent.php +++ b/libraries/src/Event/Application/BeforeCompileHeadEvent.php @@ -10,7 +10,6 @@ namespace Joomla\CMS\Event\Application; // phpcs:disable PSR1.Files.SideEffects - \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects diff --git a/libraries/src/Extension/Service/Provider/MVCFactory.php b/libraries/src/Extension/Service/Provider/MVCFactory.php index 7eb07ef7b8f03..171cb665c3790 100644 --- a/libraries/src/Extension/Service/Provider/MVCFactory.php +++ b/libraries/src/Extension/Service/Provider/MVCFactory.php @@ -23,7 +23,7 @@ // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; -// phpcs:e_JEXECes.SideEffects +// phpcs:enable PSR1.Files.SideEffects /** * Service provider for the service MVC factory. diff --git a/libraries/src/Table/Ucm.php b/libraries/src/Table/Ucm.php index 2018e587d9a58..c6fd09ec75445 100644 --- a/libraries/src/Table/Ucm.php +++ b/libraries/src/Table/Ucm.php @@ -9,10 +9,10 @@ namespace Joomla\CMS\Table; -// phpcs:disable PSR1.Files.SideEffects use Joomla\Database\DatabaseDriver; use Joomla\Event\DispatcherInterface; +// phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects