Remove some unused variables

Created on 28 June 2023, over 1 year ago
Updated 19 September 2024, 2 months ago

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\freelinking\src\FreelinkingManager.php
----------------------------------------------------------------------------------------------------------------------------------------------
122 | WARNING | Unused variable $key.
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\freelinking\src\Plugin\Filter\Freelinking.php
-------------------------------------------------------------------------------------------------
177 | WARNING | Unused variable $plugin_name.
-------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\freelinking\tests\src\Functional\FreelinkingFilterTest.php
-----------------------------------------------------------------------------------------------------------------------------------------
35 | WARNING | Unused variable $root_path.
-----------------------------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Closed: outdated

Version

4.0

Component

Code

Created by

🇮🇳India arti_parmar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @arti_parmar
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    132 pass
  • 🇮🇳India arti_parmar

    Kindly review patch.

  • Status changed to RTBC over 1 year ago
  • 🇮🇳India indrapatil Bangalore

    reviewed the patch it's working So moving to RTCB

  • Status changed to Needs work 7 months ago
  • 🇺🇸United States mradcliffe USA
    +++ b/src/FreelinkingManager.php
    @@ -119,7 +119,7 @@ class FreelinkingManager extends DefaultPluginManager implements FreelinkingMana
    -    foreach ($items as $key => $item) {
    
    +++ b/src/Plugin/Filter/Freelinking.php
    @@ -174,7 +174,7 @@ EOF;
    -    foreach ($allowed_plugins as $plugin_name => $plugin_info) {
    

    I am always hesitant to use foreach without a key or index defined due to Drupalgeddon so I would prefer to keep these variables.

    I'm now using GitLab CI so patch work flow is deprecated. Setting to needs work for that and comment above.

  • 🇺🇸United States mradcliffe USA
  • Status changed to Closed: outdated 2 months ago
  • 🇺🇸United States mradcliffe USA
Production build 0.71.5 2024