Fix Drupal Coding Standard Errors

Created on 12 May 2020, about 4 years ago
Updated 20 January 2023, over 1 year ago

Problem/Motivation:

phpcs --standard=Drupal .

FILE: /broken_link/src/Entity/BrokenLinkRedirect.php
---------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------
  62 | ERROR | [x] Short array syntax must be used to define arrays
  69 | ERROR | [x] Short array syntax must be used to define arrays
  77 | ERROR | [x] Short array syntax must be used to define arrays
 101 | ERROR | [x] Short array syntax must be used to define arrays
---------------------------------------------------------------------------------------------------


FILE: /broken_link/src/Entity/BrokenLink.php
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
 125 | ERROR | Parameter tags must be grouped together in a doc comment
-------------------------------------------------------------------------------------------


FILE: /broken_link/src/EventSubscriber/BrokenLinkSubscriber.php
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 41 | ERROR | [x] Data types in @param tags need to be fully namespaced
--------------------------------------------------------------------------------------------------------------


FILE: /broken_link/src/Plugin/Action/DeleteBrokenLink.php
--------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
 48 | ERROR | [x] Data types in @param tags need to be fully namespaced
--------------------------------------------------------------------------------------------------------


FILE: /broken_link/src/Form/BrokenLinkRedirectDeleteForm.php
-----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------
 42 | ERROR | [x] Short array syntax must be used to define arrays
 43 | ERROR | [x] Short array syntax must be used to define arrays
-----------------------------------------------------------------------------------------------------------


FILE: /broken_link/src/Form/BrokenLinkDeleteForm.php
---------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------
 42 | ERROR | [x] Short array syntax must be used to define arrays
 43 | ERROR | [x] Short array syntax must be used to define arrays
 65 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
 65 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
 67 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
 68 | ERROR | [x] Line indented incorrectly; expected at least 6 spaces, found 4
---------------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India ankithashetty Karnataka, India

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.

  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Status changed to RTBC over 1 year ago
  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024