Problem/Motivation
/web/modules/contrib/keycloak/src/Plugin/OpenIDConnectClient/Keycloak.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------
474 | ERROR | [x] Expected 1 space before opening brace; found 2
638 | ERROR | [x] Expected newline after closing brace
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
/web/modules/contrib/keycloak/src/EventSubscriber/KeycloakRequestSubscriber.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
39 | ERROR | [x] Expected "\Drupal\openid_connect\OpenIDConnectStateToken" but found "\Drupal\openid_connect\OpenIDConnectStateToken;" for
| | @var tag in member variable comment
161 | ERROR | [ ] The array declaration extends to column 83 (the limit is 80). The array content should be split up over multiple lines
Steps to reproduce
vendor/bin/phpcs --standard="Drupal,DrupalPractice" -n --extensions="php,module,inc,install,test,profile,theme,yml" web/modules/contrib/keycloak/
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Fixtheissuesreportedbyphpcs-3359028-2.patch | 1.86 KB | nishant |
| #10 | Screenshot from 2023-05-09 17-27-59.png | 58.95 KB | shiv_sharma |
Issue fork keycloak-3359028
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 #2
nishantCreated patch, Please review.
Comment #5
nishantComment #6
shiv_sharma commented@nishant reviewed the code but seems the is indentation issue
It should be look like this.
Comment #7
nishantThanks @Shiv_Sharma.
I have updated MR.
Comment #8
nishantComment #9
avpadernoComment #10
shiv_sharma commented@nishant seems no new error from PHPCS.
attached screenshot for reference
Comment #11
bramdriesenNormally I don't give credit for such automated fix, but I assume that this is a "intro to contributing" kind of thing, and since the review actually was a proper review, I'll give credit this time.
Comment #13
bramdriesenComment #14
nishantThanks @BramDriesen
Comment #15
nishantComment #16
avpadernoComment #17
bramdriesenGiving credit to @apaderno as well for keeping issues in their correct state 😉