sdc-build-wp 4.1.0 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/composer.json +2 -3
- package/composer.lock +3 -313
- package/index.js +38 -21
- package/lib/blocks.js +8 -6
- package/lib/style.js +17 -0
- package/package.json +1 -1
- package/vendor/composer/autoload_classmap.php +0 -37
- package/vendor/composer/autoload_psr4.php +0 -1
- package/vendor/composer/autoload_real.php +2 -0
- package/vendor/composer/autoload_static.php +0 -53
- package/vendor/composer/installed.json +1 -329
- package/vendor/composer/installed.php +3 -39
- package/vendor/composer/platform_check.php +26 -0
- package/lib/bustCache.js +0 -14
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/LICENSE.md +0 -22
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/README.md +0 -285
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/composer.json +0 -71
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php +0 -637
- package/vendor/phpcsstandards/phpcsextra/CHANGELOG.md +0 -590
- package/vendor/phpcsstandards/phpcsextra/LICENSE +0 -165
- package/vendor/phpcsstandards/phpcsextra/Modernize/Docs/FunctionCalls/DirnameStandard.xml +0 -40
- package/vendor/phpcsstandards/phpcsextra/Modernize/Sniffs/FunctionCalls/DirnameSniff.php +0 -382
- package/vendor/phpcsstandards/phpcsextra/Modernize/ruleset.xml +0 -5
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Docs/Arrays/ArrayBraceSpacingStandard.xml +0 -94
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Docs/Arrays/CommaAfterLastStandard.xml +0 -43
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Sniffs/Arrays/ArrayBraceSpacingSniff.php +0 -305
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Sniffs/Arrays/CommaAfterLastSniff.php +0 -226
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/ruleset.xml +0 -5
- package/vendor/phpcsstandards/phpcsextra/README.md +0 -573
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/DisallowShortArraySyntaxStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/DuplicateArrayKeyStandard.xml +0 -44
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/MixedArrayKeyTypesStandard.xml +0 -40
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/MixedKeyedUnkeyedArrayStandard.xml +0 -31
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/DisallowAnonClassParenthesesStandard.xml +0 -24
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/DisallowFinalClassStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/ModifierKeywordOrderStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/RequireAnonClassParenthesesStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/RequireFinalClassStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/ConstructorDestructorReturnStandard.xml +0 -64
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/ForeachUniqueAssignmentStandard.xml +0 -26
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/NoDoubleNegativeStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/NoEchoSprintfStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/StaticInFinalClassStandard.xml +0 -43
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/LowercaseClassResolutionKeywordStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/ModifierKeywordOrderStandard.xml +0 -30
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/UppercaseMagicConstantsStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/DisallowAlternativeSyntaxStandard.xml +0 -35
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/DisallowLonelyIfStandard.xml +0 -49
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/IfElseDeclarationStandard.xml +0 -37
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Files/SeparateFunctionsFromOOStandard.xml +0 -45
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/FunctionDeclarations/NoLongClosuresStandard.xml +0 -42
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/FunctionDeclarations/RequireFinalMethodsInTraitsStandard.xml +0 -33
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Lists/DisallowLongListSyntaxStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Lists/DisallowShortListSyntaxStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/DisallowCurlyBraceSyntaxStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/DisallowDeclarationWithoutNameStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/EnforceCurlyBraceSyntaxStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/OneDeclarationPerFileStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/NamingConventions/NoReservedKeywordParameterNamesStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/OOStructures/AlphabeticExtendsImplementsStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/ConcatPositionStandard.xml +0 -31
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/DisallowLogicalAndOrStandard.xml +0 -30
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/DisallowShortTernaryStandard.xml +0 -26
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/DisallowStandalonePostIncrementDecrementStandard.xml +0 -44
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/StrictComparisonsStandard.xml +0 -29
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/TypeSeparatorSpacingStandard.xml +0 -33
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/PHP/LowercasePHPTagStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/PHP/OneStatementInShortEchoTagStandard.xml +0 -41
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowMixedGroupUseStandard.xml +0 -39
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowUseClassStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowUseConstStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowUseFunctionStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/KeywordSpacingStandard.xml +0 -29
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/LowercaseFunctionConstStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/NoLeadingBackslashStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/NoUselessAliasesStandard.xml +0 -30
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/AnonClassKeywordSpacingStandard.xml +0 -31
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/CommaSpacingStandard.xml +0 -94
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/DisallowInlineTabsStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/PrecisionAlignmentStandard.xml +0 -29
- package/vendor/phpcsstandards/phpcsextra/Universal/Helpers/DummyTokenizer.php +0 -60
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/DisallowShortArraySyntaxSniff.php +0 -89
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/DuplicateArrayKeySniff.php +0 -297
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/MixedArrayKeyTypesSniff.php +0 -174
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/MixedKeyedUnkeyedArraySniff.php +0 -134
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/DisallowAnonClassParenthesesSniff.php +0 -112
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/DisallowFinalClassSniff.php +0 -116
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/ModifierKeywordOrderSniff.php +0 -188
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/RequireAnonClassParenthesesSniff.php +0 -81
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/RequireFinalClassSniff.php +0 -102
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/ConstructorDestructorReturnSniff.php +0 -211
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/ForeachUniqueAssignmentSniff.php +0 -153
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/NoDoubleNegativeSniff.php +0 -269
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/NoEchoSprintfSniff.php +0 -131
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/StaticInFinalClassSniff.php +0 -216
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Constants/LowercaseClassResolutionKeywordSniff.php +0 -106
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Constants/ModifierKeywordOrderSniff.php +0 -199
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Constants/UppercaseMagicConstantsSniff.php +0 -89
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/ControlStructures/DisallowAlternativeSyntaxSniff.php +0 -216
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/ControlStructures/DisallowLonelyIfSniff.php +0 -348
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/ControlStructures/IfElseDeclarationSniff.php +0 -164
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Files/SeparateFunctionsFromOOSniff.php +0 -190
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/FunctionDeclarations/NoLongClosuresSniff.php +0 -233
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/FunctionDeclarations/RequireFinalMethodsInTraitsSniff.php +0 -120
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Lists/DisallowLongListSyntaxSniff.php +0 -71
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Lists/DisallowShortListSyntaxSniff.php +0 -86
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/DisallowCurlyBraceSyntaxSniff.php +0 -81
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/DisallowDeclarationWithoutNameSniff.php +0 -80
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/EnforceCurlyBraceSyntaxSniff.php +0 -81
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/OneDeclarationPerFileSniff.php +0 -96
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/NamingConventions/NoReservedKeywordParameterNamesSniff.php +0 -190
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/OOStructures/AlphabeticExtendsImplementsSniff.php +0 -275
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/ConcatPositionSniff.php +0 -204
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/DisallowLogicalAndOrSniff.php +0 -112
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/DisallowShortTernarySniff.php +0 -76
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/DisallowStandalonePostIncrementDecrementSniff.php +0 -197
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/StrictComparisonsSniff.php +0 -116
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/TypeSeparatorSpacingSniff.php +0 -85
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/PHP/LowercasePHPTagSniff.php +0 -87
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/PHP/OneStatementInShortEchoTagSniff.php +0 -101
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowMixedGroupUseSniff.php +0 -248
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowUseClassSniff.php +0 -211
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowUseConstSniff.php +0 -211
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowUseFunctionSniff.php +0 -211
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/KeywordSpacingSniff.php +0 -207
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/LowercaseFunctionConstSniff.php +0 -156
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/NoLeadingBackslashSniff.php +0 -170
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/NoUselessAliasesSniff.php +0 -155
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/AnonClassKeywordSpacingSniff.php +0 -79
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/CommaSpacingSniff.php +0 -408
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/DisallowInlineTabsSniff.php +0 -173
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/PrecisionAlignmentSniff.php +0 -445
- package/vendor/phpcsstandards/phpcsextra/Universal/ruleset.xml +0 -5
- package/vendor/phpcsstandards/phpcsextra/composer.json +0 -69
- package/vendor/phpcsstandards/phpcsutils/.phpdoc.xml.dist +0 -36
- package/vendor/phpcsstandards/phpcsutils/CHANGELOG.md +0 -1106
- package/vendor/phpcsstandards/phpcsutils/LICENSE +0 -165
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/AbstractSniffs/AbstractArrayDeclarationSniff.php +0 -551
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCFile.php +0 -781
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCTokens.php +0 -123
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/Helper.php +0 -202
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/InvalidTokenArray.php +0 -44
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestFileNotFound.php +0 -47
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestMarkerNotFound.php +0 -43
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestTargetNotFound.php +0 -50
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Fixers/SpacesFixer.php +0 -246
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/Cache.php +0 -218
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrList.php +0 -687
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrListWithCache.php +0 -269
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/NoFileCache.php +0 -164
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/StableCollections.php +0 -75
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/TestUtils/UtilityMethodTestCase.php +0 -459
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/Collections.php +0 -837
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/TokenHelper.php +0 -55
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Arrays.php +0 -227
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Conditions.php +0 -156
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Context.php +0 -232
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ControlStructures.php +0 -276
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/FunctionDeclarations.php +0 -828
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/GetTokensAsString.php +0 -262
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Lists.php +0 -359
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/MessageHelper.php +0 -145
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Namespaces.php +0 -389
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/NamingConventions.php +0 -116
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Numbers.php +0 -322
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ObjectDeclarations.php +0 -359
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Operators.php +0 -252
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Orthography.php +0 -120
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Parentheses.php +0 -419
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/PassedParameters.php +0 -510
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Scopes.php +0 -143
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/TextStrings.php +0 -331
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/UseStatements.php +0 -432
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Variables.php +0 -333
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/ruleset.xml +0 -4
- package/vendor/phpcsstandards/phpcsutils/README.md +0 -297
- package/vendor/phpcsstandards/phpcsutils/composer.json +0 -92
- package/vendor/phpcsstandards/phpcsutils/phpcsutils-autoload.php +0 -68
- package/vendor/wp-coding-standards/wpcs/CHANGELOG.md +0 -1654
- package/vendor/wp-coding-standards/wpcs/LICENSE +0 -21
- package/vendor/wp-coding-standards/wpcs/README.md +0 -261
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractArrayAssignmentRestrictionsSniff.php +0 -261
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractClassRestrictionsSniff.php +0 -257
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractFunctionParameterSniff.php +0 -111
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractFunctionRestrictionsSniff.php +0 -358
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Arrays/ArrayIndentationStandard.xml +0 -116
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Arrays/ArrayKeySpacingRestrictionsStandard.xml +0 -31
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Arrays/MultipleStatementAlignmentStandard.xml +0 -50
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/CodeAnalysis/EscapedNotTranslatedStandard.xml +0 -24
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/DateTime/CurrentTimeTimestampStandard.xml +0 -35
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/DateTime/RestrictedFunctionsStandard.xml +0 -54
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/PrefixAllGlobalsStandard.xml +0 -119
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/ValidHookNameStandard.xml +0 -35
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/ValidPostTypeSlugStandard.xml +0 -121
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/IniSetStandard.xml +0 -40
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/StrictInArrayStandard.xml +0 -53
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/YodaConditionsStandard.xml +0 -27
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Security/SafeRedirectStandard.xml +0 -23
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/CapabilitiesStandard.xml +0 -69
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/CapitalPDangitStandard.xml +0 -43
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/ClassNameCaseStandard.xml +0 -23
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/CronIntervalStandard.xml +0 -45
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedClassesStandard.xml +0 -23
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedFunctionsStandard.xml +0 -23
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedParameterValuesStandard.xml +0 -23
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedParametersStandard.xml +0 -40
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/EnqueuedResourceParametersStandard.xml +0 -92
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/EnqueuedResourcesStandard.xml +0 -57
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/PostsPerPageStandard.xml +0 -73
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/CastStructureSpacingStandard.xml +0 -27
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/ControlStructureSpacingStandard.xml +0 -150
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml +0 -19
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml +0 -61
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ArrayWalkingFunctionsHelper.php +0 -108
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ConstantsHelper.php +0 -135
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ContextHelper.php +0 -394
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/DeprecationHelper.php +0 -84
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/EscapingFunctionsTrait.php +0 -256
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/FormattingFunctionsHelper.php +0 -60
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/IsUnitTestTrait.php +0 -238
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ListHelper.php +0 -101
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/MinimumWPVersionTrait.php +0 -159
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/PrintingFunctionsTrait.php +0 -122
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/RulesetPropertyHelper.php +0 -73
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/SanitizationHelperTrait.php +0 -418
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/SnakeCaseHelper.php +0 -60
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/UnslashingFunctionsHelper.php +0 -59
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ValidationHelper.php +0 -349
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/VariableHelper.php +0 -262
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/WPDBTrait.php +0 -115
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/WPGlobalVariablesHelper.php +0 -312
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/WPHookHelper.php +0 -113
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniff.php +0 -72
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayDeclarationSpacingSniff.php +0 -252
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayIndentationSniff.php +0 -550
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayKeySpacingRestrictionsSniff.php +0 -174
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/MultipleStatementAlignmentSniff.php +0 -583
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/CodeAnalysis/AssignmentInTernaryConditionSniff.php +0 -173
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/CodeAnalysis/EscapedNotTranslatedSniff.php +0 -89
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/DirectDatabaseQuerySniff.php +0 -301
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/PreparedSQLPlaceholdersSniff.php +0 -761
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/PreparedSQLSniff.php +0 -242
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/RestrictedClassesSniff.php +0 -57
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/RestrictedFunctionsSniff.php +0 -63
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/SlowDBQuerySniff.php +0 -58
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DateTime/CurrentTimeTimestampSniff.php +0 -168
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DateTime/RestrictedFunctionsSniff.php +0 -59
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Files/FileNameSniff.php +0 -313
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/PrefixAllGlobalsSniff.php +0 -1297
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidFunctionNameSniff.php +0 -188
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidHookNameSniff.php +0 -277
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidPostTypeSlugSniff.php +0 -230
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidVariableNameSniff.php +0 -289
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/DevelopmentFunctionsSniff.php +0 -63
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/DiscouragedPHPFunctionsSniff.php +0 -100
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/DontExtractSniff.php +0 -52
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/IniSetSniff.php +0 -193
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/NoSilencedErrorsSniff.php +0 -245
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/POSIXFunctionsSniff.php +0 -73
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/PregQuoteDelimiterSniff.php +0 -70
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/RestrictedPHPFunctionsSniff.php +0 -45
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/StrictInArraySniff.php +0 -122
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/TypeCastsSniff.php +0 -90
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/YodaConditionsSniff.php +0 -124
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/EscapeOutputSniff.php +0 -903
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/NonceVerificationSniff.php +0 -422
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/PluginMenuSlugSniff.php +0 -126
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/SafeRedirectSniff.php +0 -45
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/ValidatedSanitizedInputSniff.php +0 -244
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php +0 -862
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/AlternativeFunctionsSniff.php +0 -371
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/CapabilitiesSniff.php +0 -478
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/CapitalPDangitSniff.php +0 -315
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/ClassNameCaseSniff.php +0 -897
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/CronIntervalSniff.php +0 -321
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedClassesSniff.php +0 -152
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedFunctionsSniff.php +0 -1708
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedParameterValuesSniff.php +0 -291
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedParametersSniff.php +0 -509
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DiscouragedConstantsSniff.php +0 -160
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DiscouragedFunctionsSniff.php +0 -54
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/EnqueuedResourceParametersSniff.php +0 -241
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/EnqueuedResourcesSniff.php +0 -108
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/GlobalVariablesOverrideSniff.php +0 -436
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/I18nSniff.php +0 -977
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/PostsPerPageSniff.php +0 -102
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/CastStructureSpacingSniff.php +0 -59
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php +0 -486
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php +0 -63
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/OperatorSpacingSniff.php +0 -60
- package/vendor/wp-coding-standards/wpcs/WordPress/ruleset.xml +0 -13
- package/vendor/wp-coding-standards/wpcs/WordPress-Core/ruleset.xml +0 -948
- package/vendor/wp-coding-standards/wpcs/WordPress-Docs/ruleset.xml +0 -109
- package/vendor/wp-coding-standards/wpcs/WordPress-Extra/ruleset.xml +0 -199
- package/vendor/wp-coding-standards/wpcs/composer.json +0 -88
- package/vendor/wp-coding-standards/wpcs/phpcs.xml.dist.sample +0 -153
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
/**
|
|
3
|
-
* WordPress Coding Standard.
|
|
4
|
-
*
|
|
5
|
-
* @package WPCS\WordPressCodingStandards
|
|
6
|
-
* @link https://github.com/WordPress/WordPress-Coding-Standards
|
|
7
|
-
* @license https://opensource.org/licenses/MIT MIT
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
namespace WordPressCS\WordPress;
|
|
11
|
-
|
|
12
|
-
use PHP_CodeSniffer\Util\Tokens;
|
|
13
|
-
use PHPCSUtils\Utils\Context;
|
|
14
|
-
use PHPCSUtils\Utils\MessageHelper;
|
|
15
|
-
use WordPressCS\WordPress\Helpers\ContextHelper;
|
|
16
|
-
use WordPressCS\WordPress\Helpers\RulesetPropertyHelper;
|
|
17
|
-
use WordPressCS\WordPress\Sniff;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Restricts usage of some functions.
|
|
21
|
-
*
|
|
22
|
-
* @since 0.3.0
|
|
23
|
-
* @since 0.10.0 Class became a proper abstract class. This was already the behaviour.
|
|
24
|
-
* Moved the file and renamed the class from
|
|
25
|
-
* `\WordPressCS\WordPress\Sniffs\Functions\FunctionRestrictionsSniff` to
|
|
26
|
-
* `\WordPressCS\WordPress\AbstractFunctionRestrictionsSniff`.
|
|
27
|
-
* @since 0.11.0 Extends the WordPressCS native `Sniff` class.
|
|
28
|
-
*/
|
|
29
|
-
abstract class AbstractFunctionRestrictionsSniff extends Sniff {
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Exclude groups.
|
|
33
|
-
*
|
|
34
|
-
* Example: 'switch_to_blog,user_meta'
|
|
35
|
-
*
|
|
36
|
-
* @since 0.3.0
|
|
37
|
-
* @since 1.0.0 This property now expects to be passed an array.
|
|
38
|
-
* Previously a comma-delimited string was expected.
|
|
39
|
-
*
|
|
40
|
-
* @var array
|
|
41
|
-
*/
|
|
42
|
-
public $exclude = array();
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Groups of function data to check against.
|
|
46
|
-
* Don't use this in extended classes, override getGroups() instead.
|
|
47
|
-
* This is only used for Unit tests.
|
|
48
|
-
*
|
|
49
|
-
* @since 0.10.0
|
|
50
|
-
*
|
|
51
|
-
* @var array
|
|
52
|
-
*/
|
|
53
|
-
public static $unittest_groups = array();
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Regex pattern with placeholder for the function names.
|
|
57
|
-
*
|
|
58
|
-
* @since 0.10.0
|
|
59
|
-
*
|
|
60
|
-
* @var string
|
|
61
|
-
*/
|
|
62
|
-
protected $regex_pattern = '`^(?:%s)$`i';
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Cache for the group information.
|
|
66
|
-
*
|
|
67
|
-
* @since 0.10.0
|
|
68
|
-
*
|
|
69
|
-
* @var array
|
|
70
|
-
*/
|
|
71
|
-
protected $groups = array();
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Cache for the excluded groups information.
|
|
75
|
-
*
|
|
76
|
-
* @since 0.11.0
|
|
77
|
-
*
|
|
78
|
-
* @var array
|
|
79
|
-
*/
|
|
80
|
-
protected $excluded_groups = array();
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Regex containing the name of all functions handled by a sniff.
|
|
84
|
-
*
|
|
85
|
-
* Set in `register()` and used to do an initial check.
|
|
86
|
-
*
|
|
87
|
-
* @var string
|
|
88
|
-
*/
|
|
89
|
-
private $prelim_check_regex;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Groups of functions to restrict.
|
|
93
|
-
*
|
|
94
|
-
* This method should be overridden in extending classes.
|
|
95
|
-
*
|
|
96
|
-
* Example: groups => array(
|
|
97
|
-
* 'lambda' => array(
|
|
98
|
-
* 'type' => 'error' | 'warning',
|
|
99
|
-
* 'message' => 'Use anonymous functions instead please!',
|
|
100
|
-
* 'functions' => array( 'file_get_contents', 'create_function', 'mysql_*' ),
|
|
101
|
-
* // Only useful when using wildcards:
|
|
102
|
-
* 'allow' => array( 'mysql_to_rfc3339' => true, ),
|
|
103
|
-
* )
|
|
104
|
-
* )
|
|
105
|
-
*
|
|
106
|
-
* You can use * wildcards to target a group of functions.
|
|
107
|
-
* When you use * wildcards, you may inadvertently restrict too many
|
|
108
|
-
* functions. In that case you can add the `allow` key to
|
|
109
|
-
* safe list individual functions to prevent false positives.
|
|
110
|
-
*
|
|
111
|
-
* @return array
|
|
112
|
-
*/
|
|
113
|
-
abstract public function getGroups();
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Returns an array of tokens this test wants to listen for.
|
|
117
|
-
*
|
|
118
|
-
* @return array
|
|
119
|
-
*/
|
|
120
|
-
public function register() {
|
|
121
|
-
// Prepare the function group regular expressions only once.
|
|
122
|
-
if ( false === $this->setup_groups( 'functions' ) ) {
|
|
123
|
-
return array();
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return array(
|
|
127
|
-
\T_STRING,
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Set up the regular expressions for each group.
|
|
133
|
-
*
|
|
134
|
-
* @since 0.10.0
|
|
135
|
-
*
|
|
136
|
-
* @param string $key The group array index key where the input for the regular expression can be found.
|
|
137
|
-
* @return bool True if the groups were setup. False if not.
|
|
138
|
-
*/
|
|
139
|
-
protected function setup_groups( $key ) {
|
|
140
|
-
// Prepare the function group regular expressions only once.
|
|
141
|
-
$this->groups = $this->getGroups();
|
|
142
|
-
|
|
143
|
-
if ( empty( $this->groups ) && empty( self::$unittest_groups ) ) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// Allow for adding extra unit tests.
|
|
148
|
-
if ( ! empty( self::$unittest_groups ) ) {
|
|
149
|
-
$this->groups = array_merge( $this->groups, self::$unittest_groups );
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
$all_items = array();
|
|
153
|
-
foreach ( $this->groups as $groupName => $group ) {
|
|
154
|
-
if ( empty( $group[ $key ] ) ) {
|
|
155
|
-
unset( $this->groups[ $groupName ] );
|
|
156
|
-
continue;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// Lowercase the items and potential allows as the comparisons should be done case-insensitively.
|
|
160
|
-
// Note: this disregards non-ascii names, but as we don't have any of those, that is okay for now.
|
|
161
|
-
$items = array_map( 'strtolower', $group[ $key ] );
|
|
162
|
-
$this->groups[ $groupName ][ $key ] = $items;
|
|
163
|
-
|
|
164
|
-
if ( ! empty( $group['allow'] ) ) {
|
|
165
|
-
$this->groups[ $groupName ]['allow'] = array_change_key_case( $group['allow'], \CASE_LOWER );
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
$items = array_map( array( $this, 'prepare_name_for_regex' ), $items );
|
|
169
|
-
$all_items[] = $items;
|
|
170
|
-
$items = implode( '|', $items );
|
|
171
|
-
|
|
172
|
-
$this->groups[ $groupName ]['regex'] = sprintf( $this->regex_pattern, $items );
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
if ( empty( $this->groups ) ) {
|
|
176
|
-
return false;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// Create one "super-regex" to allow for initial filtering.
|
|
180
|
-
$all_items = \call_user_func_array( 'array_merge', $all_items );
|
|
181
|
-
$all_items = implode( '|', array_unique( $all_items ) );
|
|
182
|
-
$this->prelim_check_regex = sprintf( $this->regex_pattern, $all_items );
|
|
183
|
-
|
|
184
|
-
return true;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Processes this test, when one of its tokens is encountered.
|
|
189
|
-
*
|
|
190
|
-
* @param int $stackPtr The position of the current token in the stack.
|
|
191
|
-
*
|
|
192
|
-
* @return int|void Integer stack pointer to skip forward or void to continue
|
|
193
|
-
* normal file processing.
|
|
194
|
-
*/
|
|
195
|
-
public function process_token( $stackPtr ) {
|
|
196
|
-
|
|
197
|
-
$this->excluded_groups = RulesetPropertyHelper::merge_custom_array( $this->exclude );
|
|
198
|
-
if ( array_diff_key( $this->groups, $this->excluded_groups ) === array() ) {
|
|
199
|
-
// All groups have been excluded.
|
|
200
|
-
// Don't remove the listener as the exclude property can be changed inline.
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// Preliminary check. If the content of the T_STRING is not one of the functions we're
|
|
205
|
-
// looking for, we can bow out before doing the heavy lifting of checking whether
|
|
206
|
-
// this is a function call.
|
|
207
|
-
if ( preg_match( $this->prelim_check_regex, $this->tokens[ $stackPtr ]['content'] ) !== 1 ) {
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
if ( true === $this->is_targetted_token( $stackPtr ) ) {
|
|
212
|
-
return $this->check_for_matches( $stackPtr );
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Verify is the current token is a function call.
|
|
218
|
-
*
|
|
219
|
-
* @since 0.11.0 Split out from the `process()` method.
|
|
220
|
-
*
|
|
221
|
-
* @param int $stackPtr The position of the current token in the stack.
|
|
222
|
-
*
|
|
223
|
-
* @return bool
|
|
224
|
-
*/
|
|
225
|
-
public function is_targetted_token( $stackPtr ) {
|
|
226
|
-
// Exclude function definitions, class methods, and namespaced calls.
|
|
227
|
-
if ( ContextHelper::has_object_operator_before( $this->phpcsFile, $stackPtr ) === true ) {
|
|
228
|
-
return false;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
if ( ContextHelper::is_token_namespaced( $this->phpcsFile, $stackPtr ) === true ) {
|
|
232
|
-
return false;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
if ( Context::inAttribute( $this->phpcsFile, $stackPtr ) ) {
|
|
236
|
-
// Class instantiation or constant in attribute, not function call.
|
|
237
|
-
return false;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
$search = Tokens::$emptyTokens;
|
|
241
|
-
$search[ \T_BITWISE_AND ] = \T_BITWISE_AND;
|
|
242
|
-
|
|
243
|
-
$prev = $this->phpcsFile->findPrevious( $search, ( $stackPtr - 1 ), null, true );
|
|
244
|
-
|
|
245
|
-
// Skip sniffing on function, OO definitions or for function aliases in use statements.
|
|
246
|
-
$invalid_tokens = Tokens::$ooScopeTokens;
|
|
247
|
-
$invalid_tokens += array(
|
|
248
|
-
\T_FUNCTION => \T_FUNCTION,
|
|
249
|
-
\T_NEW => \T_NEW,
|
|
250
|
-
\T_AS => \T_AS, // Use declaration alias.
|
|
251
|
-
);
|
|
252
|
-
|
|
253
|
-
if ( isset( $invalid_tokens[ $this->tokens[ $prev ]['code'] ] ) ) {
|
|
254
|
-
return false;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
// Check if this could even be a function call.
|
|
258
|
-
$next = $this->phpcsFile->findNext( Tokens::$emptyTokens, ( $stackPtr + 1 ), null, true );
|
|
259
|
-
if ( false === $next ) {
|
|
260
|
-
return false;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
// Check for `use function ... (as|;)`.
|
|
264
|
-
if ( ( \T_STRING === $this->tokens[ $prev ]['code'] && 'function' === $this->tokens[ $prev ]['content'] )
|
|
265
|
-
&& ( \T_AS === $this->tokens[ $next ]['code'] || \T_SEMICOLON === $this->tokens[ $next ]['code'] )
|
|
266
|
-
) {
|
|
267
|
-
return true;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// If it's not a `use` statement, there should be parenthesis.
|
|
271
|
-
if ( \T_OPEN_PARENTHESIS !== $this->tokens[ $next ]['code'] ) {
|
|
272
|
-
return false;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
return true;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Verify if the current token is one of the targetted functions.
|
|
280
|
-
*
|
|
281
|
-
* @since 0.11.0 Split out from the `process()` method.
|
|
282
|
-
*
|
|
283
|
-
* @param int $stackPtr The position of the current token in the stack.
|
|
284
|
-
*
|
|
285
|
-
* @return int|void Integer stack pointer to skip forward or void to continue
|
|
286
|
-
* normal file processing.
|
|
287
|
-
*/
|
|
288
|
-
public function check_for_matches( $stackPtr ) {
|
|
289
|
-
$token_content = strtolower( $this->tokens[ $stackPtr ]['content'] );
|
|
290
|
-
$skip_to = array();
|
|
291
|
-
|
|
292
|
-
foreach ( $this->groups as $groupName => $group ) {
|
|
293
|
-
|
|
294
|
-
if ( isset( $this->excluded_groups[ $groupName ] ) ) {
|
|
295
|
-
continue;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
if ( isset( $group['allow'][ $token_content ] ) ) {
|
|
299
|
-
continue;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
if ( preg_match( $group['regex'], $token_content ) === 1 ) {
|
|
303
|
-
$skip_to[] = $this->process_matched_token( $stackPtr, $groupName, $token_content );
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
if ( empty( $skip_to ) || min( $skip_to ) === 0 ) {
|
|
308
|
-
return;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
return min( $skip_to );
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Process a matched token.
|
|
316
|
-
*
|
|
317
|
-
* @since 0.11.0 Split out from the `process()` method.
|
|
318
|
-
*
|
|
319
|
-
* @param int $stackPtr The position of the current token in the stack.
|
|
320
|
-
* @param string $group_name The name of the group which was matched.
|
|
321
|
-
* @param string $matched_content The token content (function name) which was matched
|
|
322
|
-
* in lowercase.
|
|
323
|
-
*
|
|
324
|
-
* @return int|void Integer stack pointer to skip forward or void to continue
|
|
325
|
-
* normal file processing.
|
|
326
|
-
*/
|
|
327
|
-
public function process_matched_token( $stackPtr, $group_name, $matched_content ) {
|
|
328
|
-
|
|
329
|
-
MessageHelper::addMessage(
|
|
330
|
-
$this->phpcsFile,
|
|
331
|
-
$this->groups[ $group_name ]['message'],
|
|
332
|
-
$stackPtr,
|
|
333
|
-
( 'error' === $this->groups[ $group_name ]['type'] ),
|
|
334
|
-
MessageHelper::stringToErrorcode( $group_name . '_' . $matched_content ),
|
|
335
|
-
array( $matched_content )
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Prepare the function name for use in a regular expression.
|
|
341
|
-
*
|
|
342
|
-
* The getGroups() method allows for providing function names with a wildcard * to target
|
|
343
|
-
* a group of functions. This prepare routine takes that into account while still safely
|
|
344
|
-
* escaping the function name for use in a regular expression.
|
|
345
|
-
*
|
|
346
|
-
* @since 0.10.0
|
|
347
|
-
*
|
|
348
|
-
* @param string $function_name Function name.
|
|
349
|
-
* @return string Regex escaped function name.
|
|
350
|
-
*/
|
|
351
|
-
protected function prepare_name_for_regex( $function_name ) {
|
|
352
|
-
$function_name = str_replace( array( '.*', '*' ), '@@', $function_name ); // Replace wildcards with placeholder.
|
|
353
|
-
$function_name = preg_quote( $function_name, '`' );
|
|
354
|
-
$function_name = str_replace( '@@', '.*', $function_name ); // Replace placeholder with regex wildcard.
|
|
355
|
-
|
|
356
|
-
return $function_name;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
|
-
xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
|
|
4
|
-
title="Array Indentation"
|
|
5
|
-
>
|
|
6
|
-
<standard>
|
|
7
|
-
<![CDATA[
|
|
8
|
-
The array closing bracket indentation should line up with the start of the content on the line containing the array opener.
|
|
9
|
-
]]>
|
|
10
|
-
</standard>
|
|
11
|
-
<code_comparison>
|
|
12
|
-
<code title="Valid: Closing bracket lined up correctly">
|
|
13
|
-
<![CDATA[
|
|
14
|
-
$args = array(
|
|
15
|
-
'post_id' => 22,
|
|
16
|
-
<em>);</em>
|
|
17
|
-
]]>
|
|
18
|
-
</code>
|
|
19
|
-
<code title="Invalid: Closing bracket lined up incorrectly">
|
|
20
|
-
<![CDATA[
|
|
21
|
-
$args = array(
|
|
22
|
-
'post_id' => 22,
|
|
23
|
-
<em>);</em>
|
|
24
|
-
]]>
|
|
25
|
-
</code>
|
|
26
|
-
</code_comparison>
|
|
27
|
-
<standard>
|
|
28
|
-
<![CDATA[
|
|
29
|
-
In multi-line arrays, array items should be indented by a 4-space tab for each level of nested array, so that the array visually matches its structure.
|
|
30
|
-
]]>
|
|
31
|
-
</standard>
|
|
32
|
-
<code_comparison>
|
|
33
|
-
<code title="Valid: Correctly indented array">
|
|
34
|
-
<![CDATA[
|
|
35
|
-
$args = array(
|
|
36
|
-
'post_id' => 22,
|
|
37
|
-
'comment_count' => array(
|
|
38
|
-
<em>'value' => 25,
|
|
39
|
-
'compare' => '>=',</em>
|
|
40
|
-
),
|
|
41
|
-
'post_type' => array(
|
|
42
|
-
'post',
|
|
43
|
-
'page',
|
|
44
|
-
),
|
|
45
|
-
);
|
|
46
|
-
]]>
|
|
47
|
-
</code>
|
|
48
|
-
<code title="Invalid: Indented incorrectly; harder to read.">
|
|
49
|
-
<![CDATA[
|
|
50
|
-
$args = array(
|
|
51
|
-
'post_id' => 22,
|
|
52
|
-
'comment_count' => array(
|
|
53
|
-
<em>'value' => 25,
|
|
54
|
-
'compare' => '>=',</em>
|
|
55
|
-
),
|
|
56
|
-
'post_type' => array(
|
|
57
|
-
<em>'post',
|
|
58
|
-
'page',</em>
|
|
59
|
-
),
|
|
60
|
-
);
|
|
61
|
-
]]>
|
|
62
|
-
</code>
|
|
63
|
-
</code_comparison>
|
|
64
|
-
<standard>
|
|
65
|
-
<![CDATA[
|
|
66
|
-
Subsequent lines in multiline array items should be indented at least as much as the first line of the array item.
|
|
67
|
-
For heredocs/nowdocs, this does not apply to the content of the heredoc/nowdoc or the closer, but it does apply to the comma separating the item from the next.
|
|
68
|
-
]]>
|
|
69
|
-
</standard>
|
|
70
|
-
<code_comparison>
|
|
71
|
-
<code title="Valid: Subsequent lines are indented correctly.">
|
|
72
|
-
<![CDATA[
|
|
73
|
-
$args = array(
|
|
74
|
-
'phrase' => 'start of phrase'
|
|
75
|
-
. 'concatented additional phrase'
|
|
76
|
-
. 'more text',
|
|
77
|
-
);
|
|
78
|
-
]]>
|
|
79
|
-
</code>
|
|
80
|
-
<code title="Invalid: Subsequent items are indented before the first line item.">
|
|
81
|
-
<![CDATA[
|
|
82
|
-
$args = array(
|
|
83
|
-
'phrase' => 'start of phrase'
|
|
84
|
-
. 'concatented additional phrase'
|
|
85
|
-
. 'more text',
|
|
86
|
-
);
|
|
87
|
-
]]>
|
|
88
|
-
</code>
|
|
89
|
-
</code_comparison>
|
|
90
|
-
<code_comparison>
|
|
91
|
-
<code title="Valid: Opener and comma after closer are indented correctly">
|
|
92
|
-
<![CDATA[
|
|
93
|
-
$text = array(
|
|
94
|
-
<<<EOD
|
|
95
|
-
start of phrase
|
|
96
|
-
concatented additional phrase
|
|
97
|
-
more text
|
|
98
|
-
EOD
|
|
99
|
-
,
|
|
100
|
-
);
|
|
101
|
-
]]>
|
|
102
|
-
</code>
|
|
103
|
-
<code title="Invalid: Opener is aligned incorrectly to match the closer. The comma does not align correctly with the array indentation.">
|
|
104
|
-
<![CDATA[
|
|
105
|
-
$text = array(
|
|
106
|
-
<em><<<EOD</em>
|
|
107
|
-
start of phrase
|
|
108
|
-
concatented additional phrase
|
|
109
|
-
more text
|
|
110
|
-
EOD
|
|
111
|
-
<em>,</em>
|
|
112
|
-
);
|
|
113
|
-
]]>
|
|
114
|
-
</code>
|
|
115
|
-
</code_comparison>
|
|
116
|
-
</documentation>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
|
-
xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
|
|
4
|
-
title="Array Key Spacing Restrictions"
|
|
5
|
-
>
|
|
6
|
-
<standard>
|
|
7
|
-
<![CDATA[
|
|
8
|
-
When referring to array items, only include a space around the index if it is a variable or the key is concatenated.
|
|
9
|
-
]]>
|
|
10
|
-
</standard>
|
|
11
|
-
<code_comparison>
|
|
12
|
-
<code title="Valid: Correct spacing around the index keys">
|
|
13
|
-
<![CDATA[
|
|
14
|
-
$post = $posts<em>[ </em>$post_id<em> ]</em>;
|
|
15
|
-
$post_title = $post<em>[ </em>'concatenated' . $title<em> ]</em>;
|
|
16
|
-
$post = $posts<em>[ </em>HOME_PAGE<em> ]</em>;
|
|
17
|
-
$post = $posts<em>[</em>123<em>]</em>;
|
|
18
|
-
$post_title = $post<em>[</em>'post_title'<em>]</em>;
|
|
19
|
-
]]>
|
|
20
|
-
</code>
|
|
21
|
-
<code title="Invalid: Incorrect spacing around the index keys">
|
|
22
|
-
<![CDATA[
|
|
23
|
-
$post = $posts<em>[</em>$post_id<em>]</em>;
|
|
24
|
-
$post_title = $post<em>[</em>'concatenated' . $title<em> ]</em>;
|
|
25
|
-
$post = $posts<em>[</em>HOME_PAGE<em>]</em>;
|
|
26
|
-
$post = $posts<em>[ </em>123<em> ]</em>;
|
|
27
|
-
$post_title = $post<em>[ </em>'post_title'<em> ]</em>;
|
|
28
|
-
]]>
|
|
29
|
-
</code>
|
|
30
|
-
</code_comparison>
|
|
31
|
-
</documentation>
|
package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Arrays/MultipleStatementAlignmentStandard.xml
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
|
-
xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
|
|
4
|
-
title="Array Multiple Statement Alignment"
|
|
5
|
-
>
|
|
6
|
-
<standard>
|
|
7
|
-
<![CDATA[
|
|
8
|
-
When declaring arrays, there should be one space on either side of a double arrow operator used to assign a value to a key.
|
|
9
|
-
]]>
|
|
10
|
-
</standard>
|
|
11
|
-
<code_comparison>
|
|
12
|
-
<code title="Valid: correct spacing between the key and value.">
|
|
13
|
-
<![CDATA[
|
|
14
|
-
$foo = array( 'cat'<em> => </em>22 );
|
|
15
|
-
$bar = array( 'year'<em> => </em>$current_year );
|
|
16
|
-
]]>
|
|
17
|
-
</code>
|
|
18
|
-
<code title="Invalid: No or incorrect spacing between the key and value.">
|
|
19
|
-
<![CDATA[
|
|
20
|
-
$foo = array( 'cat'<em>=></em>22 );
|
|
21
|
-
$bar = array( 'year'<em>=> </em>$current_year );
|
|
22
|
-
]]>
|
|
23
|
-
</code>
|
|
24
|
-
</code_comparison>
|
|
25
|
-
<standard>
|
|
26
|
-
<![CDATA[
|
|
27
|
-
In the case of a block of related assignments, it is recommended to align the arrows to promote readability.
|
|
28
|
-
]]>
|
|
29
|
-
</standard>
|
|
30
|
-
<code_comparison>
|
|
31
|
-
<code title="Valid: Double arrow operators aligned">
|
|
32
|
-
<![CDATA[
|
|
33
|
-
$args = array(
|
|
34
|
-
'cat'<em> => </em>22,
|
|
35
|
-
'year'<em> => </em>$current_year,
|
|
36
|
-
'monthnum'<em> => </em>$current_month,
|
|
37
|
-
);
|
|
38
|
-
]]>
|
|
39
|
-
</code>
|
|
40
|
-
<code title="Invalid: Not aligned; harder to read">
|
|
41
|
-
<![CDATA[
|
|
42
|
-
$args = array(
|
|
43
|
-
'cat' <em>=></em> 22,
|
|
44
|
-
'year' <em>=></em> $current_year,
|
|
45
|
-
'monthnum' <em>=></em> $current_month,
|
|
46
|
-
);
|
|
47
|
-
]]>
|
|
48
|
-
</code>
|
|
49
|
-
</code_comparison>
|
|
50
|
-
</documentation>
|
package/vendor/wp-coding-standards/wpcs/WordPress/Docs/CodeAnalysis/EscapedNotTranslatedStandard.xml
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
|
-
xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
|
|
4
|
-
title="Escaped Not Translated"
|
|
5
|
-
>
|
|
6
|
-
<standard>
|
|
7
|
-
<![CDATA[
|
|
8
|
-
Text intended for translation needs to be wrapped in a localization function call.
|
|
9
|
-
This sniff will help you find instances where text is escaped for output, but no localization function is called, even though an (unexpected) text domain argument is passed to the escape function.
|
|
10
|
-
]]>
|
|
11
|
-
</standard>
|
|
12
|
-
<code_comparison>
|
|
13
|
-
<code title="Valid: esc_html__() used to translate and escape.">
|
|
14
|
-
<![CDATA[
|
|
15
|
-
echo <em>esc_html__</em>( 'text', 'domain' );
|
|
16
|
-
]]>
|
|
17
|
-
</code>
|
|
18
|
-
<code title="Invalid: esc_html() used to only escape a string intended to be translated as well.">
|
|
19
|
-
<![CDATA[
|
|
20
|
-
echo <em>esc_html</em>( 'text', 'domain' );
|
|
21
|
-
]]>
|
|
22
|
-
</code>
|
|
23
|
-
</code_comparison>
|
|
24
|
-
</documentation>
|
package/vendor/wp-coding-standards/wpcs/WordPress/Docs/DateTime/CurrentTimeTimestampStandard.xml
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
|
-
xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
|
|
4
|
-
title="Current Time Timestamp"
|
|
5
|
-
>
|
|
6
|
-
<standard>
|
|
7
|
-
<![CDATA[
|
|
8
|
-
Don't use current_time() to get a timestamp as it doesn't produce a Unix (UTC) timestamp, but a "WordPress timestamp", i.e. a Unix timestamp with current timezone offset.
|
|
9
|
-
]]>
|
|
10
|
-
</standard>
|
|
11
|
-
<code_comparison>
|
|
12
|
-
<code title="Valid: using time() to get a Unix (UTC) timestamp.">
|
|
13
|
-
<![CDATA[
|
|
14
|
-
$timestamp = <em>time()</em>;
|
|
15
|
-
]]>
|
|
16
|
-
</code>
|
|
17
|
-
<code title="Invalid: using current_time() to get a Unix (UTC) timestamp.">
|
|
18
|
-
<![CDATA[
|
|
19
|
-
$timestamp = <em>current_time( 'timestamp', true )</em>;
|
|
20
|
-
]]>
|
|
21
|
-
</code>
|
|
22
|
-
</code_comparison>
|
|
23
|
-
<code_comparison>
|
|
24
|
-
<code title="Valid: using current_time() with a non-timestamp format.">
|
|
25
|
-
<![CDATA[
|
|
26
|
-
$timestamp = current_time( <em>'Y-m-d'</em> );
|
|
27
|
-
]]>
|
|
28
|
-
</code>
|
|
29
|
-
<code title="Invalid: using current_time() to get a timezone corrected timestamp.">
|
|
30
|
-
<![CDATA[
|
|
31
|
-
$timestamp = <em>current_time( 'U', false )</em>;
|
|
32
|
-
]]>
|
|
33
|
-
</code>
|
|
34
|
-
</code_comparison>
|
|
35
|
-
</documentation>
|
package/vendor/wp-coding-standards/wpcs/WordPress/Docs/DateTime/RestrictedFunctionsStandard.xml
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
|
-
xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
|
|
4
|
-
title="Restricted Date and Time Functions"
|
|
5
|
-
>
|
|
6
|
-
<standard>
|
|
7
|
-
<![CDATA[
|
|
8
|
-
The restricted functions date_default_timezone_set() and date() should not be used.
|
|
9
|
-
]]>
|
|
10
|
-
</standard>
|
|
11
|
-
<standard>
|
|
12
|
-
<![CDATA[
|
|
13
|
-
Using the PHP native date_default_timezone_set() function isn't allowed, because WordPress Core needs the default time zone to be set to UTC for timezone calculations using the WP Core API to work correctly.
|
|
14
|
-
]]>
|
|
15
|
-
</standard>
|
|
16
|
-
<code_comparison>
|
|
17
|
-
<code title="Valid: Using DateTime object.">
|
|
18
|
-
<![CDATA[
|
|
19
|
-
$date = new <em>DateTime()</em>;
|
|
20
|
-
$date->setTimezone(
|
|
21
|
-
new DateTimeZone( 'Europe/Amsterdam' )
|
|
22
|
-
);
|
|
23
|
-
]]>
|
|
24
|
-
</code>
|
|
25
|
-
<code title="Invalid: Using date_default_timezone_set().">
|
|
26
|
-
<![CDATA[
|
|
27
|
-
<em>date_default_timezone_set</em>( 'Europe/Amsterdam' );
|
|
28
|
-
]]>
|
|
29
|
-
</code>
|
|
30
|
-
</code_comparison>
|
|
31
|
-
<standard>
|
|
32
|
-
<![CDATA[
|
|
33
|
-
Using the PHP native date() function isn't allowed, as it is affected by runtime timezone changes which can cause the date/time to be incorrectly displayed. Use gmdate() instead.
|
|
34
|
-
]]>
|
|
35
|
-
</standard>
|
|
36
|
-
<code_comparison>
|
|
37
|
-
<code title="Valid: Using gmdate().">
|
|
38
|
-
<![CDATA[
|
|
39
|
-
$last_updated = <em>gmdate</em>(
|
|
40
|
-
'Y-m-d\TH:i:s',
|
|
41
|
-
strtotime( $plugin['last_updated'] )
|
|
42
|
-
);
|
|
43
|
-
]]>
|
|
44
|
-
</code>
|
|
45
|
-
<code title="Invalid: Using date().">
|
|
46
|
-
<![CDATA[
|
|
47
|
-
$last_updated = <em>date</em>(
|
|
48
|
-
'Y-m-d\TH:i:s',
|
|
49
|
-
strtotime( $plugin['last_updated'] )
|
|
50
|
-
);
|
|
51
|
-
]]>
|
|
52
|
-
</code>
|
|
53
|
-
</code_comparison>
|
|
54
|
-
</documentation>
|