Fix the issues reported by phpcs

Created on 13 April 2023, about 1 year ago
Updated 20 April 2023, about 1 year ago

Problem/Motivation

FILE: /ixm_blocks/modules/ixm_blocks_hero/css/hero.css
---------------------------------------------------------------------------------------------------
FOUND 113 ERRORS AFFECTING 93 LINES
---------------------------------------------------------------------------------------------------
   2 | ERROR | [x] Closing brace of class definition must be on new line
   3 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
   4 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   5 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
   5 | ERROR | [x] Closing brace of class definition must be on new line
   6 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
   7 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
   8 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   9 | ERROR | [x] Closing brace of class definition must be on new line
  10 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  10 | ERROR | [x] Multiple selectors should each be on a single line
  11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  16 | ERROR | [x] Closing brace of class definition must be on new line
  17 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  21 | ERROR | [x] Closing brace of class definition must be on new line
  22 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  26 | ERROR | [x] Closing brace of class definition must be on new line
  34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
  34 | ERROR | [x] Closing brace of class definition must be on new line
  37 | ERROR | [x] Closing brace of class definition must be on new line
  38 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  39 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  42 | ERROR | [x] Closing brace of class definition must be on new line
  43 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4
  44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
  45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
  46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  46 | ERROR | [x] Closing brace of class definition must be on new line
  47 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4
  48 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4
  49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
  49 | ERROR | [x] Closing brace of class definition must be on new line
  50 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  51 | ERROR | [x] Closing brace of class definition must be on new line
  52 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  53 | ERROR | [x] Closing brace of class definition must be on new line
  54 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  55 | ERROR | [x] Closing brace of class definition must be on new line
  56 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  57 | ERROR | [x] Closing brace of class definition must be on new line
  73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
  74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
  76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
  77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
  79 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
  80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
  81 | ERROR | [x] Closing brace of class definition must be on new line
  82 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  83 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  84 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  84 | ERROR | [x] Closing brace of class definition must be on new line
  85 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  86 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  87 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  89 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  90 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  90 | ERROR | [x] Closing brace of class definition must be on new line
  91 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  92 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  93 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  94 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  95 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  96 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  97 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  98 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 100 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 101 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12
 101 | ERROR | [x] Closing brace of class definition must be on new line
 102 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4
 103 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 105 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 106 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 108 | ERROR | [x] Closing brace of class definition must be on new line
 109 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4
 110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 112 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 113 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 114 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 115 | ERROR | [x] Closing brace of class definition must be on new line
 122 | ERROR | [x] Closing brace of class definition must be on new line
 123 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 124 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 125 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 125 | ERROR | [x] Closing brace of class definition must be on new line
 127 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 113 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_hero/ixm_blocks_hero.libraries.yml
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
 24 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_hero/ixm_blocks_hero.module
-------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_accordion/ixm_blocks_accordion.module
-----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_carousel/ixm_blocks_carousel.info.yml
-----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
 11 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_carousel/ixm_blocks_carousel.module
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_cta_icons/ixm_blocks_cta_icons.module
-----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_table/ixm_blocks_table.module
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_table/ixm_blocks_table.libraries.yml
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
 13 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_cards/ixm_blocks_cards.module
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_cards/README.md
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------
 1 | WARNING | [ ] Line exceeds 80 characters; contains 243 characters
 2 | WARNING | [ ] Line exceeds 80 characters; contains 328 characters
 2 | ERROR   | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_ping_pong/ixm_blocks_ping_pong.module
-----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_modal/ixm_blocks_modal.module
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_modal/ixm_blocks_modal.info.yml
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 8 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_tabs/ixm_blocks_tabs.module
-------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_statistics/ixm_blocks_statistics.info.yml
---------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------
 12 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_statistics/ixm_blocks_statistics.libraries.yml
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
 10 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/ixm_blocks_statistics/ixm_blocks_statistics.module
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/modules/boilerplate/boilerplate.module
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [ ] All functions defined in a module file must be prefixed with the module's name, found "ixm_blocks_boilerplate_theme" but
    |         |     expected "boilerplate_ixm_blocks_boilerplate_theme"
  8 | ERROR   | [x] Missing function doc comment
 13 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /ixm_blocks/README.md
------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
------------------------------------------------------------------------
  3 | WARNING | Line exceeds 80 characters; contains 156 characters
  6 | WARNING | Line exceeds 80 characters; contains 99 characters
  7 | WARNING | Line exceeds 80 characters; contains 158 characters
 32 | WARNING | Line exceeds 80 characters; contains 124 characters
 38 | WARNING | Line exceeds 80 characters; contains 175 characters
------------------------------------------------------------------------

Steps to reproduce

phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml ixm_blocks

Proposed resolution

Fix the errors and warnings.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Binoli Lalani Gujarat

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

Comments & Activities

Production build 0.69.0 2024