Fix the issues reported by phpcs

Created on 22 June 2017, about 7 years ago
Updated 28 March 2023, about 1 year ago

There are some coding standard issues in module.

Problem/Motivation

FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/css/fix.css
----------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
----------------------------------------------------------------------------------------------------
 2 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 3 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 4 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 5 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 6 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 7 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/advanced_shortcodes.module
--------------------------------------------------------------------------
FOUND 84 ERRORS AFFECTING 26 LINES
--------------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
 24 | ERROR | [x] Short array syntax must be used to define arrays
 25 | ERROR | [x] Short array syntax must be used to define arrays
 26 | ERROR | [x] Short array syntax must be used to define arrays
 28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 28 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
 28 | ERROR | [x] Short array syntax must be used to define arrays
 29 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
 29 | ERROR | [x] Short array syntax must be used to define arrays
 29 | ERROR | [ ] The array declaration extends to column 103 (the limit is 80). The array content should be split up over multiple lines
 29 | ERROR | [x] Expected one space after the comma, 0 found
 30 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 4
 31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 31 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
 31 | ERROR | [x] Short array syntax must be used to define arrays
 32 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
 32 | ERROR | [x] Short array syntax must be used to define arrays
 32 | ERROR | [x] Expected one space after the comma, 0 found
 32 | ERROR | [x] Expected 1 space between "'text'" and double arrow; 0 found
 32 | ERROR | [x] Expected 1 space before "=>"; 0 found
 33 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 4
 34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 34 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
 34 | ERROR | [x] Short array syntax must be used to define arrays
 35 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
 35 | ERROR | [x] Short array syntax must be used to define arrays
 35 | ERROR | [x] Expected one space after the comma, 0 found
 35 | ERROR | [x] Expected 1 space between "'value'" and double arrow; 0 found
 35 | ERROR | [x] Expected 1 space before "=>"; 0 found
 36 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 4
 37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 37 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
 37 | ERROR | [x] Short array syntax must be used to define arrays
 38 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
 38 | ERROR | [x] Short array syntax must be used to define arrays
 38 | ERROR | [x] Expected one space after the comma, 0 found
 38 | ERROR | [x] Expected 1 space between "'type'" and double arrow; 0 found
 38 | ERROR | [x] Expected 1 space before "=>"; 0 found
 38 | ERROR | [x] Expected one space after the comma, 0 found
 38 | ERROR | [x] Expected 1 space between "'message'" and double arrow; 0 found
 38 | ERROR | [x] Expected 1 space before "=>"; 0 found
 39 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 4
 40 | ERROR | [x] Short array syntax must be used to define arrays
 41 | ERROR | [x] Short array syntax must be used to define arrays
 41 | ERROR | [x] Expected 1 space between "'text'" and double arrow; 0 found
 41 | ERROR | [x] Expected 1 space before "=>"; 0 found
 43 | ERROR | [x] Short array syntax must be used to define arrays
 44 | ERROR | [x] Short array syntax must be used to define arrays
 44 | ERROR | [x] Expected one space after the comma, 0 found
 44 | ERROR | [x] Expected 1 space between "'title'" and double arrow; 0 found
 44 | ERROR | [x] Expected 1 space before "=>"; 0 found
 44 | ERROR | [x] Expected one space after the comma, 0 found
 44 | ERROR | [x] Expected 1 space between "'text'" and double arrow; 0 found
 44 | ERROR | [x] Expected 1 space before "=>"; 0 found
 46 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 46 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
 46 | ERROR | [x] Short array syntax must be used to define arrays
 47 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
 47 | ERROR | [x] Short array syntax must be used to define arrays
 47 | ERROR | [x] Expected one space after the comma, 0 found
 47 | ERROR | [x] Expected 1 space between "'text'" and double arrow; 0 found
 47 | ERROR | [x] Expected 1 space before "=>"; 0 found
 48 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 4
 49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 49 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
 49 | ERROR | [x] Short array syntax must be used to define arrays
 50 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
 50 | ERROR | [x] Short array syntax must be used to define arrays
 50 | ERROR | [ ] The array declaration extends to column 102 (the limit is 80). The array content should be split up over multiple lines
 50 | ERROR | [x] Expected one space after the comma, 0 found
 50 | ERROR | [x] Expected 1 space between "'text'" and double arrow; 0 found
 50 | ERROR | [x] Expected 1 space before "=>"; 0 found
 50 | ERROR | [x] Expected one space after the comma, 0 found
 50 | ERROR | [x] Expected 1 space between "'id'" and double arrow; 0 found
 50 | ERROR | [x] Expected 1 space between double arrow and "NULL"; 0 found
 50 | ERROR | [x] Expected 1 space before "=>"; 0 found
 50 | ERROR | [x] Expected 1 space after "=>"; 0 found
 50 | ERROR | [x] Expected one space after the comma, 0 found
 50 | ERROR | [x] Expected 1 space between "'icon'" and double arrow; 0 found
 50 | ERROR | [x] Expected 1 space before "=>"; 0 found
 50 | ERROR | [x] Expected one space after the comma, 0 found
 50 | ERROR | [x] Expected 1 space between "'title'" and double arrow; 0 found
 50 | ERROR | [x] Expected 1 space before "=>"; 0 found
 51 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 4
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 82 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/advanced_shortcodes.info.yml
---------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
---------------------------------------------------------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/README.txt
---------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 19 WARNINGS AFFECTING 19 LINES
---------------------------------------------------------------------------------------------------
  1 | WARNING | [ ] File has mixed line endings; this may cause incorrect results
  1 | WARNING | [ ] File encoding is invalid, expected UTF-8
  1 | ERROR   | [ ] File contains UTF-16 (LE) byte order mark, which may corrupt your application
  3 | WARNING | [ ] Line exceeds 80 characters; contains 112 characters
  5 | WARNING | [ ] Line exceeds 80 characters; contains 158 characters
  6 | WARNING | [ ] Line exceeds 80 characters; contains 156 characters
  7 | WARNING | [ ] Line exceeds 80 characters; contains 154 characters
  8 | WARNING | [ ] Line exceeds 80 characters; contains 158 characters
  9 | WARNING | [ ] Line exceeds 80 characters; contains 150 characters
 10 | WARNING | [ ] Line exceeds 80 characters; contains 152 characters
 12 | WARNING | [ ] Line exceeds 80 characters; contains 150 characters
 13 | WARNING | [ ] Line exceeds 80 characters; contains 148 characters
 14 | WARNING | [ ] Line exceeds 80 characters; contains 154 characters
 15 | WARNING | [ ] Line exceeds 80 characters; contains 154 characters
 16 | WARNING | [ ] Line exceeds 80 characters; contains 156 characters
 17 | WARNING | [ ] Line exceeds 80 characters; contains 150 characters
 18 | WARNING | [ ] Line exceeds 80 characters; contains 160 characters
 25 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
 30 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
 31 | WARNING | [ ] Line exceeds 80 characters; contains 148 characters
 37 | ERROR   | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/src/Plugin/Shortcode/AlertsShortcode.php
