Fix the issues reported by phpcs

Created on 9 May 2023, over 1 year ago

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/

📌 Task
Status

Fixed

Version

2.2

Component

Code

Created by

🇮🇳India Nishant

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