Created on 26 April 2024, 7 months ago
Updated 24 May 2024, 6 months ago

PHPCS reports issues. They should be fixed

๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands batigolix Utrecht

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @batigolix
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia mohd sahzad

    Mohd Sahzad โ†’ made their first commit to this issueโ€™s fork.

  • Assigned to mohd sahzad
  • Merge request !8fixed phpcs issues โ†’ (Merged) created by mohd sahzad
  • Issue was unassigned.
  • Status changed to Needs review 7 months ago
  • Status changed to Needs work 7 months ago
  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands batigolix Utrecht

    Tis is looking good, but

    Maybe we use different PHPCS settings so I still get warnings:

    FILE: /var/www/html/web/modules/contrib/webform_analysis/src/Form/WebformAnalysisForm.php
    -----------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------
    122 | ERROR | [x] Use null coalesce operator instead of ternary operator.
    -----------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/webform_analysis/src/WebformAnalysisInterface.php
    -----------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------
    5 | WARNING | [x] Unused use statement
    138 | ERROR | [x] Data types in @return tags need to be fully namespaced
    154 | ERROR | [x] Data types in @return tags need to be fully namespaced
    -----------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/webform_analysis/src/WebformAnalysis.php
    --------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    --------------------------------------------------------------------------------
    55 | ERROR | [x] list(...) is forbidden, use [...] instead.
    161 | ERROR | [x] Use null coalesce operator instead of ternary operator.
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------

  • Status changed to Needs review 7 months ago
  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands batigolix Utrecht
  • Status changed to RTBC 7 months ago
  • ๐Ÿ‡ต๐Ÿ‡ญPhilippines clarkssquared

    Hi

    I applied MR !8 and tested the PHPCS and I confirmed that it fixes the PHPCS issues

    โžœ  webform_analysis git:(b254416) curl https://git.drupalcode.org/project/webform_analysis/-/merge_requests/8.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  6078    0  6078    0     0  11687      0 --:--:-- --:--:-- --:--:-- 11801
    patching file 'modules/webform_node_analysis/src/EntityTypeInfo.php'
    patching file 'modules/webform_node_analysis/src/Plugin/Derivative/WebformNodeAnalysisLocalTask.php'
    patching file 'src/Form/WebformAnalysisForm.php'
    patching file 'src/Plugin/Block/WebformAnalysisBlock.php'
    patching file 'src/WebformAnalysis.php'
    patching file 'src/WebformAnalysisInterface.php'
    โžœ  webform_analysis git:(b254416) โœ— ..
    โžœ  contrib git:(master) โœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml webform_analysis 
    โžœ  contrib git:(master) โœ— 
  • Pipeline finished with Skipped
    7 months ago
    #170078
  • Status changed to Fixed 7 months ago
  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands batigolix Utrecht

    (y)

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024