Fix the issues reported by phpcs

Created on 10 July 2023, over 1 year ago
Updated 23 June 2024, 6 months ago

Problem/Motivation

FILE: /var/www/html/vb/d_cont/disable_web_install/disable_web_install.module
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
9 | ERROR | [x] Hook implementations must be documented with "Implements
| | hook_example()."
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 49ms; Memory: 10MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig disable_web_install/

Remaining tasks

Patch review

๐Ÿ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia urvashi_vora Madhya Pradesh, India

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @urvashi_vora
  • Status changed to RTBC about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Ashutosh Ahirwal India

    Provided patch get applied cleanly.
    Moving to RTBC.

  • Status changed to Needs work about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chetan 11

    ./vendor/bin/phpcbf --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig,js /home/valuelabs/projects/newone/web/modules/project/disable_web_install

    PHPCBF RESULT SUMMARY
    -----------------------------------------------------------------------------------------------------------------------
    FILE FIXED REMAINING
    -----------------------------------------------------------------------------------------------------------------------
    /home/valuelabs/projects/newone/web/modules/project/disable_web_install/disable_web_install.module FAILED TO FIX
    -----------------------------------------------------------------------------------------------------------------------
    A TOTAL OF 0 ERRORS WERE FIXED IN 1 FILE
    -----------------------------------------------------------------------------------------------------------------------
    PHPCBF FAILED TO FIX 1 FILE

    Above error is not fixed with cbf commandd.

  • Status changed to Needs review about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia dev16.addweb

    silvi.addweb โ†’ made their first commit to this issueโ€™s fork.

  • Merge request !4resolve phpcs issue โ†’ (Open) created by Unnamed author
  • ๐Ÿ‡ต๐Ÿ‡ญPhilippines clarkssquared

    Hi

    I applied the MR !4 and I confirmed that it fixes the PHPCS issues in the module,

    โžœ  disable_web_install git:(main) โœ— curl https://git.drupalcode.org/project/disable_web_install/-/merge_requests/4.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   574    0   574    0     0   1077      0 --:--:-- --:--:-- --:--:--  1099
    patching file disable_web_install.module
    โžœ  disable_web_install git:(main) โœ— ..
    โžœ  contrib git:(main) โœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml disable_web_install  
    
    FILE: ...local/web/modules/contrib/disable_web_install/disable_web_install.info.yml
    --------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
    --------------------------------------------------------------------------------
     1 | WARNING | Remove "project" from the info file, it will be added by
       |         | drupal.org packaging automatically
     1 | WARNING | Remove "datestamp" from the info file, it will be added by
       |         | drupal.org packaging automatically
     1 | WARNING | Remove "version" from the info file, it will be added by
       |         | drupal.org packaging automatically
    --------------------------------------------------------------------------------
    
    Time: 123ms; Memory: 10MB
    
    โžœ  contrib git:(main) โœ— 

    The warning that my terminal reported occurs when a module is installed via composer.

    RTBC +1 from me

Production build 0.71.5 2024