----------------------------------------------------------------------
FOUND 15 ERRORS AND 1 WARNING AFFECTING 11 LINES
----------------------------------------------------------------------
  8 | ERROR   | [ ] Missing short description in doc comment
 21 | ERROR   | [x] Whitespace found at end of line
 22 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 22 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 3
 23 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 24 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 25 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 25 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 26 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 26 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 26 | ERROR   | [x] Expected 1 space after "=>"; 0 found
 26 | WARNING | [x] A comma should follow the last multiline array item. Found: $text
 27 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 30 | ERROR   | [x] Whitespace found at end of line
 31 | ERROR   | [x] Missing function doc comment
 32 | ERROR   | [x] Short array syntax must be used to define arrays
----------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/src/Plugin/Shortcode/AccordionsShortcode.php
---------------------------------------------------------------------
FOUND 15 ERRORS AND 1 WARNING AFFECTING 11 LINES
---------------------------------------------------------------------
  3 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
 29 | WARNING | [ ] Line exceeds 80 characters; contains 127 characters
 30 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 30 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 3
 30 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
 31 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 31 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 3
 33 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 33 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 3
 34 | ERROR   | [x] Array indentation error, expected 5 spaces but found 6
 35 | ERROR   | [x] Array indentation error, expected 5 spaces but found 6
 36 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 36 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 37 | ERROR   | [x] Array closing indentation error, expected 3 spaces but found 4
 41 | ERROR   | [x] Missing function doc comment
 42 | ERROR   | [x] Short array syntax must be used to define arrays
---------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/src/Plugin/Shortcode/IconShortcode.php
--------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 10 LINES
--------------------------------------------------------------------
  8 | ERROR | [ ] Missing short description in doc comment
 19 | ERROR | [x] There must be no blank lines after the function comment
 22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 22 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
 23 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
 24 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
 25 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
 26 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 4
 29 | ERROR | [x] Expected 1 blank line after function; 0 found
 30 | ERROR | [x] Missing function doc comment
 31 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/src/Plugin/Shortcode/ColumnShortcode.php
