Problem/Motivation
FILE: ~/projects/drupal-d10/modules/contrib/m4032404/src/Form/M4032404Form.php
---------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------
12 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
28 | ERROR | [x] Short array syntax must be used to define arrays
35 | ERROR | [x] Short array syntax must be used to define arrays
---------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------
FILE: ~/projects/drupal-d10/modules/contrib/m4032404/src/EventSubscriber/M4032404EventSubscriber.php
-----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------
80 | ERROR | [x] Short array syntax must be used to define arrays
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------
Time: 105ms; Memory: 10MBSteps to reproduce
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml m4032404
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork m4032404-3350559
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rassoni commentedFixed Coding standard and created MR. Please review.
Comment #4
rassoni commentedComment #5
avpadernoThe description should be improved, since it is not clear what the m4032404 form should be.
Comment #6
rassoni commentedThanks @apaderno, Addressed #5 feedback. Please review
Comment #7
a.aaronjake commentedHi @Rassoni,
The changes you made on MR!2 can be applied successfully, but there are still errors reported. Please see below:
Please check
Thanks,
Jake
Comment #8
avpadernoThere are still PHP_CodeSniffer errors to fix.
Comment #9
avpadernoComment #10
jeroentComment #13
elc commented