phpcs --standard=DrupalPractice unused variable

Created on 28 June 2022, about 2 years ago
Updated 11 August 2023, 11 months ago

FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\omdb_api\src\Entity\Controller\OmdbApiEntityController.php
------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
307 | WARNING | Unused variable $css.
------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Needs review

Component

Code

Created by

🇮🇳India Harsh panchal

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • hello, @urvashi_vora I have review your merge request.

    These are the steps I followed:

    1. Took clone from git version 1.x in drupal 10.1.x

    2. Ran this command:

    ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/contrib/omdb_api/

    Found errors.

    3. I ran phpcbf and it fixed the issue.

    ./vendor/bin/phpcbf --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/contrib/omdb_api/

    4. Again ran the phpcs command and found no errors.

    Please Review.

Production build 0.69.0 2024