Fix the issues reported by phpcs

Created on 3 July 2023, over 1 year ago

Problem/Motivation

FILE: ...ww/html/vb/d_cont/disclosure_menu/src/Plugin/Block/DisclosureMenuBlock.php
--------------------------------------------------------------------------------
FOUND 14 ERRORS AND 12 WARNINGS AFFECTING 26 LINES
--------------------------------------------------------------------------------
94 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
95 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
164 | ERROR | [ ] No key specified for array entry; first entry specifies
| | key
167 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
178 | ERROR | [ ] No key specified for array entry; first entry specifies
| | key
179 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
197 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
211 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
228 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
238 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
240 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
306 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: $visible_on_all_js_enabled
317 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: $visible_on_all_js_enabled
328 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: $visible_on_all_js_enabled
339 | ERROR | [x] Space found after object operator
341 | ERROR | [x] Space found after object operator
343 | ERROR | [x] Space found after object operator
345 | ERROR | [x] Space found after object operator
347 | ERROR | [x] Space found after object operator
349 | ERROR | [x] Space found after object operator
351 | ERROR | [x] Space found after object operator
353 | ERROR | [x] Space found after object operator
355 | ERROR | [x] Space found after object operator
357 | ERROR | [x] Space found after object operator
359 | ERROR | [x] Space found after object operator
361 | ERROR | [x] Space found after object operator
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 24 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 165ms; 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 disclosure_menu/\

Remaining tasks

Patch review

📌 Task
Status

Fixed

Version

2.1

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

Comments & Activities

Production build 0.71.5 2024