----------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 8 LINES
----------------------------------------------------------------------
  8 | ERROR | [ ] Missing short description in doc comment
 30 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
 58 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 58 | ERROR | [x] Missing function doc comment
 59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 59 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
 59 | ERROR | [x] Short array syntax must be used to define arrays
 60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
 61 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
 62 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 62 | ERROR | [x] Expected 1 blank line after function; 0 found
 63 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/src/Plugin/Shortcode/AccordionShortcode.php
--------------------------------------------------------------------
FOUND 30 ERRORS AND 1 WARNING AFFECTING 16 LINES
--------------------------------------------------------------------
  3 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
 20 | ERROR   | [x] Doc comment star missing
 30 | ERROR   | [x] Expected 1 space before "?"; 2 found
 31 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 31 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 3
 31 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
 32 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 32 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 3
 32 | ERROR   | [x] Expected 1 space after ".="; 0 found
 33 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 33 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 3
 34 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 34 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 3
 37 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 37 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 38 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 38 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 38 | ERROR   | [x] Expected 1 space after "=>"; 2 found
 39 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 39 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 39 | ERROR   | [x] Expected 1 space after "=>"; 2 found
 40 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 40 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 40 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 43 | ERROR   | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 45 | ERROR   | [x] Expected 1 blank line after function; 0 found
 46 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 46 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 1
 46 | ERROR   | [x] Missing function doc comment
 47 | ERROR   | [x] Short array syntax must be used to define arrays
 50 | ERROR   | [x] Closing brace indented incorrectly; expected 1 spaces, found 2
--------------------------------------------------------------------
PHPCBF CAN FIX THE 31 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/src/Plugin/Shortcode/JumbotronShortcode.php
--------------------------------------------------------------------
FOUND 18 ERRORS AND 1 WARNING AFFECTING 13 LINES
--------------------------------------------------------------------
  8 | ERROR   | [ ] Missing short description in doc comment
 21 | ERROR   | [x] Whitespace found at end of line
 22 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 22 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 3
 23 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 24 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 25 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 25 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 26 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 26 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 26 | ERROR   | [x] Expected 1 space after "=>"; 0 found
 26 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 26 | ERROR   | [x] Whitespace found at end of line
 27 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 30 | ERROR   | [x] Whitespace found at end of line
 31 | ERROR   | [x] Missing function doc comment
 32 | ERROR   | [x] Short array syntax must be used to define arrays
 35 | ERROR   | [x] Expected 1 blank line after function; 0 found
 36 | ERROR   | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/src/Plugin/Shortcode/HrShortcode.php
-------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 8 LINES
-------------------------------------------------------------------
  8 | ERROR   | [ ] Missing short description in doc comment
 19 | ERROR   | [x] There must be no blank lines after the function comment
 20 | ERROR   | [x] Whitespace found at end of line
 22 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 22 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 3
 24 | WARNING | [x] A comma should follow the last multiline array item. Found: $attributes
 28 | ERROR   | [x] Expected 1 blank line after function; 0 found
 29 | ERROR   | [x] Missing function doc comment
 30 | ERROR   | [x] Short array syntax must be used to define arrays
-------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/src/Plugin/Shortcode/RowShortcode.php
-------------------------------------------------------------------
FOUND 15 ERRORS AND 1 WARNING AFFECTING 8 LINES
-------------------------------------------------------------------
 28 | WARNING | [x] A comma should follow the last multiline array item. Found: $text
 31 | ERROR   | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 35 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 35 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 1
 35 | ERROR   | [x] Missing function doc comment
 36 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 36 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 36 | ERROR   | [x] Short array syntax must be used to define arrays
 37 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 37 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 38 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 38 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 39 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 39 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 1
 39 | ERROR   | [x] Expected 1 blank line after function; 0 found
 40 | ERROR   | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/advanced_shortcodes/src/Plugin/Shortcode/ProgressShortcode.php
-------------------------------------------------------------------
FOUND 15 ERRORS AND 1 WARNING AFFECTING 12 LINES
-------------------------------------------------------------------
  8 | ERROR   | [ ] Missing short description in doc comment
 21 | ERROR   | [x] Whitespace found at end of line
 23 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 23 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 24 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 25 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 26 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 26 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 26 | WARNING | [x] A comma should follow the last multiline array item. Found: $percent
 26 | ERROR   | [x] Whitespace found at end of line
 27 | ERROR   | [x] Spaces must be used to indent lines; tabs are not allowed
 29 | ERROR   | [x] Expected 1 blank line after function; 0 found
 30 | ERROR   | [x] Missing function doc comment
 31 | ERROR   | [x] Short array syntax must be used to define arrays
 34 | ERROR   | [x] Expected 1 blank line after function; 0 found
 35 | ERROR   | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------

Time: 116ms; Memory: 10MB

Steps to reproduce

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

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India jayesh.makwana

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

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024