RTC PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar heelc29
heelc29
6 Oct 2024

Summary of Changes

  • move use statements out of phpcs disable area
  • fix phpcs:enable identifier

Testing Instructions

code review

avatar heelc29 heelc29 - open - 6 Oct 2024
avatar heelc29 heelc29 - change - 6 Oct 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2024
Category Administration com_content Libraries
avatar Quy Quy - test_item - 6 Oct 2024 - Tested successfully
avatar Quy
Quy - comment - 6 Oct 2024

I have tested this item ✅ successfully on 0c6ea05


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44194.

avatar richard67 richard67 - test_item - 6 Oct 2024 - Tested successfully
avatar richard67
richard67 - comment - 6 Oct 2024

I have tested this item ✅ successfully on 0c6ea05


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44194.

avatar richard67 richard67 - change - 6 Oct 2024
Status Pending Ready to Commit
Labels Added: PR-5.2-dev
avatar richard67
richard67 - comment - 6 Oct 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44194.

avatar brianteeman
brianteeman - comment - 6 Oct 2024

are we sure we even need to disable phpcs for this? There are a lot of instances where it is not disabled

eg

* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
\defined('_JEXEC') or die;
use Joomla\CMS\Dispatcher\ComponentDispatcherFactoryInterface;

avatar richard67
richard67 - comment - 6 Oct 2024

are we sure we even need to disable phpcs for this? There are a lot of instances where it is not disabled

@brianteeman It is needed when in that file a function is defined or a class. PHPCS say then that you shall not have both in the same file, a statement with side effects like the defined, and definition of a symbol.

In your example it is not needed because the function definitions are wrapped into an anonymous class.

avatar brianteeman
brianteeman - comment - 7 Oct 2024

@richard67 Thanks you for the explanation

avatar Quy Quy - change - 20 Oct 2024
Labels Added: RTC
avatar pe7er pe7er - change - 20 Oct 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-10-20 16:28:43
Closed_By pe7er
avatar pe7er pe7er - close - 20 Oct 2024
avatar pe7er pe7er - merge - 20 Oct 2024
avatar pe7er
pe7er - comment - 20 Oct 2024

Thanks @heelc29 !

Add a Comment

Login with GitHub to post a comment