Unused variables

Created on 30 May 2023, almost 2 years ago
Updated 31 May 2023, almost 2 years ago

Problem/Motivation

Remove all Unused variables

Steps to reproduce

Run the command:

phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/simple_proxy/

Proposed resolution

Fix the following coding standards issues and upload the patch

FILE: C:\xampp\htdocs\drupal_9\web\modules\contrib\simple_proxy\src\Commands\SimpleProxyCommands.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
106 | WARNING | Unused variable $uri.
----------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\modules\contrib\simple_proxy\src\Plugin\StreamHandler\PrivateStreamHandler.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
81 | WARNING | Unused variable $request_path_info.
-----------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\modules\contrib\simple_proxy\src\Plugin\StreamHandler\PublicStreamHandler.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
79 | WARNING | Unused variable $request_path_info.
----------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\modules\contrib\simple_proxy\src\Plugin\StreamHandlerPluginBase.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
174 | WARNING | There must be no blank line following an inline comment
------------------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

1.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

Production build 0.71.5 2024