This PR addresses the PHPCS issues which were present in the code after the updation to WordPress 6.6. Following the coding standards followed in the organization, this PR also adds exception for a PHPCS sniff for the usage of shorthand array syntax.
Technical Details
Updated phcps.xml to exclude the sniff Universal.Arrays.DisallowShortArraySyntax.Found
Resolved the error PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose from the following two files:
inc/traits/trait-singleton.php
inc/classes/class-assets.php
Resolved the error PSR2.Classes.ClassDeclaration.CloseBraceAfterBody from the following two files:
inc/traits/trait-singleton.php
inc/classes/class-assets.php
Checklist
[x] Update the phpcs.xml file
[x] Fix the PHPCS issues in the remaining codebase
Description
This PR addresses the PHPCS issues which were present in the code after the updation to WordPress 6.6. Following the coding standards followed in the organization, this PR also adds exception for a PHPCS sniff for the usage of shorthand array syntax.
Technical Details
phcps.xml
to exclude the sniffUniversal.Arrays.DisallowShortArraySyntax.Found
PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose
from the following two files:PSR2.Classes.ClassDeclaration.CloseBraceAfterBody
from the following two files:Checklist
Fixes/Covers issue
Fixes #468