Fix the issues reported by phpcs

Created on 6 July 2023, over 2 years ago

Problem/Motivation

FILE: ...iews_filter_block/src/Plugin/Block/ConfigurableViewsExposedFilterBlock.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
125 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
318 | ERROR | [ ] Type hint "array" missing for $element
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 90ms; 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 configurable_views_filter_block/

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 Needs work over 2 years ago
  • ๐Ÿ‡ต๐Ÿ‡ญPhilippines paraderojether

    Hi

    I reviewed patch coding-standard-fixes.patch and still getting the error shown below:

    FILE: ...t/modules/contrib/configurable_views_filter_block/src/Plugin/Block/ConfigurableViewsExposedFilterBlock.php
    ----------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------
     164 | ERROR | [x] Use null coalesce operator instead of ternary operator.
    ----------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------
    
    Time: 300ms; Memory: 10MB

    Please check.
    Thank you.

  • Status changed to Needs review over 2 years ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia urvashi_vora Madhya Pradesh, India

    I have resolved that error. Please review the MR.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly apaderno Brescia, ๐Ÿ‡ฎ๐Ÿ‡น
  • Status changed to RTBC over 2 years ago
  • ๐Ÿ‡ต๐Ÿ‡ญPhilippines paraderojether

    I reviewed MR!5, applied against Configurable Views Filter Block 1.0.x-dev, and confirmed it fixes the issues reported by phpcs.

    I added screenshot for reference.
    Thank you.

  • ๐Ÿ‡ช๐Ÿ‡ธSpain manuel.adan ๐ŸŒŒ

    manuel.adan โ†’ made their first commit to this issueโ€™s fork.

  • Pipeline finished with Skipped
    5 months ago
    #498367
  • Pipeline finished with Skipped
    5 months ago
    #498368
  • Pipeline finished with Skipped
    5 months ago
    #498369
  • ๐Ÿ‡ช๐Ÿ‡ธSpain manuel.adan ๐ŸŒŒ

    Reviewed & committed, automatic tests are now green. Thanks!

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

Production build 0.71.5 2024