sdc-build-wp 3.7.2 → 4.0.0
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/.phpcs.xml +59 -0
- package/composer.json +19 -0
- package/composer.lock +413 -0
- package/index.js +23 -0
- package/lib/php.js +64 -0
- package/package.json +1 -1
- package/vendor/autoload.php +25 -0
- package/vendor/bin/phpcbf +119 -0
- package/vendor/bin/phpcs +119 -0
- package/vendor/composer/ClassLoader.php +579 -0
- package/vendor/composer/InstalledVersions.php +378 -0
- package/vendor/composer/LICENSE +21 -0
- package/vendor/composer/autoload_classmap.php +47 -0
- package/vendor/composer/autoload_namespaces.php +9 -0
- package/vendor/composer/autoload_psr4.php +10 -0
- package/vendor/composer/autoload_real.php +36 -0
- package/vendor/composer/autoload_static.php +73 -0
- package/vendor/composer/installed.json +421 -0
- package/vendor/composer/installed.php +68 -0
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/LICENSE.md +22 -0
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/README.md +285 -0
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/composer.json +71 -0
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php +637 -0
- package/vendor/phpcsstandards/phpcsextra/CHANGELOG.md +590 -0
- package/vendor/phpcsstandards/phpcsextra/LICENSE +165 -0
- package/vendor/phpcsstandards/phpcsextra/Modernize/Docs/FunctionCalls/DirnameStandard.xml +40 -0
- package/vendor/phpcsstandards/phpcsextra/Modernize/Sniffs/FunctionCalls/DirnameSniff.php +382 -0
- package/vendor/phpcsstandards/phpcsextra/Modernize/ruleset.xml +5 -0
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Docs/Arrays/ArrayBraceSpacingStandard.xml +94 -0
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Docs/Arrays/CommaAfterLastStandard.xml +43 -0
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Sniffs/Arrays/ArrayBraceSpacingSniff.php +305 -0
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Sniffs/Arrays/CommaAfterLastSniff.php +226 -0
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/ruleset.xml +5 -0
- package/vendor/phpcsstandards/phpcsextra/README.md +573 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/DisallowShortArraySyntaxStandard.xml +27 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/DuplicateArrayKeyStandard.xml +44 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/MixedArrayKeyTypesStandard.xml +40 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/MixedKeyedUnkeyedArrayStandard.xml +31 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/DisallowAnonClassParenthesesStandard.xml +24 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/DisallowFinalClassStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/ModifierKeywordOrderStandard.xml +27 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/RequireAnonClassParenthesesStandard.xml +23 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/RequireFinalClassStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/ConstructorDestructorReturnStandard.xml +64 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/ForeachUniqueAssignmentStandard.xml +26 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/NoDoubleNegativeStandard.xml +27 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/NoEchoSprintfStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/StaticInFinalClassStandard.xml +43 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/LowercaseClassResolutionKeywordStandard.xml +23 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/ModifierKeywordOrderStandard.xml +30 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/UppercaseMagicConstantsStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/DisallowAlternativeSyntaxStandard.xml +35 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/DisallowLonelyIfStandard.xml +49 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/IfElseDeclarationStandard.xml +37 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Files/SeparateFunctionsFromOOStandard.xml +45 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/FunctionDeclarations/NoLongClosuresStandard.xml +42 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/FunctionDeclarations/RequireFinalMethodsInTraitsStandard.xml +33 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Lists/DisallowLongListSyntaxStandard.xml +23 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Lists/DisallowShortListSyntaxStandard.xml +23 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/DisallowCurlyBraceSyntaxStandard.xml +27 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/DisallowDeclarationWithoutNameStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/EnforceCurlyBraceSyntaxStandard.xml +27 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/OneDeclarationPerFileStandard.xml +27 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/NamingConventions/NoReservedKeywordParameterNamesStandard.xml +23 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/OOStructures/AlphabeticExtendsImplementsStandard.xml +27 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/ConcatPositionStandard.xml +31 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/DisallowLogicalAndOrStandard.xml +30 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/DisallowShortTernaryStandard.xml +26 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/DisallowStandalonePostIncrementDecrementStandard.xml +44 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/StrictComparisonsStandard.xml +29 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/TypeSeparatorSpacingStandard.xml +33 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/PHP/LowercasePHPTagStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/PHP/OneStatementInShortEchoTagStandard.xml +41 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowMixedGroupUseStandard.xml +39 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowUseClassStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowUseConstStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowUseFunctionStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/KeywordSpacingStandard.xml +29 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/LowercaseFunctionConstStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/NoLeadingBackslashStandard.xml +23 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/NoUselessAliasesStandard.xml +30 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/AnonClassKeywordSpacingStandard.xml +31 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/CommaSpacingStandard.xml +94 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/DisallowInlineTabsStandard.xml +25 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/PrecisionAlignmentStandard.xml +29 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Helpers/DummyTokenizer.php +60 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/DisallowShortArraySyntaxSniff.php +89 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/DuplicateArrayKeySniff.php +297 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/MixedArrayKeyTypesSniff.php +174 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/MixedKeyedUnkeyedArraySniff.php +134 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/DisallowAnonClassParenthesesSniff.php +112 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/DisallowFinalClassSniff.php +116 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/ModifierKeywordOrderSniff.php +188 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/RequireAnonClassParenthesesSniff.php +81 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/RequireFinalClassSniff.php +102 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/ConstructorDestructorReturnSniff.php +211 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/ForeachUniqueAssignmentSniff.php +153 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/NoDoubleNegativeSniff.php +269 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/NoEchoSprintfSniff.php +131 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/StaticInFinalClassSniff.php +216 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Constants/LowercaseClassResolutionKeywordSniff.php +106 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Constants/ModifierKeywordOrderSniff.php +199 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Constants/UppercaseMagicConstantsSniff.php +89 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/ControlStructures/DisallowAlternativeSyntaxSniff.php +216 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/ControlStructures/DisallowLonelyIfSniff.php +348 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/ControlStructures/IfElseDeclarationSniff.php +164 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Files/SeparateFunctionsFromOOSniff.php +190 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/FunctionDeclarations/NoLongClosuresSniff.php +233 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/FunctionDeclarations/RequireFinalMethodsInTraitsSniff.php +120 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Lists/DisallowLongListSyntaxSniff.php +71 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Lists/DisallowShortListSyntaxSniff.php +86 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/DisallowCurlyBraceSyntaxSniff.php +81 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/DisallowDeclarationWithoutNameSniff.php +80 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/EnforceCurlyBraceSyntaxSniff.php +81 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/OneDeclarationPerFileSniff.php +96 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/NamingConventions/NoReservedKeywordParameterNamesSniff.php +190 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/OOStructures/AlphabeticExtendsImplementsSniff.php +275 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/ConcatPositionSniff.php +204 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/DisallowLogicalAndOrSniff.php +112 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/DisallowShortTernarySniff.php +76 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/DisallowStandalonePostIncrementDecrementSniff.php +197 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/StrictComparisonsSniff.php +116 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/TypeSeparatorSpacingSniff.php +85 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/PHP/LowercasePHPTagSniff.php +87 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/PHP/OneStatementInShortEchoTagSniff.php +101 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowMixedGroupUseSniff.php +248 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowUseClassSniff.php +211 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowUseConstSniff.php +211 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowUseFunctionSniff.php +211 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/KeywordSpacingSniff.php +207 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/LowercaseFunctionConstSniff.php +156 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/NoLeadingBackslashSniff.php +170 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/NoUselessAliasesSniff.php +155 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/AnonClassKeywordSpacingSniff.php +79 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/CommaSpacingSniff.php +408 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/DisallowInlineTabsSniff.php +173 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/PrecisionAlignmentSniff.php +445 -0
- package/vendor/phpcsstandards/phpcsextra/Universal/ruleset.xml +5 -0
- package/vendor/phpcsstandards/phpcsextra/composer.json +69 -0
- package/vendor/phpcsstandards/phpcsutils/.phpdoc.xml.dist +36 -0
- package/vendor/phpcsstandards/phpcsutils/CHANGELOG.md +1106 -0
- package/vendor/phpcsstandards/phpcsutils/LICENSE +165 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/AbstractSniffs/AbstractArrayDeclarationSniff.php +551 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCFile.php +781 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCTokens.php +123 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/Helper.php +202 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/InvalidTokenArray.php +44 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestFileNotFound.php +47 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestMarkerNotFound.php +43 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestTargetNotFound.php +50 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Fixers/SpacesFixer.php +246 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/Cache.php +218 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrList.php +687 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrListWithCache.php +269 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/NoFileCache.php +164 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/StableCollections.php +75 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/TestUtils/UtilityMethodTestCase.php +459 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/Collections.php +837 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/TokenHelper.php +55 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Arrays.php +227 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Conditions.php +156 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Context.php +232 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ControlStructures.php +276 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/FunctionDeclarations.php +828 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/GetTokensAsString.php +262 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Lists.php +359 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/MessageHelper.php +145 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Namespaces.php +389 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/NamingConventions.php +116 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Numbers.php +322 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ObjectDeclarations.php +359 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Operators.php +252 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Orthography.php +120 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Parentheses.php +419 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/PassedParameters.php +510 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Scopes.php +143 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/TextStrings.php +331 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/UseStatements.php +432 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Variables.php +333 -0
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/ruleset.xml +4 -0
- package/vendor/phpcsstandards/phpcsutils/README.md +297 -0
- package/vendor/phpcsstandards/phpcsutils/composer.json +92 -0
- package/vendor/phpcsstandards/phpcsutils/phpcsutils-autoload.php +68 -0
- package/vendor/squizlabs/php_codesniffer/CHANGELOG.md +7596 -0
- package/vendor/squizlabs/php_codesniffer/CodeSniffer.conf +5 -0
- package/vendor/squizlabs/php_codesniffer/CodeSniffer.conf.dist +9 -0
- package/vendor/squizlabs/php_codesniffer/README.md +153 -0
- package/vendor/squizlabs/php_codesniffer/autoload.php +345 -0
- package/vendor/squizlabs/php_codesniffer/bin/phpcbf +15 -0
- package/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat +10 -0
- package/vendor/squizlabs/php_codesniffer/bin/phpcs +15 -0
- package/vendor/squizlabs/php_codesniffer/bin/phpcs.bat +10 -0
- package/vendor/squizlabs/php_codesniffer/composer.json +90 -0
- package/vendor/squizlabs/php_codesniffer/licence.txt +24 -0
- package/vendor/squizlabs/php_codesniffer/phpcs.xsd +136 -0
- package/vendor/squizlabs/php_codesniffer/src/Config.php +1661 -0
- package/vendor/squizlabs/php_codesniffer/src/Exceptions/DeepExitException.php +20 -0
- package/vendor/squizlabs/php_codesniffer/src/Exceptions/RuntimeException.php +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Exceptions/TokenizerException.php +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Files/DummyFile.php +82 -0
- package/vendor/squizlabs/php_codesniffer/src/Files/File.php +2954 -0
- package/vendor/squizlabs/php_codesniffer/src/Files/FileList.php +261 -0
- package/vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php +219 -0
- package/vendor/squizlabs/php_codesniffer/src/Filters/ExactMatch.php +156 -0
- package/vendor/squizlabs/php_codesniffer/src/Filters/Filter.php +288 -0
- package/vendor/squizlabs/php_codesniffer/src/Filters/GitModified.php +124 -0
- package/vendor/squizlabs/php_codesniffer/src/Filters/GitStaged.php +126 -0
- package/vendor/squizlabs/php_codesniffer/src/Fixer.php +846 -0
- package/vendor/squizlabs/php_codesniffer/src/Generators/Generator.php +128 -0
- package/vendor/squizlabs/php_codesniffer/src/Generators/HTML.php +316 -0
- package/vendor/squizlabs/php_codesniffer/src/Generators/Markdown.php +195 -0
- package/vendor/squizlabs/php_codesniffer/src/Generators/Text.php +259 -0
- package/vendor/squizlabs/php_codesniffer/src/Reporter.php +445 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Cbf.php +254 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Checkstyle.php +111 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Code.php +365 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Csv.php +92 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Diff.php +131 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Emacs.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Full.php +260 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Gitblame.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Hgblame.php +110 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Info.php +173 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Json.php +107 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Junit.php +133 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Notifysend.php +243 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Performance.php +161 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Report.php +87 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Source.php +337 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Summary.php +184 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Svnblame.php +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/VersionControl.php +377 -0
- package/vendor/squizlabs/php_codesniffer/src/Reports/Xml.php +128 -0
- package/vendor/squizlabs/php_codesniffer/src/Ruleset.php +1623 -0
- package/vendor/squizlabs/php_codesniffer/src/Runner.php +992 -0
- package/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractArraySniff.php +172 -0
- package/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractPatternSniff.php +941 -0
- package/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractScopeSniff.php +189 -0
- package/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php +230 -0
- package/vendor/squizlabs/php_codesniffer/src/Sniffs/DeprecatedSniff.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Sniffs/Sniff.php +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml +107 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Arrays/DisallowLongArraySyntaxStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Arrays/DisallowShortArraySyntaxStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/DuplicateClassNameStandard.xml +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml +36 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/AssignmentInConditionStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/EmptyPHPStatementStandard.xml +44 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/EmptyStatementStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/ForLoopShouldBeWhileLoopStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/ForLoopWithTestFunctionCallStandard.xml +24 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/JumbledIncrementerStandard.xml +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/RequireExplicitBooleanOperatorPrecedenceStandard.xml +44 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnconditionalIfStatementStandard.xml +39 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnnecessaryFinalModifierStandard.xml +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnusedFunctionParameterStandard.xml +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UselessOverridingMethodStandard.xml +32 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/DocCommentStandard.xml +269 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/FixmeStandard.xml +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/TodoStandard.xml +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/ControlStructures/DisallowYodaConditionsStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/ControlStructures/InlineControlStructureStandard.xml +22 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/CSSLintStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/ClosureLinterStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/JSHintStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/ByteOrderMarkStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/EndFileNewlineStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/EndFileNoNewlineStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/ExecutableFileStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/InlineHTMLStandard.xml +24 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LineEndingsStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LineLengthStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LowercasedFilenameStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneClassPerFileStandard.xml +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneInterfacePerFileStandard.xml +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneObjectStructurePerFileStandard.xml +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneTraitPerFileStandard.xml +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/DisallowMultipleStatementsStandard.xml +20 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/MultipleStatementAlignmentStandard.xml +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/NoSpaceAfterCastStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/SpaceAfterCastStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/SpaceAfterNotStandard.xml +22 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/SpaceBeforeCastStandard.xml +21 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/CallTimePassByReferenceStandard.xml +31 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/FunctionCallArgumentSpacingStandard.xml +39 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceBsdAllmanStandard.xml +24 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceKernighanRitchieStandard.xml +24 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Metrics/CyclomaticComplexityStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Metrics/NestingLevelStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/AbstractClassNamePrefixStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/CamelCapsFunctionNameStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/ConstructorNameStandard.xml +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/InterfaceNameSuffixStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/TraitNameSuffixStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.xml +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/BacktickOperatorStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/CharacterBeforePHPOpeningTagStandard.xml +22 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/ClosingPHPTagStandard.xml +22 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DeprecatedFunctionsStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowAlternativePHPTagsStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowRequestSuperglobalStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowShortOpenTagStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DiscourageGotoStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/ForbiddenFunctionsStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseConstantStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseKeywordStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseTypeStandard.xml +38 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/NoSilencedErrorsStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/RequireStrictTypesStandard.xml +38 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/SAPIUsageStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/SyntaxStandard.xml +21 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/UpperCaseConstantStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Strings/UnnecessaryHeredocStandard.xml +39 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Strings/UnnecessaryStringConcatStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/VersionControl/SubversionPropertiesStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/ArbitraryParenthesesSpacingStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/DisallowSpaceIndentStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/DisallowTabIndentStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/HereNowdocIdentifierSpacingStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/IncrementDecrementSpacingStandard.xml +26 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/LanguageConstructSpacingStandard.xml +44 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/ScopeIndentStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/SpreadOperatorSpacingAfterStandard.xml +34 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/ArrayIndentSniff.php +193 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowLongArraySyntaxSniff.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowShortArraySyntaxSniff.php +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Classes/DuplicateClassNameSniff.php +126 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Classes/OpeningBraceSameLineSniff.php +124 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/AssignmentInConditionSniff.php +171 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/EmptyPHPStatementSniff.php +183 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/EmptyStatementSniff.php +97 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopShouldBeWhileLoopSniff.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopWithTestFunctionCallSniff.php +101 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/JumbledIncrementerSniff.php +134 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/RequireExplicitBooleanOperatorPrecedenceSniff.php +112 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnconditionalIfStatementSniff.php +93 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnnecessaryFinalModifierSniff.php +88 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnusedFunctionParameterSniff.php +307 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UselessOverridingMethodSniff.php +184 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/DocCommentSniff.php +357 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/FixmeSniff.php +78 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/TodoSniff.php +77 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/ControlStructures/DisallowYodaConditionsSniff.php +185 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php +365 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/CSSLintSniff.php +98 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/ClosureLinterSniff.php +119 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/ESLintSniff.php +115 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/JSHintSniff.php +97 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/ByteOrderMarkSniff.php +82 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/EndFileNewlineSniff.php +84 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/EndFileNoNewlineSniff.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/ExecutableFileSniff.php +62 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/InlineHTMLSniff.php +79 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineEndingsSniff.php +148 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineLengthSniff.php +201 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LowercasedFilenameSniff.php +70 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneClassPerFileSniff.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneInterfacePerFileSniff.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneObjectStructurePerFileSniff.php +62 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneTraitPerFileSniff.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/DisallowMultipleStatementsSniff.php +105 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php +426 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/NoSpaceAfterCastSniff.php +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceAfterCastSniff.php +161 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceAfterNotSniff.php +143 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceBeforeCastSniff.php +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/CallTimePassByReferenceSniff.php +141 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php +197 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceBsdAllmanSniff.php +225 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceKernighanRitchieSniff.php +177 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/CyclomaticComplexitySniff.php +117 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/NestingLevelSniff.php +100 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/AbstractClassNamePrefixSniff.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php +222 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/ConstructorNameSniff.php +178 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/InterfaceNameSuffixSniff.php +55 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/TraitNameSuffixSniff.php +55 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php +151 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/BacktickOperatorSniff.php +48 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/CharacterBeforePHPOpeningTagSniff.php +86 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ClosingPHPTagSniff.php +54 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DeprecatedFunctionsSniff.php +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowAlternativePHPTagsSniff.php +253 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowRequestSuperglobalSniff.php +55 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php +168 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DiscourageGotoSniff.php +50 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ForbiddenFunctionsSniff.php +245 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php +244 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseKeywordSniff.php +82 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseTypeSniff.php +364 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/NoSilencedErrorsSniff.php +77 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/RequireStrictTypesSniff.php +108 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/SAPIUsageSniff.php +67 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/SyntaxSniff.php +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/UpperCaseConstantSniff.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Strings/UnnecessaryHeredocSniff.php +97 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Strings/UnnecessaryStringConcatSniff.php +129 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/VersionControl/GitMergeConflictSniff.php +228 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/VersionControl/SubversionPropertiesSniff.php +186 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/ArbitraryParenthesesSpacingSniff.php +239 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/DisallowSpaceIndentSniff.php +232 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php +201 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/HereNowdocIdentifierSpacingSniff.php +69 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/IncrementDecrementSpacingSniff.php +174 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/LanguageConstructSpacingSniff.php +161 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php +1591 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/SpreadOperatorSpacingAfterSniff.php +159 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.inc +154 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.inc.fixed +155 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.php +81 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.1.inc +33 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.1.inc.fixed +33 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.2.inc +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.2.inc.fixed +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc.fixed +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.1.inc +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.10.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.11.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.2.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.3.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.4.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.5.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.6.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.7.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.8.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.9.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.97.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.98.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.99.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php +98 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc +100 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc.fixed +100 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php +68 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.1.inc +95 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.2.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.3.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.4.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.5.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.6.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.php +96 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.1.inc +86 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.1.inc.fixed +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.2.inc +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.2.inc.fixed +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.php +110 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.inc +74 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php +68 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.1.inc +37 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.2.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.1.inc +95 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.2.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.1.inc +89 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.2.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.4.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/RequireExplicitBooleanOperatorPrecedenceUnitTest.inc +131 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/RequireExplicitBooleanOperatorPrecedenceUnitTest.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.1.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.2.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.1.inc +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.2.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.php +69 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.1.inc +274 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.2.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.3.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.php +78 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.1.inc +173 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.3.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.4.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.5.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.6.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.inc +270 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.inc.fixed +275 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.js +270 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.js.fixed +275 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.2.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.2.js +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php +127 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.inc +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.js +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.inc +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.js +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php +62 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.inc +187 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.php +95 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc +278 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc.fixed +316 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.js +35 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.js.fixed +44 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.2.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.2.js +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.3.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.3.js +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.4.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.5.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.6.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.7.inc +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php +121 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/CSSLintUnitTest.css +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/CSSLintUnitTest.php +77 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ClosureLinterUnitTest.js +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ClosureLinterUnitTest.php +74 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ESLintUnitTest.js +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ESLintUnitTest.php +122 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/JSHintUnitTest.js +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/JSHintUnitTest.php +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.4.inc +0 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.5.inc +0 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.css +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.js +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.css +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.js +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.css +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.css.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.js +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.js.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.4.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.4.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.5.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.6.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.6.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.7.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.7.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.8.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php +68 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.css +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.css.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.js +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.js.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.10.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.css +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.css.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.inc.fixed +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.js +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.js.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.css +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.js +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.4.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.5.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.6.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.6.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.7.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.8.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.8.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.9.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.9.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.1.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.2.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.3.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.4.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php +76 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.1.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.4.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.5.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.6.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.7.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php +69 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.1.inc +18 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.1.inc.fixed +18 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.2.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.2.inc.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.css +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.css.fixed +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.js +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.js.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php +68 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.1.inc +84 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.3.inc +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.4.inc +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php +114 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.1.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.php +106 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.php +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.php +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneObjectStructurePerFileUnitTest.inc +26 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneObjectStructurePerFileUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.inc +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.php +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/lowercased_filename_unit_test.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.inc +20 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.inc.fixed +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc +504 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc.fixed +504 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js +118 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js.fixed +118 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php +170 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc +51 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc.fixed +51 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.php +77 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.1.inc +100 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.1.inc.fixed +97 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php +103 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.1.inc +86 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.1.inc.fixed +83 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.js +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.js.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php +96 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceBeforeCastUnitTest.inc +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceBeforeCastUnitTest.inc.fixed +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceBeforeCastUnitTest.php +83 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.1.inc +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.php +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.1.inc +199 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.1.inc.fixed +199 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php +96 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc +270 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc.fixed +287 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.1.inc +232 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.1.inc.fixed +222 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.2.inc +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.2.inc.fixed +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php +116 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.1.inc +460 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php +77 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.1.inc +108 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php +70 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/AbstractClassNamePrefixUnitTest.1.inc +45 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/AbstractClassNamePrefixUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/AbstractClassNamePrefixUnitTest.php +67 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.1.inc +204 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.2.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php +105 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.inc +130 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/InterfaceNameSuffixUnitTest.1.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/InterfaceNameSuffixUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/InterfaceNameSuffixUnitTest.php +62 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/TraitNameSuffixUnitTest.1.inc +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/TraitNameSuffixUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/TraitNameSuffixUnitTest.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.1.inc +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.4.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.5.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php +74 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.1.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.2.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.3.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.1.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.2.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.1.inc +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.1.inc.fixed +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.2.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.2.inc.fixed +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php +110 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowRequestSuperglobalUnitTest.inc +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowRequestSuperglobalUnitTest.php +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.1.inc +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.1.inc.fixed +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.2.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.2.inc.fixed +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.3.inc +20 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.4.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php +110 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.inc +18 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.1.inc +153 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.1.inc.fixed +153 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.2.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js.fixed +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php +105 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc.fixed +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php +78 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc +145 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed +145 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php +117 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.1.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.10.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.11.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.11.inc.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.12.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.12.inc.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.13.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.14.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.14.inc.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.15.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.15.inc.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.2.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.3.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.4.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.5.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.6.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.7.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.8.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.9.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php +53 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.1.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc +98 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc.fixed +98 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryHeredocUnitTest.1.inc +108 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryHeredocUnitTest.1.inc.fixed +108 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryHeredocUnitTest.2.inc +108 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryHeredocUnitTest.2.inc.fixed +108 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryHeredocUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryHeredocUnitTest.php +74 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.1.inc +34 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.js +15 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php +87 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.1.css +35 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.1.inc +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.2.css +32 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.2.inc +31 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.3.inc +43 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.4.inc +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.5.inc +34 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.6.inc +34 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.7.inc +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.js +33 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.php +175 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/SubversionPropertiesUnitTest.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/SubversionPropertiesUnitTest.php +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.1.inc +192 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.1.inc.fixed +180 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.2.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php +106 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.1.inc +125 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.1.inc.fixed +125 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.2.inc +125 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.2.inc.fixed +125 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.3.inc +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.3.inc.fixed +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.4.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.css +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.css.fixed +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.js +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.js.fixed +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php +145 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.1.inc +102 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.1.inc.fixed +102 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.2.inc +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.2.inc.fixed +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.3.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js.fixed +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php +153 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/HereNowdocIdentifierSpacingUnitTest.inc +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/HereNowdocIdentifierSpacingUnitTest.inc.fixed +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/HereNowdocIdentifierSpacingUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc +43 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc.fixed +41 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.js +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.js.fixed +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.php +86 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc +100 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc.fixed +94 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.2.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php +101 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc +1659 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc.fixed +1659 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.js +239 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.js.fixed +239 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc +1659 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc.fixed +1659 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc +34 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc.fixed +34 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.4.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php +220 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc +78 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.2.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Generic/ruleset.xml +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php +89 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php +127 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php +100 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php +316 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/UnusedSystemSniff.php +143 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php +86 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/DebugCodeSniff.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/FirebugConsoleSniff.php +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php +83 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php +220 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/DisallowNewWidgetSniff.php +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php +105 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/EvalObjectFactorySniff.php +116 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/GetRequestDataSniff.php +108 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/ReturnFunctionValueSniff.php +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Strings/JoinStringsSniff.php +78 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.css +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php +53 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc +51 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.inc +112 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.inc +67 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.inc +101 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.js +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.js +20 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.js +186 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php +62 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php +53 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.inc +182 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc +26 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.inc +30 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.js +18 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php +67 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/MySource/ruleset.xml +18 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Classes/ClassDeclarationStandard.xml +22 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/ClassCommentStandard.xml +177 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/FileCommentStandard.xml +293 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/FunctionCommentStandard.xml +230 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/InlineCommentStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/ControlStructures/ControlSignatureStandard.xml +36 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/ControlStructures/MultiLineConditionStandard.xml +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Files/IncludingFileStandard.xml +24 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Files/LineLengthStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Formatting/MultiLineAssignmentStandard.xml +35 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionCallSignatureStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionDeclarationStandard.xml +41 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/ValidDefaultValueStandard.xml +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidClassNameStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidFunctionNameStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidVariableNameStandard.xml +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ObjectOperatorIndentStandard.xml +39 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeClosingBraceStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeIndentStandard.xml +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php +150 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php +122 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php +583 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php +539 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/InlineCommentSniff.php +68 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/ControlStructures/ControlSignatureSniff.php +48 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/ControlStructures/MultiLineConditionSniff.php +283 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Files/IncludingFileSniff.php +136 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Formatting/MultiLineAssignmentSniff.php +106 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/FunctionCallSignatureSniff.php +634 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/FunctionDeclarationSniff.php +549 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/ValidDefaultValueSniff.php +78 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidClassNameSniff.php +98 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidFunctionNameSniff.php +284 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidVariableNameSniff.php +103 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ObjectOperatorIndentSniff.php +204 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php +182 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeIndentSniff.php +24 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.1.inc +114 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.1.inc.fixed +125 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.2.inc +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php +100 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.inc +163 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php +78 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.1.inc +53 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.2.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.3.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.4.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php +95 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc +512 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc.fixed +491 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php +103 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc.fixed +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc +165 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php +77 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc +251 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc.fixed +247 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.js +251 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.js.fixed +247 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php +96 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc +99 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc.fixed +99 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.inc +22 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc +576 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc.fixed +591 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.js +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.js.fixed +84 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php +164 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.1.inc +490 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.1.inc.fixed +487 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js.fixed +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php +149 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.1.inc +116 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc +90 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php +78 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.inc +243 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php +154 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.inc +101 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.inc +142 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.inc.fixed +142 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php +79 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc +170 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed +177 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.inc +314 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.inc.fixed +314 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/ruleset.xml +41 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Classes/ClassDeclarationStandard.xml +48 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Files/SideEffectsStandard.xml +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Methods/CamelCapsMethodNameStandard.xml +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Classes/ClassDeclarationSniff.php +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php +303 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Methods/CamelCapsMethodNameSniff.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.1.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.2.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.3.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php +62 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.1.inc +87 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.10.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.11.inc +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.12.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.13.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.14.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.15.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.16.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.17.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.2.inc +24 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.4.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.5.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.6.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.7.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.8.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.9.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php +85 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.inc +81 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/ruleset.xml +47 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Classes/ClassInstantiationStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Classes/ClosingBraceStandard.xml +35 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Classes/OpeningBraceSpaceStandard.xml +32 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/ControlStructures/BooleanOperatorPlacementStandard.xml +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/ControlStructures/ControlStructureSpacingStandard.xml +124 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Files/ImportStatementStandard.xml +33 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Files/OpenTagStandard.xml +40 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Functions/NullableTypeDeclarationStandard.xml +45 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Functions/ReturnTypeDeclarationStandard.xml +41 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Keywords/ShortFormTypeKeywordsStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Namespaces/CompoundNamespaceDepthStandard.xml +28 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Operators/OperatorSpacingStandard.xml +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Properties/ConstantVisibilityStandard.xml +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/AnonClassDeclarationSniff.php +246 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/ClassInstantiationSniff.php +112 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/ClosingBraceSniff.php +67 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/OpeningBraceSpaceSniff.php +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/ControlStructures/BooleanOperatorPlacementSniff.php +229 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/ControlStructures/ControlStructureSpacingSniff.php +219 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Files/DeclareStatementSniff.php +262 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Files/FileHeaderSniff.php +429 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Files/ImportStatementSniff.php +77 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Files/OpenTagSniff.php +76 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Functions/NullableTypeDeclarationSniff.php +94 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Functions/ReturnTypeDeclarationSniff.php +110 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Keywords/ShortFormTypeKeywordsSniff.php +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Namespaces/CompoundNamespaceDepthSniff.php +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Operators/OperatorSpacingSniff.php +128 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Properties/ConstantVisibilitySniff.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Traits/UseDeclarationSniff.php +700 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc +96 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc.fixed +98 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc +51 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc.fixed +51 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.inc +52 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.inc +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.inc.fixed +48 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.inc +131 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.inc.fixed +141 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc +133 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc.fixed +131 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.php +77 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.1.inc +50 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.1.inc.fixed +54 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.php +84 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.1.inc +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.10.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.10.inc.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.11.inc +21 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.11.inc.fixed +22 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.12.inc +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.12.inc.fixed +18 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.13.inc +24 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.14.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.15.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.16.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.17.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.18.inc +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.2.inc +33 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.2.inc.fixed +29 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.3.inc +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.4.inc +15 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.4.inc.fixed +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.5.inc +18 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.6.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.7.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.7.inc.fixed +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.8.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.9.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.php +87 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.inc +26 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.inc.fixed +26 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.1.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.2.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.2.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.3.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.4.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.5.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.inc +95 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.inc.fixed +92 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.inc +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.inc.fixed +62 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.php +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.inc +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.inc.fixed +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.inc +31 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc +79 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc.fixed +79 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.php +81 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.inc +22 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.inc +221 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.inc.fixed +213 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php +76 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/ruleset.xml +348 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Classes/ClassDeclarationStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Classes/PropertyDeclarationStandard.xml +81 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/SwitchDeclarationStandard.xml +104 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Files/ClosingTagStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Files/EndFileNewlineStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Methods/FunctionCallSignatureStandard.xml +107 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Methods/FunctionClosingBraceStandard.xml +26 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Methods/MethodDeclarationStandard.xml +51 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/NamespaceDeclarationStandard.xml +22 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/UseDeclarationStandard.xml +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php +540 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php +226 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/ControlStructureSpacingSniff.php +141 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/ElseIfDeclarationSniff.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php +396 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/ClosingTagSniff.php +89 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/EndFileNewlineSniff.php +107 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionCallSignatureSniff.php +79 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionClosingBraceSniff.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/MethodDeclarationSniff.php +162 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/NamespaceDeclarationSniff.php +100 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/UseDeclarationSniff.php +297 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc +346 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc.fixed +335 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php +103 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.inc +87 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.inc.fixed +84 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php +84 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc +81 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc.fixed +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php +67 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc.fixed +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc +598 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc.fixed +593 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php +86 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.1.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.1.inc.fixed +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.4.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.4.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.5.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.5.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.6.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.6.inc.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.7.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.7.inc.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php +69 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.1.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.1.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.10.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.10.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.11.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.11.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.12.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.12.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.13.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.13.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.14.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.2.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.3.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.3.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.4.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.5.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.6.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.6.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.7.inc +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.7.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.8.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.9.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.9.inc.fixed +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc +267 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc.fixed +283 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php +99 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc +70 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc.fixed +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc.fixed +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php +76 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.inc +26 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.inc.fixed +28 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc +40 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.10.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.10.inc.fixed +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.11.inc +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.11.inc.fixed +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.12.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.12.inc.fixed +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.13.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.13.inc.fixed +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.14.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.14.inc.fixed +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.15.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.16.inc +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.16.inc.fixed +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.17.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.18.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc +21 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc.fixed +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc.fixed +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.4.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.5.inc +47 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.5.inc.fixed +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.6.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.7.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.8.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.9.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php +102 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/ruleset.xml +218 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Arrays/ArrayBracketSpacingStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Arrays/ArrayDeclarationStandard.xml +117 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Classes/LowercaseClassKeywordsStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Classes/SelfMemberReferenceStandard.xml +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/DocCommentAlignmentStandard.xml +39 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/FunctionCommentThrowTagStandard.xml +32 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/ForEachLoopDeclarationStandard.xml +39 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/ForLoopDeclarationStandard.xml +55 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/LowercaseDeclarationStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Functions/LowercaseFunctionKeywordsStandard.xml +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/PHP/HeredocStandard.xml +32 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Scope/StaticThisUsageStandard.xml +31 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Strings/EchoedStringsStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/CastSpacingStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/FunctionClosingBraceSpaceStandard.xml +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/FunctionOpeningBraceStandard.xml +41 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/LanguageConstructSpacingStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/MemberVarSpacingStandard.xml +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ScopeClosingBraceStandard.xml +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ScopeKeywordSpacingStandard.xml +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/SemicolonSpacingStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/SuperfluousWhitespaceStandard.xml +98 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayBracketSpacingSniff.php +95 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php +962 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionClosingBraceSpaceSniff.php +136 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionNameSpacingSniff.php +113 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionOpeningBraceSpaceSniff.php +178 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColonSpacingSniff.php +109 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColourDefinitionSniff.php +90 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DisallowMultipleStyleDefinitionsSniff.php +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DuplicateClassDefinitionSniff.php +118 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DuplicateStyleDefinitionSniff.php +90 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyClassDefinitionSniff.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyStyleDefinitionSniff.php +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ForbiddenStylesSniff.php +179 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/IndentationSniff.php +152 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/LowercaseStyleDefinitionSniff.php +99 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/MissingColonSniff.php +93 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/NamedColoursSniff.php +95 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/OpacitySniff.php +103 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/SemicolonSpacingSniff.php +105 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ShorthandSizeSniff.php +183 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassDeclarationSniff.php +207 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassFileNameSniff.php +70 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/DuplicatePropertySniff.php +84 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/LowercaseClassKeywordsSniff.php +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/SelfMemberReferenceSniff.php +248 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ValidClassNameSniff.php +87 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/BlockCommentSniff.php +401 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/ClassCommentSniff.php +109 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/ClosingDeclarationCommentSniff.php +130 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/DocCommentAlignmentSniff.php +167 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/EmptyCatchCommentSniff.php +55 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FileCommentSniff.php +228 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php +800 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentThrowTagSniff.php +233 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/InlineCommentSniff.php +349 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/LongConditionClosingCommentSniff.php +218 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/PostStatementCommentSniff.php +129 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php +201 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ControlSignatureSniff.php +337 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ElseIfDeclarationSniff.php +51 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ForEachLoopDeclarationSniff.php +236 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ForLoopDeclarationSniff.php +316 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/InlineIfDeclarationSniff.php +155 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/LowercaseDeclarationSniff.php +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/SwitchDeclarationSniff.php +304 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Debug/JSLintSniff.php +88 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Debug/JavaScriptLintSniff.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Files/FileExtensionSniff.php +68 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Formatting/OperatorBracketSniff.php +402 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php +479 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationSniff.php +34 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDuplicateArgumentSniff.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/GlobalFunctionSniff.php +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/LowercaseFunctionKeywordsSniff.php +69 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/MultiLineFunctionDeclarationSniff.php +262 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/NamingConventions/ValidFunctionNameSniff.php +54 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/NamingConventions/ValidVariableNameSniff.php +190 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/DisallowObjectStringIndexSniff.php +87 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/ObjectInstantiationSniff.php +85 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/ObjectMemberCommaSniff.php +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ComparisonOperatorUsageSniff.php +235 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/IncrementDecrementUsageSniff.php +231 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ValidLogicalOperatorsSniff.php +67 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/CommentedOutCodeSniff.php +283 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowBooleanStatementSniff.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowComparisonAssignmentSniff.php +112 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowInlineIfSniff.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowMultipleAssignmentsSniff.php +196 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowSizeFunctionsInLoopsSniff.php +116 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DiscouragedFunctionsSniff.php +38 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/EmbeddedPhpSniff.php +516 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/EvalSniff.php +48 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/GlobalKeywordSniff.php +53 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/HeredocSniff.php +51 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/InnerFunctionsSniff.php +76 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/LowercasePHPFunctionsSniff.php +167 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/NonExecutableCodeSniff.php +303 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MemberVarScopeSniff.php +77 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MethodScopeSniff.php +83 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/StaticThisUsageSniff.php +128 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/ConcatenationSpacingSniff.php +164 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/DoubleQuoteUsageSniff.php +144 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/EchoedStringsSniff.php +88 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/CastSpacingSniff.php +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php +359 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionClosingBraceSpaceSniff.php +164 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php +98 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionSpacingSniff.php +372 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/LanguageConstructSpacingSniff.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/LogicalOperatorSpacingSniff.php +102 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/MemberVarSpacingSniff.php +252 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php +167 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php +409 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/PropertyLabelSpacingSniff.php +81 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php +114 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ScopeKeywordSpacingSniff.php +172 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SemicolonSpacingSniff.php +116 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SuperfluousWhitespaceSniff.php +265 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc +31 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc.fixed +31 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php +62 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc +560 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc.fixed +598 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc +555 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc.fixed +591 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.4.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.4.inc.fixed +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php +262 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.css +81 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.css.fixed +85 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.php +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.css +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.php +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.css +108 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.css.fixed +106 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.php +69 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.css +42 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.css.fixed +40 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.php +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.css +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.css.fixed +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.css +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.css.fixed +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.css +103 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.css +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.php +53 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.css +15 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.css +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.css +18 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.css.fixed +18 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.php +62 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.1.css +79 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.1.css.fixed +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.2.css +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.php +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.css +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/MissingColonUnitTest.css +21 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/MissingColonUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/NamedColoursUnitTest.css +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/NamedColoursUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.css +35 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.css.fixed +35 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.php +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.css +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.css.fixed +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.1.css +41 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.1.css.fixed +37 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.2.css +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.php +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc +130 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc.fixed +140 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php +91 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc +45 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php +82 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.js +45 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc.fixed +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc +199 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc.fixed +187 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.inc +191 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc +309 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc.fixed +311 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php +109 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.inc +145 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.1.inc +124 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.1.inc.fixed +117 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.3.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.4.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.4.inc.fixed +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.5.inc +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.5.inc.fixed +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php +96 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc +103 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc.fixed +103 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.js +76 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.js.fixed +76 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php +81 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc +55 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.inc +43 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.inc.fixed +43 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.js +40 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.js.fixed +40 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.10.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.2.inc +11 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.2.js +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.3.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.4.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.5.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.6.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.7.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.8.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.9.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php +82 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.inc +511 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc +1160 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc.fixed +1160 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php +208 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc +196 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc.fixed +189 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.js +129 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.js.fixed +125 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php +96 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc +1033 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc.fixed +1033 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.js +444 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.js.fixed +444 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php +107 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.1.js +36 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.1.js.fixed +39 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.2.js +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.inc +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.inc.fixed +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc +456 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc.fixed +456 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php +88 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.1.inc +320 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.1.inc.fixed +324 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.2.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js +135 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js.fixed +141 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php +115 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc.fixed +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc +36 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc.fixed +36 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php +61 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.1.inc +126 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.1.inc.fixed +92 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.1.js +122 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.1.js.fixed +88 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.2.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.2.js +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php +138 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc +48 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc.fixed +48 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.inc +24 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.inc.fixed +24 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php +66 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc +333 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc.fixed +342 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.js +287 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php +157 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JSLintUnitTest.js +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JSLintUnitTest.php +74 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.js +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.php +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.1.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.3.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.4.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.5.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.1.inc +203 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.1.inc.fixed +203 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.3.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js +118 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js.fixed +118 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php +121 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.1.inc +197 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.1.inc.fixed +173 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.2.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.4.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.5.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.6.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php +116 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.1.inc +75 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.2.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.3.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.inc +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php +53 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.inc +28 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.inc.fixed +28 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.inc +356 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.inc.fixed +370 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.js +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.js.fixed +81 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php +120 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.inc +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.inc +157 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php +93 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js +37 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.inc +49 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.js +47 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.js.fixed +47 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc +138 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.js +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php +105 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.inc +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.inc +28 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.css +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.inc +158 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.inc +27 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.inc +83 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.inc +18 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.js +2 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php +67 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.1.inc +150 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.js +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php +77 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.1.inc +275 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.1.inc.fixed +287 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.10.inc +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.11.inc +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.12.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.12.inc.fixed +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.13.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.13.inc.fixed +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.14.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.15.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.16.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.17.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.18.inc +15 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.18.inc.fixed +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.19.inc +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.19.inc.fixed +15 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.2.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.2.inc.fixed +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.20.inc +15 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.20.inc.fixed +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.21.inc +15 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.21.inc.fixed +16 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.22.inc +30 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.22.inc.fixed +31 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.23.inc +23 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.24.inc +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.24.inc.fixed +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.3.inc +123 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.3.inc.fixed +132 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.4.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.4.inc.fixed +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.5.inc +48 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.5.inc.fixed +39 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.6.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.7.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.8.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.9.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php +226 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EvalUnitTest.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EvalUnitTest.php +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.1.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.2.inc +17 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.inc +87 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.inc +50 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.inc.fixed +50 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.1.inc +420 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.2.inc +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.3.inc +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.4.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php +124 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.inc +72 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php +63 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.inc +57 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php +58 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.inc +127 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php +67 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc +49 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc.fixed +47 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc +37 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc.fixed +37 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php +67 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc.fixed +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.inc.fixed +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc +269 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc.fixed +261 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js +93 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js.fixed +93 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php +107 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc +39 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc.fixed +45 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js +132 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js.fixed +133 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php +80 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc +54 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc.fixed +49 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.js +115 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.js.fixed +109 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.1.inc +595 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.1.inc.fixed +687 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.2.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.2.inc.fixed +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.3.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.3.inc.fixed +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.4.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.5.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.5.inc.fixed +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.6.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.6.inc.fixed +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.7.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php +142 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc +43 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc.fixed +41 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php +65 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.inc +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.inc.fixed +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.js +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.js.fixed +19 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php +59 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc +374 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc.fixed +359 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php +90 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc +52 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc.fixed +48 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php +73 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.1.inc +510 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.1.inc.fixed +502 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js +104 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js.fixed +98 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php +180 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js +40 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js.fixed +39 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.php +60 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc +134 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed +138 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php +64 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.1.inc +149 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.1.inc.fixed +143 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.2.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.3.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.3.inc.fixed +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php +88 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc +42 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc.fixed +41 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js.fixed +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php +87 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.css +32 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.css.fixed +30 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.inc +74 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.inc.fixed +68 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.js +56 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.js.fixed +50 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.css +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.css.fixed +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.inc +9 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.inc.fixed +7 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.js +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.js.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.css +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.css.fixed +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.inc +14 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.inc.fixed +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.js +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.js.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.4.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.4.inc.fixed +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.5.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.5.inc.fixed +4 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php +117 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/ruleset.xml +138 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/Debug/CodeAnalyzerStandard.xml +25 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/Files/ClosingTagStandard.xml +22 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/NamingConventions/ValidVariableNameStandard.xml +37 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/Debug/CodeAnalyzerSniff.php +100 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/Files/ClosingTagSniff.php +79 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/NamingConventions/ValidVariableNameSniff.php +196 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.php +71 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.1.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.1.inc.fixed +12 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.2.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.3.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.3.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.4.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.4.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.5.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.5.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.6.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.6.inc.fixed +3 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.7.inc +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.7.inc.fixed +1 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.php +70 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.inc +131 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php +102 -0
- package/vendor/squizlabs/php_codesniffer/src/Standards/Zend/ruleset.xml +32 -0
- package/vendor/squizlabs/php_codesniffer/src/Tokenizers/CSS.php +541 -0
- package/vendor/squizlabs/php_codesniffer/src/Tokenizers/Comment.php +283 -0
- package/vendor/squizlabs/php_codesniffer/src/Tokenizers/JS.php +1256 -0
- package/vendor/squizlabs/php_codesniffer/src/Tokenizers/PHP.php +4005 -0
- package/vendor/squizlabs/php_codesniffer/src/Tokenizers/Tokenizer.php +1738 -0
- package/vendor/squizlabs/php_codesniffer/src/Util/Cache.php +355 -0
- package/vendor/squizlabs/php_codesniffer/src/Util/Common.php +605 -0
- package/vendor/squizlabs/php_codesniffer/src/Util/Help.php +625 -0
- package/vendor/squizlabs/php_codesniffer/src/Util/Standards.php +340 -0
- package/vendor/squizlabs/php_codesniffer/src/Util/Timing.php +133 -0
- package/vendor/squizlabs/php_codesniffer/src/Util/Tokens.php +814 -0
- package/vendor/squizlabs/php_codesniffer/tests/AllTests.php +58 -0
- package/vendor/squizlabs/php_codesniffer/tests/ConfigDouble.php +212 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/AbstractMethodUnitTest.php +223 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/AllTests.php +63 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Autoloader/DetermineLoadedClassTest.php +126 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Autoloader/TestFiles/A.inc +3 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Autoloader/TestFiles/B.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Autoloader/TestFiles/C.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Autoloader/TestFiles/Sub/C.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Config/GeneratorArgTest.php +79 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Config/ReportWidthTest.php +332 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Config/SniffsExcludeArgsTest.php +200 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/ErrorSuppressionTest.php +1278 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/FindEndOfStatementTest.inc +105 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/FindEndOfStatementTest.php +457 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.inc +52 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.php +145 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.inc +47 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.php +162 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/FindStartOfStatementTest.inc +200 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/FindStartOfStatementTest.php +973 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetClassPropertiesTest.inc +58 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetClassPropertiesTest.php +192 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetConditionTest.inc +91 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetConditionTest.php +494 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetDeclarationNameJSTest.js +23 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetDeclarationNameJSTest.php +158 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetDeclarationNameTest.inc +102 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetDeclarationNameTest.php +225 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMemberPropertiesTest.inc +356 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMemberPropertiesTest.php +1191 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersParseError1Test.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersParseError1Test.php +38 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersParseError2Test.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersParseError2Test.php +38 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersTest.inc +338 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersTest.php +3182 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodPropertiesTest.inc +226 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodPropertiesTest.php +1562 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetTokensAsStringTest.inc +25 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/GetTokensAsStringTest.php +334 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/IsReferenceTest.inc +216 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/File/IsReferenceTest.php +396 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Filters/AbstractFilterTestCase.php +250 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Filters/Filter/AcceptTest.php +110 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Filters/Filter/AcceptTest.xml +16 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Filters/GitModifiedTest.php +268 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Filters/GitStagedTest.php +268 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-BlankLinesAtEnd.diff +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-BlankLinesAtEnd.inc +11 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-BlankLinesAtStart.diff +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-BlankLinesAtStart.inc +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-LineAdded.diff +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-LineAdded.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-LineRemoved.diff +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-LineRemoved.inc +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-NoDiff.diff +0 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-NoDiff.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-NoTrailingWhitespace.diff +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-NoTrailingWhitespace.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-TabsToSpaces.diff +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-TabsToSpaces.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-VarNameChanged.diff +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-VarNameChanged.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-WhiteSpaceAtEnd.diff +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-WhiteSpaceAtEnd.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-WhiteSpaceAtStart.diff +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-WhiteSpaceAtStart.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest-WindowsLineEndings.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/Fixtures/GenerateDiffTest.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Fixer/GenerateDiffTest.php +227 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/AllValidDocsTest.xml +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonBlankLines.html +88 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonBlankLines.md +35 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonBlankLines.txt +18 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonBlockLength.html +98 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonBlockLength.md +47 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonBlockLength.txt +23 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonEncoding.html +88 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonEncoding.md +48 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonEncoding.txt +26 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonLineLength.html +89 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonLineLength.md +31 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeComparisonLineLength.txt +18 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeTitleLineWrapping.html +118 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeTitleLineWrapping.md +79 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeTitleLineWrapping.txt +33 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeTitleWhitespace.html +98 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeTitleWhitespace.md +44 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputCodeTitleWhitespace.txt +20 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputDocumentationTitleCase.html +78 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputDocumentationTitleCase.md +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputDocumentationTitleCase.txt +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputDocumentationTitleLength.html +78 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputDocumentationTitleLength.md +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputDocumentationTitleLength.txt +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputEmpty.txt +0 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputOneDoc.html +78 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputOneDoc.md +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputOneDoc.txt +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardBlankLines.html +80 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardBlankLines.md +11 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardBlankLines.txt +11 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardEncoding.html +79 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardEncoding.md +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardEncoding.txt +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardIndent.html +81 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardIndent.md +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardIndent.txt +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardLineWrapping.html +80 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardLineWrapping.md +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStandardLineWrapping.txt +11 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStructureDocs.html +191 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStructureDocs.md +180 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputStructureDocs.txt +111 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedElementAtWrongLevel.html +77 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedElementAtWrongLevel.md +6 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedElementAtWrongLevel.txt +5 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedOneElmAtWrongLevel.html +78 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedOneElmAtWrongLevel.md +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedOneElmAtWrongLevel.txt +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedSuperfluousCodeElement.html +88 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedSuperfluousCodeElement.md +25 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedSuperfluousCodeElement.txt +13 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedUnknownElement.html +77 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedUnknownElement.md +6 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Expectations/ExpectedOutputUnsupportedUnknownElement.txt +5 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/HTMLDouble.php +40 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/MarkdownDouble.php +36 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/MockGenerator.php +28 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/CodeComparisonBlankLinesStandard.xml +33 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/CodeComparisonBlockLengthStandard.xml +35 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/CodeComparisonEncodingStandard.xml +42 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/CodeComparisonLineLengthStandard.xml +25 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/CodeTitleLineWrappingStandard.xml +55 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/CodeTitleWhitespaceStandard.xml +32 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/DocumentationTitleCaseStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/DocumentationTitleLengthStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/StandardBlankLinesStandard.xml +13 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/StandardEncodingStandard.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/StandardIndentStandard.xml +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Content/StandardLineWrappingStandard.xml +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Structure/NoContentStandard.xml +2 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Structure/NoDocumentationElementStandard.xml +2 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Structure/OneCodeComparisonNoStandardStandard.xml +14 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Structure/OneStandardBlockCodeComparisonStandard.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Structure/OneStandardBlockNoCodeStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Structure/OneStandardBlockTwoCodeComparisonsStandard.xml +31 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Structure/TwoStandardBlocksNoCodeStandard.xml +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Structure/TwoStandardBlocksOneCodeComparisonStandard.xml +24 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Structure/TwoStandardBlocksThreeCodeComparisonsStandard.xml +48 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Unsupported/ElementAtWrongLevelStandard.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Unsupported/OneElmAtWrongLevelStandard.xml +13 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Unsupported/SuperfluousCodeElementStandard.xml +24 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Docs/Unsupported/UnknownElementStandard.xml +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/CodeComparisonBlankLinesSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/CodeComparisonBlockLengthSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/CodeComparisonEncodingSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/CodeComparisonLineLengthSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/CodeTitleLineWrappingSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/CodeTitleWhitespaceSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/DocumentationTitleCaseSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/DocumentationTitleLengthSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/StandardBlankLinesSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/StandardEncodingSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/StandardIndentSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Content/StandardLineWrappingSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/DummySniff.php +25 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Structure/DocumentationMissingSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Structure/NoContentSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Structure/NoDocumentationElementSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Structure/OneCodeComparisonNoStandardSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Structure/OneStandardBlockCodeComparisonSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Structure/OneStandardBlockNoCodeSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Structure/OneStandardBlockTwoCodeComparisonsSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Structure/TwoStandardBlocksNoCodeSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Structure/TwoStandardBlocksOneCodeComparisonSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Structure/TwoStandardBlocksThreeCodeComparisonsSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Unsupported/ElementAtWrongLevelSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Unsupported/OneElmAtWrongLevelSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Unsupported/SuperfluousCodeElementSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/Sniffs/Unsupported/UnknownElementSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/Fixtures/StandardWithDocs/ruleset.xml +4 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/GeneratorTest.php +245 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/HTMLTest.php +292 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/MarkdownTest.php +290 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/NoDocsTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/NoValidDocsTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/OneDocTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/StructureDocsTest.xml +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Generators/TextTest.php +197 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/AbstractRulesetTestCase.php +115 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ConstructorNoSniffsTest.xml +6 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ConstructorTest.php +293 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ExpandSniffDirectoryTest.php +78 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ExpandSniffDirectoryTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ExplainCustomRulesetTest.xml +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ExplainSingleSniffTest.xml +6 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ExplainTest.php +264 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/.hidden/HiddenDirShouldBeIgnoredSniff.php +15 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/AbstractSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/DummySniff.php +25 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/.hidden/HiddenDirShouldBeIgnoredSniff.php +15 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/AbstractSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryA/.HiddenFileSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryA/.hidden/DoNotFindMeSniff.txt +0 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryA/.hidden/HiddenDirShouldBeIgnoredSniff.php +15 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryA/DoNotFindMeSniff.txt +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryA/FindMeSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryA/IncorrectFileExtensionSniff.inc +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryA/MissingSniffSuffix.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryA/Subdir/IncorrectLevelShouldStillBeFoundSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryB/AnotherAbstractSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryB/FindMeSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/CategoryB/IncorrectFileExtensionSniff.php3 +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Sniffs/IncorrectLevelShouldStillBeFoundSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Utils/NotInSniffsDirSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/Utils/SubDir/NotInSniffsDirSniff.php +12 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/DirectoryExpansion/.hiddenAbove/src/MyStandard/ruleset.xml +4 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/InvalidNoSniffsDir/Sniffs +0 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/InvalidNoSniffsDir/ruleset.xml +4 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/ProcessRulesetAutoloadLoadAlways.1.php +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/ProcessRulesetAutoloadLoadAlways.2.php +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/ProcessRulesetAutoloadLoadAlways.3.php +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/ProcessRulesetAutoloadLoadAlways.4.php +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/ProcessRulesetAutoloadLoadPhpcbfOnly.php +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/ProcessRulesetAutoloadLoadPhpcsOnly.php +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/PropertyTypeHandlingInline.inc +26 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithLongReplacementSniff.php +41 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingLinuxNewlinesSniff.php +45 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementContainingNewlinesSniff.php +45 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithReplacementSniff.php +41 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/Deprecated/WithoutReplacementSniff.php +41 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyDeprecationVersionSniff.php +41 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/EmptyRemovalVersionSniff.php +41 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationMessageSniff.php +42 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidDeprecationVersionSniff.php +41 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/DeprecatedInvalid/InvalidRemovalVersionSniff.php +41 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/InvalidSniffs/RegisterNoArraySniff.php +25 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/AllowedAsDeclaredSniff.php +28 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/AllowedViaMagicMethodSniff.php +40 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/AllowedViaStdClassSniff.php +26 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/NotAllowedViaAttributeSniff.php +27 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/PropertyTypeHandlingSniff.php +125 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/ValidSniffs/RegisterEmptyArraySniff.php +25 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/Fixtures/TestStandard/ruleset.xml +4 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/GetIgnorePatternsTest.php +111 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/GetIgnorePatternsTest.xml +19 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/GetIncludePatternsTest.php +108 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/GetIncludePatternsTest.xml +15 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/PopulateTokenListenersRegisterNoArrayTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/PopulateTokenListenersTest.php +548 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/PopulateTokenListenersTest.xml +45 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRuleInvalidTypeTest.php +43 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRuleInvalidTypeTest.xml +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRuleShouldProcessElementTest.php +660 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRuleShouldProcessElementTest.xml +100 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetAutoExpandSniffsDirectoryTest.xml +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetAutoloadFileNotFoundTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetAutoloadTest.php +164 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetAutoloadTest.xml +37 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetBrokenRulesetEmptyFileTest.xml +0 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetBrokenRulesetMultiErrorTest.xml +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetBrokenRulesetSingleErrorTest.xml +2 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetBrokenRulesetTest.php +92 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetExcludeSniffGroupTest.xml +11 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetInvalidNoSniffsDirTest.xml +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetMiscTest.xml +25 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetShouldProcessElementTest.php +388 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetShouldProcessElementTest.xml +54 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ProcessRulesetTest.php +264 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/PropertyTypeHandlingInlineTest.xml +6 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/PropertyTypeHandlingTest.php +234 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/PropertyTypeHandlingTest.xml +44 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/RegisterSniffsTest.php +293 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/RuleInclusionAbsoluteLinuxTest.php +119 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/RuleInclusionAbsoluteLinuxTest.xml +11 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/RuleInclusionAbsoluteWindowsTest.php +116 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/RuleInclusionAbsoluteWindowsTest.xml +11 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/RuleInclusionTest-include.xml +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/RuleInclusionTest.php +479 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/RuleInclusionTest.xml +58 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/SetPropertyAllowedAsDeclaredTest.xml +16 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/SetPropertyAllowedViaMagicMethodTest.xml +16 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/SetPropertyAllowedViaStdClassTest.xml +16 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/SetPropertyAppliesPropertyToMultipleSniffsInCategoryTest.xml +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/SetPropertyDoesNotThrowErrorOnInvalidPropertyWhenSetForCategoryTest.xml +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/SetPropertyDoesNotThrowErrorOnInvalidPropertyWhenSetForStandardTest.xml +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/SetPropertyNotAllowedViaAttributeTest.xml +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/SetPropertyThrowsErrorOnInvalidPropertyTest.xml +9 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/SetSniffPropertyTest.php +421 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ShowSniffDeprecationsEmptyDeprecationVersionTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ShowSniffDeprecationsEmptyRemovalVersionTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ShowSniffDeprecationsInvalidDeprecationMessageTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ShowSniffDeprecationsInvalidDeprecationVersionTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ShowSniffDeprecationsInvalidRemovalVersionTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ShowSniffDeprecationsOrderTest.xml +10 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ShowSniffDeprecationsReportWidthTest.xml +8 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ShowSniffDeprecationsTest.php +540 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Ruleset/ShowSniffDeprecationsTest.xml +11 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Sniffs/AbstractArraySniffTest.inc +51 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Sniffs/AbstractArraySniffTest.php +297 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Sniffs/AbstractArraySniffTestable.php +65 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/AbstractTokenizerTestCase.php +126 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/CommentTestCase.php +117 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/LiveCoding1Test.inc +6 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/LiveCoding1Test.php +69 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/LiveCoding2Test.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/LiveCoding2Test.php +68 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/LiveCoding3Test.inc +4 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/LiveCoding3Test.php +62 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/LiveCoding4Test.inc +7 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/LiveCoding4Test.php +76 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/MultiLineDocBlockTest.inc +81 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/MultiLineDocBlockTest.php +439 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/PhpcsAnnotationsInDocBlockTest.inc +116 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/PhpcsAnnotationsInDocBlockTest.php +637 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/SingleLineDocBlockTest.inc +26 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Comment/SingleLineDocBlockTest.php +217 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/AnonClassParenthesisOwnerTest.inc +29 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/AnonClassParenthesisOwnerTest.php +158 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/ArrayKeywordTest.inc +58 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/ArrayKeywordTest.php +200 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/AttributesTest.inc +90 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/AttributesTest.php +704 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillEnumTest.inc +91 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillEnumTest.php +226 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillExplicitOctalNotationTest.inc +31 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillExplicitOctalNotationTest.php +120 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillFnTokenParseErrorTest.inc +5 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillFnTokenParseErrorTest.php +44 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillFnTokenTest.inc +228 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillFnTokenTest.php +967 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillMatchTokenTest.inc +319 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillMatchTokenTest.php +555 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillNumericSeparatorTest.inc +94 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillNumericSeparatorTest.php +402 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillReadonlyTest.inc +156 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BackfillReadonlyTest.php +271 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BitwiseOrTest.inc +183 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/BitwiseOrTest.php +160 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/ContextSensitiveKeywordsTest.inc +244 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/ContextSensitiveKeywordsTest.php +548 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DNFTypesParseError1Test.inc +17 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DNFTypesParseError1Test.php +69 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DNFTypesParseError2Test.inc +48 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DNFTypesParseError2Test.php +218 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DNFTypesTest.inc +264 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DNFTypesTest.php +533 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DefaultKeywordTest.inc +203 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DefaultKeywordTest.php +255 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DoubleArrowTest.inc +281 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DoubleArrowTest.php +237 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DoubleQuotedStringTest.inc +52 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/DoubleQuotedStringTest.php +144 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/EnumCaseTest.inc +95 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/EnumCaseTest.php +150 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/FinallyTest.inc +40 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/FinallyTest.php +98 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/GotoLabelTest.inc +56 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/GotoLabelTest.php +176 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/HeredocNowdocTest.inc +39 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/HeredocNowdocTest.php +213 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/HeredocParseErrorTest.inc +11 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/HeredocParseErrorTest.php +41 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/HeredocStringTest.inc +193 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/HeredocStringTest.php +161 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/NamedFunctionCallArgumentsTest.inc +407 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/NamedFunctionCallArgumentsTest.php +974 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/NullsafeObjectOperatorTest.inc +29 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/NullsafeObjectOperatorTest.php +144 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/OtherContextSensitiveKeywordsTest.inc +247 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/OtherContextSensitiveKeywordsTest.php +721 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/ResolveSimpleTokenTest.inc +51 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/ResolveSimpleTokenTest.php +433 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/ShortArrayTest.inc +111 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/ShortArrayTest.php +141 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/StableCommentWhitespaceTest.inc +139 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/StableCommentWhitespaceTest.php +1064 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/StableCommentWhitespaceWinTest.inc +63 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/StableCommentWhitespaceWinTest.php +375 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/TypeIntersectionTest.inc +161 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/TypeIntersectionTest.php +157 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/TypedConstantsTest.inc +156 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/TypedConstantsTest.php +668 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/UndoNamespacedNameSingleTokenTest.inc +147 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/UndoNamespacedNameSingleTokenTest.php +1304 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/YieldTest.inc +77 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/PHP/YieldTest.php +448 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreateParenthesisNestingMapDNFTypesTest.inc +185 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreateParenthesisNestingMapDNFTypesTest.php +374 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreatePositionMapHeredocNowdocCloserTest.inc +43 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreatePositionMapHeredocNowdocCloserTest.php +117 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreatePositionMapHeredocNowdocOpenerTest.inc +31 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreatePositionMapHeredocNowdocOpenerTest.php +122 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreatePositionMapTabWidth0Test.php +107 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreatePositionMapYieldFromTest.inc +15 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreatePositionMapYieldFromTest.php +100 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreateTokenMapArrayParenthesesTest.inc +58 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/CreateTokenMapArrayParenthesesTest.php +212 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/RecurseScopeMapCaseKeywordConditionsTest.inc +132 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/RecurseScopeMapCaseKeywordConditionsTest.php +271 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/RecurseScopeMapDefaultKeywordConditionsTest.inc +203 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/RecurseScopeMapDefaultKeywordConditionsTest.php +347 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/RecurseScopeMapIfKeywordConditionsTest.inc +13 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/RecurseScopeMapIfKeywordConditionsTest.php +76 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/RecurseScopeMapSwitchTokenScopeTest.inc +33 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/RecurseScopeMapSwitchTokenScopeTest.php +130 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/RecurseScopeMapWithNamespaceOperatorTest.inc +19 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/RecurseScopeMapWithNamespaceOperatorTest.php +98 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/ReplaceTabsInTokenMiscTest.php +124 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/ReplaceTabsInTokenTabWidth1Test.php +111 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/ReplaceTabsInTokenTabWidth2Test.php +111 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/ReplaceTabsInTokenTabWidth4Test.php +111 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/ReplaceTabsInTokenTabWidth5Test.php +111 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/ReplaceTabsInTokenTest.inc +46 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizers/Tokenizer/ReplaceTabsInTokenTestCase.php +274 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Common/EscapeshellcmdTest.php +91 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Common/GetSniffCodeTest.php +200 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Common/IsCamelCapsTest.php +140 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Common/PrepareForOutputTest.php +113 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Common/StripColorsTest.php +96 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Common/SuggestTypeTest.php +224 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Help/HelpTest.php +769 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Timing/GetHumanReadableDurationTest.php +114 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Timing/TimingTest.php +123 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Tokens/GetHighestWeightedTokenTest.php +162 -0
- package/vendor/squizlabs/php_codesniffer/tests/Core/Util/Tokens/TokenNameTest.php +81 -0
- package/vendor/squizlabs/php_codesniffer/tests/FileList.php +98 -0
- package/vendor/squizlabs/php_codesniffer/tests/Standards/AbstractSniffUnitTest.php +468 -0
- package/vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php +114 -0
- package/vendor/squizlabs/php_codesniffer/tests/TestSuite.php +35 -0
- package/vendor/squizlabs/php_codesniffer/tests/TestSuite7.php +35 -0
- package/vendor/squizlabs/php_codesniffer/tests/bootstrap.php +99 -0
- package/vendor/wp-coding-standards/wpcs/CHANGELOG.md +1654 -0
- package/vendor/wp-coding-standards/wpcs/LICENSE +21 -0
- package/vendor/wp-coding-standards/wpcs/README.md +261 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractArrayAssignmentRestrictionsSniff.php +261 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractClassRestrictionsSniff.php +257 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractFunctionParameterSniff.php +111 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractFunctionRestrictionsSniff.php +358 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Arrays/ArrayIndentationStandard.xml +116 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Arrays/ArrayKeySpacingRestrictionsStandard.xml +31 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Arrays/MultipleStatementAlignmentStandard.xml +50 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/CodeAnalysis/EscapedNotTranslatedStandard.xml +24 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/DateTime/CurrentTimeTimestampStandard.xml +35 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/DateTime/RestrictedFunctionsStandard.xml +54 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/PrefixAllGlobalsStandard.xml +119 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/ValidHookNameStandard.xml +35 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/ValidPostTypeSlugStandard.xml +121 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/IniSetStandard.xml +40 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/StrictInArrayStandard.xml +53 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/YodaConditionsStandard.xml +27 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Security/SafeRedirectStandard.xml +23 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/CapabilitiesStandard.xml +69 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/CapitalPDangitStandard.xml +43 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/ClassNameCaseStandard.xml +23 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/CronIntervalStandard.xml +45 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedClassesStandard.xml +23 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedFunctionsStandard.xml +23 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedParameterValuesStandard.xml +23 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedParametersStandard.xml +40 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/EnqueuedResourceParametersStandard.xml +92 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/EnqueuedResourcesStandard.xml +57 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/PostsPerPageStandard.xml +73 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/CastStructureSpacingStandard.xml +27 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/ControlStructureSpacingStandard.xml +150 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml +19 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml +61 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ArrayWalkingFunctionsHelper.php +108 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ConstantsHelper.php +135 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ContextHelper.php +394 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/DeprecationHelper.php +84 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/EscapingFunctionsTrait.php +256 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/FormattingFunctionsHelper.php +60 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/IsUnitTestTrait.php +238 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ListHelper.php +101 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/MinimumWPVersionTrait.php +159 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/PrintingFunctionsTrait.php +122 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/RulesetPropertyHelper.php +73 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/SanitizationHelperTrait.php +418 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/SnakeCaseHelper.php +60 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/UnslashingFunctionsHelper.php +59 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ValidationHelper.php +349 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/VariableHelper.php +262 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/WPDBTrait.php +115 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/WPGlobalVariablesHelper.php +312 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/WPHookHelper.php +113 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniff.php +72 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayDeclarationSpacingSniff.php +252 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayIndentationSniff.php +550 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayKeySpacingRestrictionsSniff.php +174 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/MultipleStatementAlignmentSniff.php +583 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/CodeAnalysis/AssignmentInTernaryConditionSniff.php +173 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/CodeAnalysis/EscapedNotTranslatedSniff.php +89 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/DirectDatabaseQuerySniff.php +301 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/PreparedSQLPlaceholdersSniff.php +761 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/PreparedSQLSniff.php +242 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/RestrictedClassesSniff.php +57 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/RestrictedFunctionsSniff.php +63 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/SlowDBQuerySniff.php +58 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DateTime/CurrentTimeTimestampSniff.php +168 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DateTime/RestrictedFunctionsSniff.php +59 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Files/FileNameSniff.php +313 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/PrefixAllGlobalsSniff.php +1297 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidFunctionNameSniff.php +188 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidHookNameSniff.php +277 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidPostTypeSlugSniff.php +230 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidVariableNameSniff.php +289 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/DevelopmentFunctionsSniff.php +63 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/DiscouragedPHPFunctionsSniff.php +100 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/DontExtractSniff.php +52 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/IniSetSniff.php +193 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/NoSilencedErrorsSniff.php +245 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/POSIXFunctionsSniff.php +73 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/PregQuoteDelimiterSniff.php +70 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/RestrictedPHPFunctionsSniff.php +45 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/StrictInArraySniff.php +122 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/TypeCastsSniff.php +90 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/YodaConditionsSniff.php +124 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/EscapeOutputSniff.php +903 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/NonceVerificationSniff.php +422 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/PluginMenuSlugSniff.php +126 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/SafeRedirectSniff.php +45 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/ValidatedSanitizedInputSniff.php +244 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php +862 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/AlternativeFunctionsSniff.php +371 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/CapabilitiesSniff.php +478 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/CapitalPDangitSniff.php +315 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/ClassNameCaseSniff.php +897 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/CronIntervalSniff.php +321 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedClassesSniff.php +152 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedFunctionsSniff.php +1708 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedParameterValuesSniff.php +291 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedParametersSniff.php +509 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DiscouragedConstantsSniff.php +160 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DiscouragedFunctionsSniff.php +54 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/EnqueuedResourceParametersSniff.php +241 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/EnqueuedResourcesSniff.php +108 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/GlobalVariablesOverrideSniff.php +436 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/I18nSniff.php +977 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/PostsPerPageSniff.php +102 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/CastStructureSpacingSniff.php +59 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php +486 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php +63 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/OperatorSpacingSniff.php +60 -0
- package/vendor/wp-coding-standards/wpcs/WordPress/ruleset.xml +13 -0
- package/vendor/wp-coding-standards/wpcs/WordPress-Core/ruleset.xml +948 -0
- package/vendor/wp-coding-standards/wpcs/WordPress-Docs/ruleset.xml +109 -0
- package/vendor/wp-coding-standards/wpcs/WordPress-Extra/ruleset.xml +199 -0
- package/vendor/wp-coding-standards/wpcs/composer.json +88 -0
- package/vendor/wp-coding-standards/wpcs/phpcs.xml.dist.sample +153 -0
|
@@ -0,0 +1,2954 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Represents a piece of content being checked during the run.
|
|
4
|
+
*
|
|
5
|
+
* @author Greg Sherwood <gsherwood@squiz.net>
|
|
6
|
+
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
|
|
7
|
+
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
namespace PHP_CodeSniffer\Files;
|
|
11
|
+
|
|
12
|
+
use PHP_CodeSniffer\Config;
|
|
13
|
+
use PHP_CodeSniffer\Exceptions\RuntimeException;
|
|
14
|
+
use PHP_CodeSniffer\Exceptions\TokenizerException;
|
|
15
|
+
use PHP_CodeSniffer\Fixer;
|
|
16
|
+
use PHP_CodeSniffer\Ruleset;
|
|
17
|
+
use PHP_CodeSniffer\Util\Common;
|
|
18
|
+
use PHP_CodeSniffer\Util\Tokens;
|
|
19
|
+
|
|
20
|
+
class File
|
|
21
|
+
{
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The absolute path to the file associated with this object.
|
|
25
|
+
*
|
|
26
|
+
* @var string
|
|
27
|
+
*/
|
|
28
|
+
public $path = '';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The content of the file.
|
|
32
|
+
*
|
|
33
|
+
* @var string
|
|
34
|
+
*/
|
|
35
|
+
protected $content = '';
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The config data for the run.
|
|
39
|
+
*
|
|
40
|
+
* @var \PHP_CodeSniffer\Config
|
|
41
|
+
*/
|
|
42
|
+
public $config = null;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The ruleset used for the run.
|
|
46
|
+
*
|
|
47
|
+
* @var \PHP_CodeSniffer\Ruleset
|
|
48
|
+
*/
|
|
49
|
+
public $ruleset = null;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* If TRUE, the entire file is being ignored.
|
|
53
|
+
*
|
|
54
|
+
* @var boolean
|
|
55
|
+
*/
|
|
56
|
+
public $ignored = false;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The EOL character this file uses.
|
|
60
|
+
*
|
|
61
|
+
* @var string
|
|
62
|
+
*/
|
|
63
|
+
public $eolChar = '';
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The Fixer object to control fixing errors.
|
|
67
|
+
*
|
|
68
|
+
* @var \PHP_CodeSniffer\Fixer
|
|
69
|
+
*/
|
|
70
|
+
public $fixer = null;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The tokenizer being used for this file.
|
|
74
|
+
*
|
|
75
|
+
* @var \PHP_CodeSniffer\Tokenizers\Tokenizer
|
|
76
|
+
*/
|
|
77
|
+
public $tokenizer = null;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The name of the tokenizer being used for this file.
|
|
81
|
+
*
|
|
82
|
+
* @var string
|
|
83
|
+
*/
|
|
84
|
+
public $tokenizerType = 'PHP';
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Was the file loaded from cache?
|
|
88
|
+
*
|
|
89
|
+
* If TRUE, the file was loaded from a local cache.
|
|
90
|
+
* If FALSE, the file was tokenized and processed fully.
|
|
91
|
+
*
|
|
92
|
+
* @var boolean
|
|
93
|
+
*/
|
|
94
|
+
public $fromCache = false;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The number of tokens in this file.
|
|
98
|
+
*
|
|
99
|
+
* Stored here to save calling count() everywhere.
|
|
100
|
+
*
|
|
101
|
+
* @var integer
|
|
102
|
+
*/
|
|
103
|
+
public $numTokens = 0;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The tokens stack map.
|
|
107
|
+
*
|
|
108
|
+
* @var array
|
|
109
|
+
*/
|
|
110
|
+
protected $tokens = [];
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The errors raised from sniffs.
|
|
114
|
+
*
|
|
115
|
+
* @var array
|
|
116
|
+
* @see getErrors()
|
|
117
|
+
*/
|
|
118
|
+
protected $errors = [];
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The warnings raised from sniffs.
|
|
122
|
+
*
|
|
123
|
+
* @var array
|
|
124
|
+
* @see getWarnings()
|
|
125
|
+
*/
|
|
126
|
+
protected $warnings = [];
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The metrics recorded by sniffs.
|
|
130
|
+
*
|
|
131
|
+
* @var array
|
|
132
|
+
* @see getMetrics()
|
|
133
|
+
*/
|
|
134
|
+
protected $metrics = [];
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The metrics recorded for each token.
|
|
138
|
+
*
|
|
139
|
+
* Stops the same metric being recorded for the same token twice.
|
|
140
|
+
*
|
|
141
|
+
* @var array
|
|
142
|
+
* @see getMetrics()
|
|
143
|
+
*/
|
|
144
|
+
private $metricTokens = [];
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The total number of errors raised.
|
|
148
|
+
*
|
|
149
|
+
* @var integer
|
|
150
|
+
*/
|
|
151
|
+
protected $errorCount = 0;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The total number of warnings raised.
|
|
155
|
+
*
|
|
156
|
+
* @var integer
|
|
157
|
+
*/
|
|
158
|
+
protected $warningCount = 0;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The total number of errors and warnings that can be fixed.
|
|
162
|
+
*
|
|
163
|
+
* @var integer
|
|
164
|
+
*/
|
|
165
|
+
protected $fixableCount = 0;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The total number of errors and warnings that were fixed.
|
|
169
|
+
*
|
|
170
|
+
* @var integer
|
|
171
|
+
*/
|
|
172
|
+
protected $fixedCount = 0;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* TRUE if errors are being replayed from the cache.
|
|
176
|
+
*
|
|
177
|
+
* @var boolean
|
|
178
|
+
*/
|
|
179
|
+
protected $replayingErrors = false;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* An array of sniffs that are being ignored.
|
|
183
|
+
*
|
|
184
|
+
* @var array
|
|
185
|
+
*/
|
|
186
|
+
protected $ignoredListeners = [];
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* An array of message codes that are being ignored.
|
|
190
|
+
*
|
|
191
|
+
* @var array
|
|
192
|
+
*/
|
|
193
|
+
protected $ignoredCodes = [];
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* An array of sniffs listening to this file's processing.
|
|
197
|
+
*
|
|
198
|
+
* @var \PHP_CodeSniffer\Sniffs\Sniff[]
|
|
199
|
+
*/
|
|
200
|
+
protected $listeners = [];
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The class name of the sniff currently processing the file.
|
|
204
|
+
*
|
|
205
|
+
* @var string
|
|
206
|
+
*/
|
|
207
|
+
protected $activeListener = '';
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* An array of sniffs being processed and how long they took.
|
|
211
|
+
*
|
|
212
|
+
* @var array
|
|
213
|
+
* @see getListenerTimes()
|
|
214
|
+
*/
|
|
215
|
+
protected $listenerTimes = [];
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* A cache of often used config settings to improve performance.
|
|
219
|
+
*
|
|
220
|
+
* Storing them here saves 10k+ calls to __get() in the Config class.
|
|
221
|
+
*
|
|
222
|
+
* @var array
|
|
223
|
+
*/
|
|
224
|
+
protected $configCache = [];
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Constructs a file.
|
|
229
|
+
*
|
|
230
|
+
* @param string $path The absolute path to the file to process.
|
|
231
|
+
* @param \PHP_CodeSniffer\Ruleset $ruleset The ruleset used for the run.
|
|
232
|
+
* @param \PHP_CodeSniffer\Config $config The config data for the run.
|
|
233
|
+
*
|
|
234
|
+
* @return void
|
|
235
|
+
*/
|
|
236
|
+
public function __construct($path, Ruleset $ruleset, Config $config)
|
|
237
|
+
{
|
|
238
|
+
$this->path = $path;
|
|
239
|
+
$this->ruleset = $ruleset;
|
|
240
|
+
$this->config = $config;
|
|
241
|
+
$this->fixer = new Fixer();
|
|
242
|
+
|
|
243
|
+
$parts = explode('.', $path);
|
|
244
|
+
$extension = array_pop($parts);
|
|
245
|
+
if (isset($config->extensions[$extension]) === true) {
|
|
246
|
+
$this->tokenizerType = $config->extensions[$extension];
|
|
247
|
+
} else {
|
|
248
|
+
// Revert to default.
|
|
249
|
+
$this->tokenizerType = 'PHP';
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
$this->configCache['cache'] = $this->config->cache;
|
|
253
|
+
$this->configCache['sniffs'] = array_map('strtolower', $this->config->sniffs);
|
|
254
|
+
$this->configCache['exclude'] = array_map('strtolower', $this->config->exclude);
|
|
255
|
+
$this->configCache['errorSeverity'] = $this->config->errorSeverity;
|
|
256
|
+
$this->configCache['warningSeverity'] = $this->config->warningSeverity;
|
|
257
|
+
$this->configCache['recordErrors'] = $this->config->recordErrors;
|
|
258
|
+
$this->configCache['trackTime'] = $this->config->trackTime;
|
|
259
|
+
$this->configCache['ignorePatterns'] = $this->ruleset->ignorePatterns;
|
|
260
|
+
$this->configCache['includePatterns'] = $this->ruleset->includePatterns;
|
|
261
|
+
|
|
262
|
+
}//end __construct()
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Set the content of the file.
|
|
267
|
+
*
|
|
268
|
+
* Setting the content also calculates the EOL char being used.
|
|
269
|
+
*
|
|
270
|
+
* @param string $content The file content.
|
|
271
|
+
*
|
|
272
|
+
* @return void
|
|
273
|
+
*/
|
|
274
|
+
public function setContent($content)
|
|
275
|
+
{
|
|
276
|
+
$this->content = $content;
|
|
277
|
+
$this->tokens = [];
|
|
278
|
+
|
|
279
|
+
try {
|
|
280
|
+
$this->eolChar = Common::detectLineEndings($content);
|
|
281
|
+
} catch (RuntimeException $e) {
|
|
282
|
+
$this->addWarningOnLine($e->getMessage(), 1, 'Internal.DetectLineEndings');
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
}//end setContent()
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Reloads the content of the file.
|
|
291
|
+
*
|
|
292
|
+
* By default, we have no idea where our content comes from,
|
|
293
|
+
* so we can't do anything.
|
|
294
|
+
*
|
|
295
|
+
* @return void
|
|
296
|
+
*/
|
|
297
|
+
public function reloadContent()
|
|
298
|
+
{
|
|
299
|
+
|
|
300
|
+
}//end reloadContent()
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Disables caching of this file.
|
|
305
|
+
*
|
|
306
|
+
* @return void
|
|
307
|
+
*/
|
|
308
|
+
public function disableCaching()
|
|
309
|
+
{
|
|
310
|
+
$this->configCache['cache'] = false;
|
|
311
|
+
|
|
312
|
+
}//end disableCaching()
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Starts the stack traversal and tells listeners when tokens are found.
|
|
317
|
+
*
|
|
318
|
+
* @return void
|
|
319
|
+
*/
|
|
320
|
+
public function process()
|
|
321
|
+
{
|
|
322
|
+
if ($this->ignored === true) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
$this->errors = [];
|
|
327
|
+
$this->warnings = [];
|
|
328
|
+
$this->errorCount = 0;
|
|
329
|
+
$this->warningCount = 0;
|
|
330
|
+
$this->fixableCount = 0;
|
|
331
|
+
|
|
332
|
+
$this->parse();
|
|
333
|
+
|
|
334
|
+
// Check if tokenizer errors cause this file to be ignored.
|
|
335
|
+
if ($this->ignored === true) {
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
$this->fixer->startFile($this);
|
|
340
|
+
|
|
341
|
+
if (PHP_CODESNIFFER_VERBOSITY > 2) {
|
|
342
|
+
echo "\t*** START TOKEN PROCESSING ***".PHP_EOL;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
$foundCode = false;
|
|
346
|
+
$listenerIgnoreTo = [];
|
|
347
|
+
$inTests = defined('PHP_CODESNIFFER_IN_TESTS');
|
|
348
|
+
$checkAnnotations = $this->config->annotations;
|
|
349
|
+
$annotationErrors = [];
|
|
350
|
+
|
|
351
|
+
// Foreach of the listeners that have registered to listen for this
|
|
352
|
+
// token, get them to process it.
|
|
353
|
+
foreach ($this->tokens as $stackPtr => $token) {
|
|
354
|
+
// Check for ignored lines.
|
|
355
|
+
if ($checkAnnotations === true
|
|
356
|
+
&& ($token['code'] === T_COMMENT
|
|
357
|
+
|| $token['code'] === T_PHPCS_IGNORE_FILE
|
|
358
|
+
|| $token['code'] === T_PHPCS_SET
|
|
359
|
+
|| $token['code'] === T_DOC_COMMENT_STRING
|
|
360
|
+
|| $token['code'] === T_DOC_COMMENT_TAG
|
|
361
|
+
|| ($inTests === true && $token['code'] === T_INLINE_HTML))
|
|
362
|
+
) {
|
|
363
|
+
$commentText = ltrim($this->tokens[$stackPtr]['content'], " \t/*#");
|
|
364
|
+
$commentTextLower = strtolower($commentText);
|
|
365
|
+
if (strpos($commentText, '@codingStandards') !== false) {
|
|
366
|
+
if (strpos($commentText, '@codingStandardsIgnoreFile') !== false) {
|
|
367
|
+
// Ignoring the whole file, just a little late.
|
|
368
|
+
$this->errors = [];
|
|
369
|
+
$this->warnings = [];
|
|
370
|
+
$this->errorCount = 0;
|
|
371
|
+
$this->warningCount = 0;
|
|
372
|
+
$this->fixableCount = 0;
|
|
373
|
+
return;
|
|
374
|
+
} else if (strpos($commentText, '@codingStandardsChangeSetting') !== false) {
|
|
375
|
+
$start = strpos($commentText, '@codingStandardsChangeSetting');
|
|
376
|
+
$comment = substr($commentText, ($start + 30));
|
|
377
|
+
$parts = explode(' ', $comment);
|
|
378
|
+
if (count($parts) >= 2) {
|
|
379
|
+
$sniffParts = explode('.', $parts[0]);
|
|
380
|
+
if (count($sniffParts) >= 3) {
|
|
381
|
+
// If the sniff code is not known to us, it has not been registered in this run.
|
|
382
|
+
// But don't throw an error as it could be there for a different standard to use.
|
|
383
|
+
if (isset($this->ruleset->sniffCodes[$parts[0]]) === true) {
|
|
384
|
+
$listenerCode = array_shift($parts);
|
|
385
|
+
$propertyCode = array_shift($parts);
|
|
386
|
+
$settings = [
|
|
387
|
+
'value' => rtrim(implode(' ', $parts), " */\r\n"),
|
|
388
|
+
'scope' => 'sniff',
|
|
389
|
+
];
|
|
390
|
+
$listenerClass = $this->ruleset->sniffCodes[$listenerCode];
|
|
391
|
+
$this->ruleset->setSniffProperty($listenerClass, $propertyCode, $settings);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}//end if
|
|
396
|
+
} else if (substr($commentTextLower, 0, 16) === 'phpcs:ignorefile'
|
|
397
|
+
|| substr($commentTextLower, 0, 17) === '@phpcs:ignorefile'
|
|
398
|
+
) {
|
|
399
|
+
// Ignoring the whole file, just a little late.
|
|
400
|
+
$this->errors = [];
|
|
401
|
+
$this->warnings = [];
|
|
402
|
+
$this->errorCount = 0;
|
|
403
|
+
$this->warningCount = 0;
|
|
404
|
+
$this->fixableCount = 0;
|
|
405
|
+
return;
|
|
406
|
+
} else if (substr($commentTextLower, 0, 9) === 'phpcs:set'
|
|
407
|
+
|| substr($commentTextLower, 0, 10) === '@phpcs:set'
|
|
408
|
+
) {
|
|
409
|
+
if (isset($token['sniffCode']) === true) {
|
|
410
|
+
$listenerCode = $token['sniffCode'];
|
|
411
|
+
if (isset($this->ruleset->sniffCodes[$listenerCode]) === true) {
|
|
412
|
+
$propertyCode = $token['sniffProperty'];
|
|
413
|
+
$settings = [
|
|
414
|
+
'value' => $token['sniffPropertyValue'],
|
|
415
|
+
'scope' => 'sniff',
|
|
416
|
+
];
|
|
417
|
+
$listenerClass = $this->ruleset->sniffCodes[$listenerCode];
|
|
418
|
+
try {
|
|
419
|
+
$this->ruleset->setSniffProperty($listenerClass, $propertyCode, $settings);
|
|
420
|
+
} catch (RuntimeException $e) {
|
|
421
|
+
// Non-existant property being set via an inline annotation.
|
|
422
|
+
// This is typically a PHPCS test case file, but we can't throw an error on the annotation
|
|
423
|
+
// line as it would get ignored. We also don't want this error to block
|
|
424
|
+
// the scan of the current file, so collect these and throw later.
|
|
425
|
+
$annotationErrors[] = 'Line '.$token['line'].': '.str_replace('Ruleset invalid. ', '', $e->getMessage());
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}//end if
|
|
430
|
+
}//end if
|
|
431
|
+
|
|
432
|
+
if (PHP_CODESNIFFER_VERBOSITY > 2) {
|
|
433
|
+
$type = $token['type'];
|
|
434
|
+
$content = Common::prepareForOutput($token['content']);
|
|
435
|
+
echo "\t\tProcess token $stackPtr: $type => $content".PHP_EOL;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
if ($token['code'] !== T_INLINE_HTML) {
|
|
439
|
+
$foundCode = true;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
if (isset($this->ruleset->tokenListeners[$token['code']]) === false) {
|
|
443
|
+
continue;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
foreach ($this->ruleset->tokenListeners[$token['code']] as $listenerData) {
|
|
447
|
+
if (isset($this->ignoredListeners[$listenerData['class']]) === true
|
|
448
|
+
|| (isset($listenerIgnoreTo[$listenerData['class']]) === true
|
|
449
|
+
&& $listenerIgnoreTo[$listenerData['class']] > $stackPtr)
|
|
450
|
+
) {
|
|
451
|
+
// This sniff is ignoring past this token, or the whole file.
|
|
452
|
+
continue;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// Make sure this sniff supports the tokenizer
|
|
456
|
+
// we are currently using.
|
|
457
|
+
$class = $listenerData['class'];
|
|
458
|
+
|
|
459
|
+
if (isset($listenerData['tokenizers'][$this->tokenizerType]) === false) {
|
|
460
|
+
continue;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
if (trim($this->path, '\'"') !== 'STDIN') {
|
|
464
|
+
// If the file path matches one of our ignore patterns, skip it.
|
|
465
|
+
// While there is support for a type of each pattern
|
|
466
|
+
// (absolute or relative) we don't actually support it here.
|
|
467
|
+
foreach ($listenerData['ignore'] as $pattern) {
|
|
468
|
+
// We assume a / directory separator, as do the exclude rules
|
|
469
|
+
// most developers write, so we need a special case for any system
|
|
470
|
+
// that is different.
|
|
471
|
+
if (DIRECTORY_SEPARATOR === '\\') {
|
|
472
|
+
$pattern = str_replace('/', '\\\\', $pattern);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
$pattern = '`'.$pattern.'`i';
|
|
476
|
+
if (preg_match($pattern, $this->path) === 1) {
|
|
477
|
+
$this->ignoredListeners[$class] = true;
|
|
478
|
+
continue(2);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// If the file path does not match one of our include patterns, skip it.
|
|
483
|
+
// While there is support for a type of each pattern
|
|
484
|
+
// (absolute or relative) we don't actually support it here.
|
|
485
|
+
if (empty($listenerData['include']) === false) {
|
|
486
|
+
$included = false;
|
|
487
|
+
foreach ($listenerData['include'] as $pattern) {
|
|
488
|
+
// We assume a / directory separator, as do the exclude rules
|
|
489
|
+
// most developers write, so we need a special case for any system
|
|
490
|
+
// that is different.
|
|
491
|
+
if (DIRECTORY_SEPARATOR === '\\') {
|
|
492
|
+
$pattern = str_replace('/', '\\\\', $pattern);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
$pattern = '`'.$pattern.'`i';
|
|
496
|
+
if (preg_match($pattern, $this->path) === 1) {
|
|
497
|
+
$included = true;
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
if ($included === false) {
|
|
503
|
+
$this->ignoredListeners[$class] = true;
|
|
504
|
+
continue;
|
|
505
|
+
}
|
|
506
|
+
}//end if
|
|
507
|
+
}//end if
|
|
508
|
+
|
|
509
|
+
$this->activeListener = $class;
|
|
510
|
+
|
|
511
|
+
if ($this->configCache['trackTime'] === true) {
|
|
512
|
+
$startTime = microtime(true);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
if (PHP_CODESNIFFER_VERBOSITY > 2) {
|
|
516
|
+
echo "\t\t\tProcessing ".$this->activeListener.'... ';
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
$ignoreTo = $this->ruleset->sniffs[$class]->process($this, $stackPtr);
|
|
520
|
+
if ($ignoreTo !== null) {
|
|
521
|
+
$listenerIgnoreTo[$this->activeListener] = $ignoreTo;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
if ($this->configCache['trackTime'] === true) {
|
|
525
|
+
$timeTaken = (microtime(true) - $startTime);
|
|
526
|
+
if (isset($this->listenerTimes[$this->activeListener]) === false) {
|
|
527
|
+
$this->listenerTimes[$this->activeListener] = 0;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
$this->listenerTimes[$this->activeListener] += $timeTaken;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
if (PHP_CODESNIFFER_VERBOSITY > 2) {
|
|
534
|
+
$timeTaken = round(($timeTaken), 4);
|
|
535
|
+
echo "DONE in $timeTaken seconds".PHP_EOL;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
$this->activeListener = '';
|
|
539
|
+
}//end foreach
|
|
540
|
+
}//end foreach
|
|
541
|
+
|
|
542
|
+
// If short open tags are off but the file being checked uses
|
|
543
|
+
// short open tags, the whole content will be inline HTML
|
|
544
|
+
// and nothing will be checked. So try and handle this case.
|
|
545
|
+
// We don't show this error for STDIN because we can't be sure the content
|
|
546
|
+
// actually came directly from the user. It could be something like
|
|
547
|
+
// refs from a Git pre-push hook.
|
|
548
|
+
if ($foundCode === false && $this->tokenizerType === 'PHP' && $this->path !== 'STDIN') {
|
|
549
|
+
$shortTags = (bool) ini_get('short_open_tag');
|
|
550
|
+
if ($shortTags === false) {
|
|
551
|
+
$error = 'No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.';
|
|
552
|
+
$this->addWarning($error, null, 'Internal.NoCodeFound');
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
if ($annotationErrors !== []) {
|
|
557
|
+
$error = 'Encountered invalid inline phpcs:set annotations. Found:'.PHP_EOL;
|
|
558
|
+
$error .= implode(PHP_EOL, $annotationErrors);
|
|
559
|
+
|
|
560
|
+
$this->addWarning($error, null, 'Internal.PropertyDoesNotExist');
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
if (PHP_CODESNIFFER_VERBOSITY > 2) {
|
|
564
|
+
echo "\t*** END TOKEN PROCESSING ***".PHP_EOL;
|
|
565
|
+
echo "\t*** START SNIFF PROCESSING REPORT ***".PHP_EOL;
|
|
566
|
+
|
|
567
|
+
arsort($this->listenerTimes, SORT_NUMERIC);
|
|
568
|
+
foreach ($this->listenerTimes as $listener => $timeTaken) {
|
|
569
|
+
echo "\t$listener: ".round(($timeTaken), 4).' secs'.PHP_EOL;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
echo "\t*** END SNIFF PROCESSING REPORT ***".PHP_EOL;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
$this->fixedCount += $this->fixer->getFixCount();
|
|
576
|
+
|
|
577
|
+
}//end process()
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Tokenizes the file and prepares it for the test run.
|
|
582
|
+
*
|
|
583
|
+
* @return void
|
|
584
|
+
*/
|
|
585
|
+
public function parse()
|
|
586
|
+
{
|
|
587
|
+
if (empty($this->tokens) === false) {
|
|
588
|
+
// File has already been parsed.
|
|
589
|
+
return;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
try {
|
|
593
|
+
$tokenizerClass = 'PHP_CodeSniffer\Tokenizers\\'.$this->tokenizerType;
|
|
594
|
+
$this->tokenizer = new $tokenizerClass($this->content, $this->config, $this->eolChar);
|
|
595
|
+
$this->tokens = $this->tokenizer->getTokens();
|
|
596
|
+
} catch (TokenizerException $e) {
|
|
597
|
+
$this->ignored = true;
|
|
598
|
+
$this->addWarning($e->getMessage(), null, 'Internal.Tokenizer.Exception');
|
|
599
|
+
if (PHP_CODESNIFFER_VERBOSITY > 0) {
|
|
600
|
+
echo "[$this->tokenizerType => tokenizer error]... ";
|
|
601
|
+
if (PHP_CODESNIFFER_VERBOSITY > 1) {
|
|
602
|
+
echo PHP_EOL;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
$this->numTokens = count($this->tokens);
|
|
610
|
+
|
|
611
|
+
// Check for mixed line endings as these can cause tokenizer errors and we
|
|
612
|
+
// should let the user know that the results they get may be incorrect.
|
|
613
|
+
// This is done by removing all backslashes, removing the newline char we
|
|
614
|
+
// detected, then converting newlines chars into text. If any backslashes
|
|
615
|
+
// are left at the end, we have additional newline chars in use.
|
|
616
|
+
$contents = str_replace('\\', '', $this->content);
|
|
617
|
+
$contents = str_replace($this->eolChar, '', $contents);
|
|
618
|
+
$contents = str_replace("\n", '\n', $contents);
|
|
619
|
+
$contents = str_replace("\r", '\r', $contents);
|
|
620
|
+
if (strpos($contents, '\\') !== false) {
|
|
621
|
+
$error = 'File has mixed line endings; this may cause incorrect results';
|
|
622
|
+
$this->addWarningOnLine($error, 1, 'Internal.LineEndings.Mixed');
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
if (PHP_CODESNIFFER_VERBOSITY > 0) {
|
|
626
|
+
if ($this->numTokens === 0) {
|
|
627
|
+
$numLines = 0;
|
|
628
|
+
} else {
|
|
629
|
+
$numLines = $this->tokens[($this->numTokens - 1)]['line'];
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
echo "[$this->tokenizerType => $this->numTokens tokens in $numLines lines]... ";
|
|
633
|
+
if (PHP_CODESNIFFER_VERBOSITY > 1) {
|
|
634
|
+
echo PHP_EOL;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
}//end parse()
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Returns the token stack for this file.
|
|
643
|
+
*
|
|
644
|
+
* @return array
|
|
645
|
+
*/
|
|
646
|
+
public function getTokens()
|
|
647
|
+
{
|
|
648
|
+
return $this->tokens;
|
|
649
|
+
|
|
650
|
+
}//end getTokens()
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Remove vars stored in this file that are no longer required.
|
|
655
|
+
*
|
|
656
|
+
* @return void
|
|
657
|
+
*/
|
|
658
|
+
public function cleanUp()
|
|
659
|
+
{
|
|
660
|
+
$this->listenerTimes = null;
|
|
661
|
+
$this->content = null;
|
|
662
|
+
$this->tokens = null;
|
|
663
|
+
$this->metricTokens = null;
|
|
664
|
+
$this->tokenizer = null;
|
|
665
|
+
$this->fixer = null;
|
|
666
|
+
$this->config = null;
|
|
667
|
+
$this->ruleset = null;
|
|
668
|
+
|
|
669
|
+
}//end cleanUp()
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Records an error against a specific token in the file.
|
|
674
|
+
*
|
|
675
|
+
* @param string $error The error message.
|
|
676
|
+
* @param int $stackPtr The stack position where the error occurred.
|
|
677
|
+
* @param string $code A violation code unique to the sniff message.
|
|
678
|
+
* @param array $data Replacements for the error message.
|
|
679
|
+
* @param int $severity The severity level for this error. A value of 0
|
|
680
|
+
* will be converted into the default severity level.
|
|
681
|
+
* @param boolean $fixable Can the error be fixed by the sniff?
|
|
682
|
+
*
|
|
683
|
+
* @return boolean
|
|
684
|
+
*/
|
|
685
|
+
public function addError(
|
|
686
|
+
$error,
|
|
687
|
+
$stackPtr,
|
|
688
|
+
$code,
|
|
689
|
+
$data=[],
|
|
690
|
+
$severity=0,
|
|
691
|
+
$fixable=false
|
|
692
|
+
) {
|
|
693
|
+
if ($stackPtr === null) {
|
|
694
|
+
$line = 1;
|
|
695
|
+
$column = 1;
|
|
696
|
+
} else {
|
|
697
|
+
$line = $this->tokens[$stackPtr]['line'];
|
|
698
|
+
$column = $this->tokens[$stackPtr]['column'];
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
return $this->addMessage(true, $error, $line, $column, $code, $data, $severity, $fixable);
|
|
702
|
+
|
|
703
|
+
}//end addError()
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Records a warning against a specific token in the file.
|
|
708
|
+
*
|
|
709
|
+
* @param string $warning The error message.
|
|
710
|
+
* @param int $stackPtr The stack position where the error occurred.
|
|
711
|
+
* @param string $code A violation code unique to the sniff message.
|
|
712
|
+
* @param array $data Replacements for the warning message.
|
|
713
|
+
* @param int $severity The severity level for this warning. A value of 0
|
|
714
|
+
* will be converted into the default severity level.
|
|
715
|
+
* @param boolean $fixable Can the warning be fixed by the sniff?
|
|
716
|
+
*
|
|
717
|
+
* @return boolean
|
|
718
|
+
*/
|
|
719
|
+
public function addWarning(
|
|
720
|
+
$warning,
|
|
721
|
+
$stackPtr,
|
|
722
|
+
$code,
|
|
723
|
+
$data=[],
|
|
724
|
+
$severity=0,
|
|
725
|
+
$fixable=false
|
|
726
|
+
) {
|
|
727
|
+
if ($stackPtr === null) {
|
|
728
|
+
$line = 1;
|
|
729
|
+
$column = 1;
|
|
730
|
+
} else {
|
|
731
|
+
$line = $this->tokens[$stackPtr]['line'];
|
|
732
|
+
$column = $this->tokens[$stackPtr]['column'];
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
return $this->addMessage(false, $warning, $line, $column, $code, $data, $severity, $fixable);
|
|
736
|
+
|
|
737
|
+
}//end addWarning()
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* Records an error against a specific line in the file.
|
|
742
|
+
*
|
|
743
|
+
* @param string $error The error message.
|
|
744
|
+
* @param int $line The line on which the error occurred.
|
|
745
|
+
* @param string $code A violation code unique to the sniff message.
|
|
746
|
+
* @param array $data Replacements for the error message.
|
|
747
|
+
* @param int $severity The severity level for this error. A value of 0
|
|
748
|
+
* will be converted into the default severity level.
|
|
749
|
+
*
|
|
750
|
+
* @return boolean
|
|
751
|
+
*/
|
|
752
|
+
public function addErrorOnLine(
|
|
753
|
+
$error,
|
|
754
|
+
$line,
|
|
755
|
+
$code,
|
|
756
|
+
$data=[],
|
|
757
|
+
$severity=0
|
|
758
|
+
) {
|
|
759
|
+
return $this->addMessage(true, $error, $line, 1, $code, $data, $severity, false);
|
|
760
|
+
|
|
761
|
+
}//end addErrorOnLine()
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Records a warning against a specific line in the file.
|
|
766
|
+
*
|
|
767
|
+
* @param string $warning The error message.
|
|
768
|
+
* @param int $line The line on which the warning occurred.
|
|
769
|
+
* @param string $code A violation code unique to the sniff message.
|
|
770
|
+
* @param array $data Replacements for the warning message.
|
|
771
|
+
* @param int $severity The severity level for this warning. A value of 0 will
|
|
772
|
+
* will be converted into the default severity level.
|
|
773
|
+
*
|
|
774
|
+
* @return boolean
|
|
775
|
+
*/
|
|
776
|
+
public function addWarningOnLine(
|
|
777
|
+
$warning,
|
|
778
|
+
$line,
|
|
779
|
+
$code,
|
|
780
|
+
$data=[],
|
|
781
|
+
$severity=0
|
|
782
|
+
) {
|
|
783
|
+
return $this->addMessage(false, $warning, $line, 1, $code, $data, $severity, false);
|
|
784
|
+
|
|
785
|
+
}//end addWarningOnLine()
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Records a fixable error against a specific token in the file.
|
|
790
|
+
*
|
|
791
|
+
* Returns true if the error was recorded and should be fixed.
|
|
792
|
+
*
|
|
793
|
+
* @param string $error The error message.
|
|
794
|
+
* @param int $stackPtr The stack position where the error occurred.
|
|
795
|
+
* @param string $code A violation code unique to the sniff message.
|
|
796
|
+
* @param array $data Replacements for the error message.
|
|
797
|
+
* @param int $severity The severity level for this error. A value of 0
|
|
798
|
+
* will be converted into the default severity level.
|
|
799
|
+
*
|
|
800
|
+
* @return boolean
|
|
801
|
+
*/
|
|
802
|
+
public function addFixableError(
|
|
803
|
+
$error,
|
|
804
|
+
$stackPtr,
|
|
805
|
+
$code,
|
|
806
|
+
$data=[],
|
|
807
|
+
$severity=0
|
|
808
|
+
) {
|
|
809
|
+
$recorded = $this->addError($error, $stackPtr, $code, $data, $severity, true);
|
|
810
|
+
if ($recorded === true && $this->fixer->enabled === true) {
|
|
811
|
+
return true;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
return false;
|
|
815
|
+
|
|
816
|
+
}//end addFixableError()
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Records a fixable warning against a specific token in the file.
|
|
821
|
+
*
|
|
822
|
+
* Returns true if the warning was recorded and should be fixed.
|
|
823
|
+
*
|
|
824
|
+
* @param string $warning The error message.
|
|
825
|
+
* @param int $stackPtr The stack position where the error occurred.
|
|
826
|
+
* @param string $code A violation code unique to the sniff message.
|
|
827
|
+
* @param array $data Replacements for the warning message.
|
|
828
|
+
* @param int $severity The severity level for this warning. A value of 0
|
|
829
|
+
* will be converted into the default severity level.
|
|
830
|
+
*
|
|
831
|
+
* @return boolean
|
|
832
|
+
*/
|
|
833
|
+
public function addFixableWarning(
|
|
834
|
+
$warning,
|
|
835
|
+
$stackPtr,
|
|
836
|
+
$code,
|
|
837
|
+
$data=[],
|
|
838
|
+
$severity=0
|
|
839
|
+
) {
|
|
840
|
+
$recorded = $this->addWarning($warning, $stackPtr, $code, $data, $severity, true);
|
|
841
|
+
if ($recorded === true && $this->fixer->enabled === true) {
|
|
842
|
+
return true;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
return false;
|
|
846
|
+
|
|
847
|
+
}//end addFixableWarning()
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Adds an error to the error stack.
|
|
852
|
+
*
|
|
853
|
+
* @param boolean $error Is this an error message?
|
|
854
|
+
* @param string $message The text of the message.
|
|
855
|
+
* @param int $line The line on which the message occurred.
|
|
856
|
+
* @param int $column The column at which the message occurred.
|
|
857
|
+
* @param string $code A violation code unique to the sniff message.
|
|
858
|
+
* @param array $data Replacements for the message.
|
|
859
|
+
* @param int $severity The severity level for this message. A value of 0
|
|
860
|
+
* will be converted into the default severity level.
|
|
861
|
+
* @param boolean $fixable Can the problem be fixed by the sniff?
|
|
862
|
+
*
|
|
863
|
+
* @return boolean
|
|
864
|
+
*/
|
|
865
|
+
protected function addMessage($error, $message, $line, $column, $code, $data, $severity, $fixable)
|
|
866
|
+
{
|
|
867
|
+
// Check if this line is ignoring all message codes.
|
|
868
|
+
if (isset($this->tokenizer->ignoredLines[$line]['.all']) === true) {
|
|
869
|
+
return false;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
// Work out which sniff generated the message.
|
|
873
|
+
$parts = explode('.', $code);
|
|
874
|
+
if ($parts[0] === 'Internal') {
|
|
875
|
+
// An internal message.
|
|
876
|
+
$listenerCode = '';
|
|
877
|
+
if ($this->activeListener !== '') {
|
|
878
|
+
$listenerCode = Common::getSniffCode($this->activeListener);
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
$sniffCode = $code;
|
|
882
|
+
$checkCodes = [$sniffCode];
|
|
883
|
+
} else {
|
|
884
|
+
if ($parts[0] !== $code) {
|
|
885
|
+
// The full message code has been passed in.
|
|
886
|
+
$sniffCode = $code;
|
|
887
|
+
$listenerCode = substr($sniffCode, 0, strrpos($sniffCode, '.'));
|
|
888
|
+
} else {
|
|
889
|
+
$listenerCode = Common::getSniffCode($this->activeListener);
|
|
890
|
+
$sniffCode = $listenerCode.'.'.$code;
|
|
891
|
+
$parts = explode('.', $sniffCode);
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
$checkCodes = [
|
|
895
|
+
$sniffCode,
|
|
896
|
+
$parts[0].'.'.$parts[1].'.'.$parts[2],
|
|
897
|
+
$parts[0].'.'.$parts[1],
|
|
898
|
+
$parts[0],
|
|
899
|
+
];
|
|
900
|
+
}//end if
|
|
901
|
+
|
|
902
|
+
if (isset($this->tokenizer->ignoredLines[$line]) === true) {
|
|
903
|
+
// Check if this line is ignoring this specific message.
|
|
904
|
+
$ignored = false;
|
|
905
|
+
foreach ($checkCodes as $checkCode) {
|
|
906
|
+
if (isset($this->tokenizer->ignoredLines[$line][$checkCode]) === true) {
|
|
907
|
+
$ignored = true;
|
|
908
|
+
break;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
// If it is ignored, make sure there is no exception in place.
|
|
913
|
+
if ($ignored === true
|
|
914
|
+
&& isset($this->tokenizer->ignoredLines[$line]['.except']) === true
|
|
915
|
+
) {
|
|
916
|
+
foreach ($checkCodes as $checkCode) {
|
|
917
|
+
if (isset($this->tokenizer->ignoredLines[$line]['.except'][$checkCode]) === true) {
|
|
918
|
+
$ignored = false;
|
|
919
|
+
break;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
if ($ignored === true) {
|
|
925
|
+
return false;
|
|
926
|
+
}
|
|
927
|
+
}//end if
|
|
928
|
+
|
|
929
|
+
$includeAll = true;
|
|
930
|
+
if ($this->configCache['cache'] === false
|
|
931
|
+
|| $this->configCache['recordErrors'] === false
|
|
932
|
+
) {
|
|
933
|
+
$includeAll = false;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
// Filter out any messages for sniffs that shouldn't have run
|
|
937
|
+
// due to the use of the --sniffs command line argument.
|
|
938
|
+
if ($includeAll === false
|
|
939
|
+
&& ((empty($this->configCache['sniffs']) === false
|
|
940
|
+
&& in_array(strtolower($listenerCode), $this->configCache['sniffs'], true) === false)
|
|
941
|
+
|| (empty($this->configCache['exclude']) === false
|
|
942
|
+
&& in_array(strtolower($listenerCode), $this->configCache['exclude'], true) === true))
|
|
943
|
+
) {
|
|
944
|
+
return false;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
// If we know this sniff code is being ignored for this file, return early.
|
|
948
|
+
foreach ($checkCodes as $checkCode) {
|
|
949
|
+
if (isset($this->ignoredCodes[$checkCode]) === true) {
|
|
950
|
+
return false;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
$oppositeType = 'warning';
|
|
955
|
+
if ($error === false) {
|
|
956
|
+
$oppositeType = 'error';
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
foreach ($checkCodes as $checkCode) {
|
|
960
|
+
// Make sure this message type has not been set to the opposite message type.
|
|
961
|
+
if (isset($this->ruleset->ruleset[$checkCode]['type']) === true
|
|
962
|
+
&& $this->ruleset->ruleset[$checkCode]['type'] === $oppositeType
|
|
963
|
+
) {
|
|
964
|
+
$error = !$error;
|
|
965
|
+
break;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
if ($error === true) {
|
|
970
|
+
$configSeverity = $this->configCache['errorSeverity'];
|
|
971
|
+
$messageCount = &$this->errorCount;
|
|
972
|
+
$messages = &$this->errors;
|
|
973
|
+
} else {
|
|
974
|
+
$configSeverity = $this->configCache['warningSeverity'];
|
|
975
|
+
$messageCount = &$this->warningCount;
|
|
976
|
+
$messages = &$this->warnings;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
if ($includeAll === false && $configSeverity === 0) {
|
|
980
|
+
// Don't bother doing any processing as these messages are just going to
|
|
981
|
+
// be hidden in the reports anyway.
|
|
982
|
+
return false;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
if ($severity === 0) {
|
|
986
|
+
$severity = 5;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
foreach ($checkCodes as $checkCode) {
|
|
990
|
+
// Make sure we are interested in this severity level.
|
|
991
|
+
if (isset($this->ruleset->ruleset[$checkCode]['severity']) === true) {
|
|
992
|
+
$severity = $this->ruleset->ruleset[$checkCode]['severity'];
|
|
993
|
+
break;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
if ($includeAll === false && $configSeverity > $severity) {
|
|
998
|
+
return false;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
// Make sure we are not ignoring this file.
|
|
1002
|
+
$included = null;
|
|
1003
|
+
if (trim($this->path, '\'"') === 'STDIN') {
|
|
1004
|
+
$included = true;
|
|
1005
|
+
} else {
|
|
1006
|
+
foreach ($checkCodes as $checkCode) {
|
|
1007
|
+
$patterns = null;
|
|
1008
|
+
|
|
1009
|
+
if (isset($this->configCache['includePatterns'][$checkCode]) === true) {
|
|
1010
|
+
$patterns = $this->configCache['includePatterns'][$checkCode];
|
|
1011
|
+
$excluding = false;
|
|
1012
|
+
} else if (isset($this->configCache['ignorePatterns'][$checkCode]) === true) {
|
|
1013
|
+
$patterns = $this->configCache['ignorePatterns'][$checkCode];
|
|
1014
|
+
$excluding = true;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
if ($patterns === null) {
|
|
1018
|
+
continue;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
foreach ($patterns as $pattern => $type) {
|
|
1022
|
+
// While there is support for a type of each pattern
|
|
1023
|
+
// (absolute or relative) we don't actually support it here.
|
|
1024
|
+
$replacements = [
|
|
1025
|
+
'\\,' => ',',
|
|
1026
|
+
'*' => '.*',
|
|
1027
|
+
];
|
|
1028
|
+
|
|
1029
|
+
// We assume a / directory separator, as do the exclude rules
|
|
1030
|
+
// most developers write, so we need a special case for any system
|
|
1031
|
+
// that is different.
|
|
1032
|
+
if (DIRECTORY_SEPARATOR === '\\') {
|
|
1033
|
+
$replacements['/'] = '\\\\';
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
$pattern = '`'.strtr($pattern, $replacements).'`i';
|
|
1037
|
+
$matched = preg_match($pattern, $this->path);
|
|
1038
|
+
|
|
1039
|
+
if ($matched === 0) {
|
|
1040
|
+
if ($excluding === false && $included === null) {
|
|
1041
|
+
// This file path is not being included.
|
|
1042
|
+
$included = false;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
continue;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
if ($excluding === true) {
|
|
1049
|
+
// This file path is being excluded.
|
|
1050
|
+
$this->ignoredCodes[$checkCode] = true;
|
|
1051
|
+
return false;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
// This file path is being included.
|
|
1055
|
+
$included = true;
|
|
1056
|
+
break;
|
|
1057
|
+
}//end foreach
|
|
1058
|
+
}//end foreach
|
|
1059
|
+
}//end if
|
|
1060
|
+
|
|
1061
|
+
if ($included === false) {
|
|
1062
|
+
// There were include rules set, but this file
|
|
1063
|
+
// path didn't match any of them.
|
|
1064
|
+
return false;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
$messageCount++;
|
|
1068
|
+
if ($fixable === true) {
|
|
1069
|
+
$this->fixableCount++;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
if ($this->configCache['recordErrors'] === false
|
|
1073
|
+
&& $includeAll === false
|
|
1074
|
+
) {
|
|
1075
|
+
return true;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
// See if there is a custom error message format to use.
|
|
1079
|
+
// But don't do this if we are replaying errors because replayed
|
|
1080
|
+
// errors have already used the custom format and have had their
|
|
1081
|
+
// data replaced.
|
|
1082
|
+
if ($this->replayingErrors === false
|
|
1083
|
+
&& isset($this->ruleset->ruleset[$sniffCode]['message']) === true
|
|
1084
|
+
) {
|
|
1085
|
+
$message = $this->ruleset->ruleset[$sniffCode]['message'];
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
if (empty($data) === false) {
|
|
1089
|
+
$message = vsprintf($message, $data);
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
if (isset($messages[$line]) === false) {
|
|
1093
|
+
$messages[$line] = [];
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
if (isset($messages[$line][$column]) === false) {
|
|
1097
|
+
$messages[$line][$column] = [];
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
$messages[$line][$column][] = [
|
|
1101
|
+
'message' => $message,
|
|
1102
|
+
'source' => $sniffCode,
|
|
1103
|
+
'listener' => $this->activeListener,
|
|
1104
|
+
'severity' => $severity,
|
|
1105
|
+
'fixable' => $fixable,
|
|
1106
|
+
];
|
|
1107
|
+
|
|
1108
|
+
if (PHP_CODESNIFFER_VERBOSITY > 1
|
|
1109
|
+
&& $this->fixer->enabled === true
|
|
1110
|
+
&& $fixable === true
|
|
1111
|
+
) {
|
|
1112
|
+
@ob_end_clean();
|
|
1113
|
+
echo "\tE: [Line $line] $message ($sniffCode)".PHP_EOL;
|
|
1114
|
+
ob_start();
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
return true;
|
|
1118
|
+
|
|
1119
|
+
}//end addMessage()
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* Record a metric about the file being examined.
|
|
1124
|
+
*
|
|
1125
|
+
* @param int $stackPtr The stack position where the metric was recorded.
|
|
1126
|
+
* @param string $metric The name of the metric being recorded.
|
|
1127
|
+
* @param string $value The value of the metric being recorded.
|
|
1128
|
+
*
|
|
1129
|
+
* @return boolean
|
|
1130
|
+
*/
|
|
1131
|
+
public function recordMetric($stackPtr, $metric, $value)
|
|
1132
|
+
{
|
|
1133
|
+
if (isset($this->metrics[$metric]) === false) {
|
|
1134
|
+
$this->metrics[$metric] = ['values' => [$value => 1]];
|
|
1135
|
+
$this->metricTokens[$metric][$stackPtr] = true;
|
|
1136
|
+
} else if (isset($this->metricTokens[$metric][$stackPtr]) === false) {
|
|
1137
|
+
$this->metricTokens[$metric][$stackPtr] = true;
|
|
1138
|
+
if (isset($this->metrics[$metric]['values'][$value]) === false) {
|
|
1139
|
+
$this->metrics[$metric]['values'][$value] = 1;
|
|
1140
|
+
} else {
|
|
1141
|
+
$this->metrics[$metric]['values'][$value]++;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
return true;
|
|
1146
|
+
|
|
1147
|
+
}//end recordMetric()
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Returns the number of errors raised.
|
|
1152
|
+
*
|
|
1153
|
+
* @return int
|
|
1154
|
+
*/
|
|
1155
|
+
public function getErrorCount()
|
|
1156
|
+
{
|
|
1157
|
+
return $this->errorCount;
|
|
1158
|
+
|
|
1159
|
+
}//end getErrorCount()
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Returns the number of warnings raised.
|
|
1164
|
+
*
|
|
1165
|
+
* @return int
|
|
1166
|
+
*/
|
|
1167
|
+
public function getWarningCount()
|
|
1168
|
+
{
|
|
1169
|
+
return $this->warningCount;
|
|
1170
|
+
|
|
1171
|
+
}//end getWarningCount()
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Returns the number of fixable errors/warnings raised.
|
|
1176
|
+
*
|
|
1177
|
+
* @return int
|
|
1178
|
+
*/
|
|
1179
|
+
public function getFixableCount()
|
|
1180
|
+
{
|
|
1181
|
+
return $this->fixableCount;
|
|
1182
|
+
|
|
1183
|
+
}//end getFixableCount()
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Returns the number of fixed errors/warnings.
|
|
1188
|
+
*
|
|
1189
|
+
* @return int
|
|
1190
|
+
*/
|
|
1191
|
+
public function getFixedCount()
|
|
1192
|
+
{
|
|
1193
|
+
return $this->fixedCount;
|
|
1194
|
+
|
|
1195
|
+
}//end getFixedCount()
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Returns the list of ignored lines.
|
|
1200
|
+
*
|
|
1201
|
+
* @return array
|
|
1202
|
+
*/
|
|
1203
|
+
public function getIgnoredLines()
|
|
1204
|
+
{
|
|
1205
|
+
return $this->tokenizer->ignoredLines;
|
|
1206
|
+
|
|
1207
|
+
}//end getIgnoredLines()
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Returns the errors raised from processing this file.
|
|
1212
|
+
*
|
|
1213
|
+
* @return array
|
|
1214
|
+
*/
|
|
1215
|
+
public function getErrors()
|
|
1216
|
+
{
|
|
1217
|
+
return $this->errors;
|
|
1218
|
+
|
|
1219
|
+
}//end getErrors()
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* Returns the warnings raised from processing this file.
|
|
1224
|
+
*
|
|
1225
|
+
* @return array
|
|
1226
|
+
*/
|
|
1227
|
+
public function getWarnings()
|
|
1228
|
+
{
|
|
1229
|
+
return $this->warnings;
|
|
1230
|
+
|
|
1231
|
+
}//end getWarnings()
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* Returns the metrics found while processing this file.
|
|
1236
|
+
*
|
|
1237
|
+
* @return array
|
|
1238
|
+
*/
|
|
1239
|
+
public function getMetrics()
|
|
1240
|
+
{
|
|
1241
|
+
return $this->metrics;
|
|
1242
|
+
|
|
1243
|
+
}//end getMetrics()
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Returns the time taken processing this file for each invoked sniff.
|
|
1248
|
+
*
|
|
1249
|
+
* @return array
|
|
1250
|
+
*/
|
|
1251
|
+
public function getListenerTimes()
|
|
1252
|
+
{
|
|
1253
|
+
return $this->listenerTimes;
|
|
1254
|
+
|
|
1255
|
+
}//end getListenerTimes()
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Returns the absolute filename of this file.
|
|
1260
|
+
*
|
|
1261
|
+
* @return string
|
|
1262
|
+
*/
|
|
1263
|
+
public function getFilename()
|
|
1264
|
+
{
|
|
1265
|
+
return $this->path;
|
|
1266
|
+
|
|
1267
|
+
}//end getFilename()
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* Returns the declaration name for classes, interfaces, traits, enums, and functions.
|
|
1272
|
+
*
|
|
1273
|
+
* @param int $stackPtr The position of the declaration token which
|
|
1274
|
+
* declared the class, interface, trait, or function.
|
|
1275
|
+
*
|
|
1276
|
+
* @return string|null The name of the class, interface, trait, or function;
|
|
1277
|
+
* or NULL if the function or class is anonymous.
|
|
1278
|
+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the specified token is not of type
|
|
1279
|
+
* T_FUNCTION, T_CLASS, T_ANON_CLASS,
|
|
1280
|
+
* T_CLOSURE, T_TRAIT, T_ENUM, or T_INTERFACE.
|
|
1281
|
+
*/
|
|
1282
|
+
public function getDeclarationName($stackPtr)
|
|
1283
|
+
{
|
|
1284
|
+
$tokenCode = $this->tokens[$stackPtr]['code'];
|
|
1285
|
+
|
|
1286
|
+
if ($tokenCode === T_ANON_CLASS || $tokenCode === T_CLOSURE) {
|
|
1287
|
+
return null;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
if ($tokenCode !== T_FUNCTION
|
|
1291
|
+
&& $tokenCode !== T_CLASS
|
|
1292
|
+
&& $tokenCode !== T_INTERFACE
|
|
1293
|
+
&& $tokenCode !== T_TRAIT
|
|
1294
|
+
&& $tokenCode !== T_ENUM
|
|
1295
|
+
) {
|
|
1296
|
+
throw new RuntimeException('Token type "'.$this->tokens[$stackPtr]['type'].'" is not T_FUNCTION, T_CLASS, T_INTERFACE, T_TRAIT or T_ENUM');
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
if ($tokenCode === T_FUNCTION
|
|
1300
|
+
&& strtolower($this->tokens[$stackPtr]['content']) !== 'function'
|
|
1301
|
+
) {
|
|
1302
|
+
// This is a function declared without the "function" keyword.
|
|
1303
|
+
// So this token is the function name.
|
|
1304
|
+
return $this->tokens[$stackPtr]['content'];
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
$content = null;
|
|
1308
|
+
for ($i = $stackPtr; $i < $this->numTokens; $i++) {
|
|
1309
|
+
if ($this->tokens[$i]['code'] === T_STRING) {
|
|
1310
|
+
$content = $this->tokens[$i]['content'];
|
|
1311
|
+
break;
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
return $content;
|
|
1316
|
+
|
|
1317
|
+
}//end getDeclarationName()
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Returns the method parameters for the specified function token.
|
|
1322
|
+
*
|
|
1323
|
+
* Also supports passing in a USE token for a closure use group.
|
|
1324
|
+
*
|
|
1325
|
+
* Each parameter is in the following format:
|
|
1326
|
+
*
|
|
1327
|
+
* <code>
|
|
1328
|
+
* 0 => array(
|
|
1329
|
+
* 'name' => string, // The variable name.
|
|
1330
|
+
* 'token' => integer, // The stack pointer to the variable name.
|
|
1331
|
+
* 'content' => string, // The full content of the variable definition.
|
|
1332
|
+
* 'has_attributes' => boolean, // Does the parameter have one or more attributes attached ?
|
|
1333
|
+
* 'pass_by_reference' => boolean, // Is the variable passed by reference?
|
|
1334
|
+
* 'reference_token' => integer|false, // The stack pointer to the reference operator
|
|
1335
|
+
* // or FALSE if the param is not passed by reference.
|
|
1336
|
+
* 'variable_length' => boolean, // Is the param of variable length through use of `...` ?
|
|
1337
|
+
* 'variadic_token' => integer|false, // The stack pointer to the ... operator
|
|
1338
|
+
* // or FALSE if the param is not variable length.
|
|
1339
|
+
* 'type_hint' => string, // The type hint for the variable.
|
|
1340
|
+
* 'type_hint_token' => integer|false, // The stack pointer to the start of the type hint
|
|
1341
|
+
* // or FALSE if there is no type hint.
|
|
1342
|
+
* 'type_hint_end_token' => integer|false, // The stack pointer to the end of the type hint
|
|
1343
|
+
* // or FALSE if there is no type hint.
|
|
1344
|
+
* 'nullable_type' => boolean, // TRUE if the type is preceded by the nullability
|
|
1345
|
+
* // operator.
|
|
1346
|
+
* 'comma_token' => integer|false, // The stack pointer to the comma after the param
|
|
1347
|
+
* // or FALSE if this is the last param.
|
|
1348
|
+
* )
|
|
1349
|
+
* </code>
|
|
1350
|
+
*
|
|
1351
|
+
* Parameters with default values have additional array indexes of:
|
|
1352
|
+
* 'default' => string, // The full content of the default value.
|
|
1353
|
+
* 'default_token' => integer, // The stack pointer to the start of the default value.
|
|
1354
|
+
* 'default_equal_token' => integer, // The stack pointer to the equals sign.
|
|
1355
|
+
*
|
|
1356
|
+
* Parameters declared using PHP 8 constructor property promotion, have these additional array indexes:
|
|
1357
|
+
* 'property_visibility' => string, // The property visibility as declared.
|
|
1358
|
+
* 'visibility_token' => integer|false, // The stack pointer to the visibility modifier token
|
|
1359
|
+
* // or FALSE if the visibility is not explicitly declared.
|
|
1360
|
+
* 'property_readonly' => boolean, // TRUE if the readonly keyword was found.
|
|
1361
|
+
* 'readonly_token' => integer, // The stack pointer to the readonly modifier token.
|
|
1362
|
+
* // This index will only be set if the property is readonly.
|
|
1363
|
+
*
|
|
1364
|
+
* @param int $stackPtr The position in the stack of the function token
|
|
1365
|
+
* to acquire the parameters for.
|
|
1366
|
+
*
|
|
1367
|
+
* @return array
|
|
1368
|
+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the specified $stackPtr is not of
|
|
1369
|
+
* type T_FUNCTION, T_CLOSURE, T_USE,
|
|
1370
|
+
* or T_FN.
|
|
1371
|
+
*/
|
|
1372
|
+
public function getMethodParameters($stackPtr)
|
|
1373
|
+
{
|
|
1374
|
+
if ($this->tokens[$stackPtr]['code'] !== T_FUNCTION
|
|
1375
|
+
&& $this->tokens[$stackPtr]['code'] !== T_CLOSURE
|
|
1376
|
+
&& $this->tokens[$stackPtr]['code'] !== T_USE
|
|
1377
|
+
&& $this->tokens[$stackPtr]['code'] !== T_FN
|
|
1378
|
+
) {
|
|
1379
|
+
throw new RuntimeException('$stackPtr must be of type T_FUNCTION or T_CLOSURE or T_USE or T_FN');
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
if ($this->tokens[$stackPtr]['code'] === T_USE) {
|
|
1383
|
+
$opener = $this->findNext(T_OPEN_PARENTHESIS, ($stackPtr + 1));
|
|
1384
|
+
if ($opener === false || isset($this->tokens[$opener]['parenthesis_owner']) === true) {
|
|
1385
|
+
throw new RuntimeException('$stackPtr was not a valid T_USE');
|
|
1386
|
+
}
|
|
1387
|
+
} else {
|
|
1388
|
+
if (isset($this->tokens[$stackPtr]['parenthesis_opener']) === false) {
|
|
1389
|
+
// Live coding or syntax error, so no params to find.
|
|
1390
|
+
return [];
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
$opener = $this->tokens[$stackPtr]['parenthesis_opener'];
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
if (isset($this->tokens[$opener]['parenthesis_closer']) === false) {
|
|
1397
|
+
// Live coding or syntax error, so no params to find.
|
|
1398
|
+
return [];
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
$closer = $this->tokens[$opener]['parenthesis_closer'];
|
|
1402
|
+
|
|
1403
|
+
$vars = [];
|
|
1404
|
+
$currVar = null;
|
|
1405
|
+
$paramStart = ($opener + 1);
|
|
1406
|
+
$defaultStart = null;
|
|
1407
|
+
$equalToken = null;
|
|
1408
|
+
$paramCount = 0;
|
|
1409
|
+
$hasAttributes = false;
|
|
1410
|
+
$passByReference = false;
|
|
1411
|
+
$referenceToken = false;
|
|
1412
|
+
$variableLength = false;
|
|
1413
|
+
$variadicToken = false;
|
|
1414
|
+
$typeHint = '';
|
|
1415
|
+
$typeHintToken = false;
|
|
1416
|
+
$typeHintEndToken = false;
|
|
1417
|
+
$nullableType = false;
|
|
1418
|
+
$visibilityToken = null;
|
|
1419
|
+
$readonlyToken = null;
|
|
1420
|
+
|
|
1421
|
+
for ($i = $paramStart; $i <= $closer; $i++) {
|
|
1422
|
+
// Check to see if this token has a parenthesis or bracket opener. If it does
|
|
1423
|
+
// it's likely to be an array which might have arguments in it. This
|
|
1424
|
+
// could cause problems in our parsing below, so lets just skip to the
|
|
1425
|
+
// end of it.
|
|
1426
|
+
if ($this->tokens[$i]['code'] !== T_TYPE_OPEN_PARENTHESIS
|
|
1427
|
+
&& isset($this->tokens[$i]['parenthesis_opener']) === true
|
|
1428
|
+
) {
|
|
1429
|
+
// Don't do this if it's the close parenthesis for the method.
|
|
1430
|
+
if ($i !== $this->tokens[$i]['parenthesis_closer']) {
|
|
1431
|
+
$i = $this->tokens[$i]['parenthesis_closer'];
|
|
1432
|
+
continue;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
if (isset($this->tokens[$i]['bracket_opener']) === true) {
|
|
1437
|
+
if ($i !== $this->tokens[$i]['bracket_closer']) {
|
|
1438
|
+
$i = $this->tokens[$i]['bracket_closer'];
|
|
1439
|
+
continue;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
switch ($this->tokens[$i]['code']) {
|
|
1444
|
+
case T_ATTRIBUTE:
|
|
1445
|
+
$hasAttributes = true;
|
|
1446
|
+
|
|
1447
|
+
// Skip to the end of the attribute.
|
|
1448
|
+
$i = $this->tokens[$i]['attribute_closer'];
|
|
1449
|
+
break;
|
|
1450
|
+
case T_BITWISE_AND:
|
|
1451
|
+
if ($defaultStart === null) {
|
|
1452
|
+
$passByReference = true;
|
|
1453
|
+
$referenceToken = $i;
|
|
1454
|
+
}
|
|
1455
|
+
break;
|
|
1456
|
+
case T_VARIABLE:
|
|
1457
|
+
$currVar = $i;
|
|
1458
|
+
break;
|
|
1459
|
+
case T_ELLIPSIS:
|
|
1460
|
+
$variableLength = true;
|
|
1461
|
+
$variadicToken = $i;
|
|
1462
|
+
break;
|
|
1463
|
+
case T_CALLABLE:
|
|
1464
|
+
if ($typeHintToken === false) {
|
|
1465
|
+
$typeHintToken = $i;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
$typeHint .= $this->tokens[$i]['content'];
|
|
1469
|
+
$typeHintEndToken = $i;
|
|
1470
|
+
break;
|
|
1471
|
+
case T_SELF:
|
|
1472
|
+
case T_PARENT:
|
|
1473
|
+
case T_STATIC:
|
|
1474
|
+
// Self and parent are valid, static invalid, but was probably intended as type hint.
|
|
1475
|
+
if (isset($defaultStart) === false) {
|
|
1476
|
+
if ($typeHintToken === false) {
|
|
1477
|
+
$typeHintToken = $i;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
$typeHint .= $this->tokens[$i]['content'];
|
|
1481
|
+
$typeHintEndToken = $i;
|
|
1482
|
+
}
|
|
1483
|
+
break;
|
|
1484
|
+
case T_STRING:
|
|
1485
|
+
// This is a string, so it may be a type hint, but it could
|
|
1486
|
+
// also be a constant used as a default value.
|
|
1487
|
+
$prevComma = false;
|
|
1488
|
+
for ($t = $i; $t >= $opener; $t--) {
|
|
1489
|
+
if ($this->tokens[$t]['code'] === T_COMMA) {
|
|
1490
|
+
$prevComma = $t;
|
|
1491
|
+
break;
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
if ($prevComma !== false) {
|
|
1496
|
+
$nextEquals = false;
|
|
1497
|
+
for ($t = $prevComma; $t < $i; $t++) {
|
|
1498
|
+
if ($this->tokens[$t]['code'] === T_EQUAL) {
|
|
1499
|
+
$nextEquals = $t;
|
|
1500
|
+
break;
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
if ($nextEquals !== false) {
|
|
1505
|
+
break;
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
if ($defaultStart === null) {
|
|
1510
|
+
if ($typeHintToken === false) {
|
|
1511
|
+
$typeHintToken = $i;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
$typeHint .= $this->tokens[$i]['content'];
|
|
1515
|
+
$typeHintEndToken = $i;
|
|
1516
|
+
}
|
|
1517
|
+
break;
|
|
1518
|
+
case T_NAMESPACE:
|
|
1519
|
+
case T_NS_SEPARATOR:
|
|
1520
|
+
case T_TYPE_UNION:
|
|
1521
|
+
case T_TYPE_INTERSECTION:
|
|
1522
|
+
case T_TYPE_OPEN_PARENTHESIS:
|
|
1523
|
+
case T_TYPE_CLOSE_PARENTHESIS:
|
|
1524
|
+
case T_FALSE:
|
|
1525
|
+
case T_TRUE:
|
|
1526
|
+
case T_NULL:
|
|
1527
|
+
// Part of a type hint or default value.
|
|
1528
|
+
if ($defaultStart === null) {
|
|
1529
|
+
if ($typeHintToken === false) {
|
|
1530
|
+
$typeHintToken = $i;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
$typeHint .= $this->tokens[$i]['content'];
|
|
1534
|
+
$typeHintEndToken = $i;
|
|
1535
|
+
}
|
|
1536
|
+
break;
|
|
1537
|
+
case T_NULLABLE:
|
|
1538
|
+
if ($defaultStart === null) {
|
|
1539
|
+
$nullableType = true;
|
|
1540
|
+
$typeHint .= $this->tokens[$i]['content'];
|
|
1541
|
+
$typeHintEndToken = $i;
|
|
1542
|
+
}
|
|
1543
|
+
break;
|
|
1544
|
+
case T_PUBLIC:
|
|
1545
|
+
case T_PROTECTED:
|
|
1546
|
+
case T_PRIVATE:
|
|
1547
|
+
if ($defaultStart === null) {
|
|
1548
|
+
$visibilityToken = $i;
|
|
1549
|
+
}
|
|
1550
|
+
break;
|
|
1551
|
+
case T_READONLY:
|
|
1552
|
+
if ($defaultStart === null) {
|
|
1553
|
+
$readonlyToken = $i;
|
|
1554
|
+
}
|
|
1555
|
+
break;
|
|
1556
|
+
case T_CLOSE_PARENTHESIS:
|
|
1557
|
+
case T_COMMA:
|
|
1558
|
+
// If it's null, then there must be no parameters for this
|
|
1559
|
+
// method.
|
|
1560
|
+
if ($currVar === null) {
|
|
1561
|
+
continue 2;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
$vars[$paramCount] = [];
|
|
1565
|
+
$vars[$paramCount]['token'] = $currVar;
|
|
1566
|
+
$vars[$paramCount]['name'] = $this->tokens[$currVar]['content'];
|
|
1567
|
+
$vars[$paramCount]['content'] = trim($this->getTokensAsString($paramStart, ($i - $paramStart)));
|
|
1568
|
+
|
|
1569
|
+
if ($defaultStart !== null) {
|
|
1570
|
+
$vars[$paramCount]['default'] = trim($this->getTokensAsString($defaultStart, ($i - $defaultStart)));
|
|
1571
|
+
$vars[$paramCount]['default_token'] = $defaultStart;
|
|
1572
|
+
$vars[$paramCount]['default_equal_token'] = $equalToken;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
$vars[$paramCount]['has_attributes'] = $hasAttributes;
|
|
1576
|
+
$vars[$paramCount]['pass_by_reference'] = $passByReference;
|
|
1577
|
+
$vars[$paramCount]['reference_token'] = $referenceToken;
|
|
1578
|
+
$vars[$paramCount]['variable_length'] = $variableLength;
|
|
1579
|
+
$vars[$paramCount]['variadic_token'] = $variadicToken;
|
|
1580
|
+
$vars[$paramCount]['type_hint'] = $typeHint;
|
|
1581
|
+
$vars[$paramCount]['type_hint_token'] = $typeHintToken;
|
|
1582
|
+
$vars[$paramCount]['type_hint_end_token'] = $typeHintEndToken;
|
|
1583
|
+
$vars[$paramCount]['nullable_type'] = $nullableType;
|
|
1584
|
+
|
|
1585
|
+
if ($visibilityToken !== null || $readonlyToken !== null) {
|
|
1586
|
+
$vars[$paramCount]['property_visibility'] = 'public';
|
|
1587
|
+
$vars[$paramCount]['visibility_token'] = false;
|
|
1588
|
+
$vars[$paramCount]['property_readonly'] = false;
|
|
1589
|
+
|
|
1590
|
+
if ($visibilityToken !== null) {
|
|
1591
|
+
$vars[$paramCount]['property_visibility'] = $this->tokens[$visibilityToken]['content'];
|
|
1592
|
+
$vars[$paramCount]['visibility_token'] = $visibilityToken;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
if ($readonlyToken !== null) {
|
|
1596
|
+
$vars[$paramCount]['property_readonly'] = true;
|
|
1597
|
+
$vars[$paramCount]['readonly_token'] = $readonlyToken;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
if ($this->tokens[$i]['code'] === T_COMMA) {
|
|
1602
|
+
$vars[$paramCount]['comma_token'] = $i;
|
|
1603
|
+
} else {
|
|
1604
|
+
$vars[$paramCount]['comma_token'] = false;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
// Reset the vars, as we are about to process the next parameter.
|
|
1608
|
+
$currVar = null;
|
|
1609
|
+
$paramStart = ($i + 1);
|
|
1610
|
+
$defaultStart = null;
|
|
1611
|
+
$equalToken = null;
|
|
1612
|
+
$hasAttributes = false;
|
|
1613
|
+
$passByReference = false;
|
|
1614
|
+
$referenceToken = false;
|
|
1615
|
+
$variableLength = false;
|
|
1616
|
+
$variadicToken = false;
|
|
1617
|
+
$typeHint = '';
|
|
1618
|
+
$typeHintToken = false;
|
|
1619
|
+
$typeHintEndToken = false;
|
|
1620
|
+
$nullableType = false;
|
|
1621
|
+
$visibilityToken = null;
|
|
1622
|
+
$readonlyToken = null;
|
|
1623
|
+
|
|
1624
|
+
$paramCount++;
|
|
1625
|
+
break;
|
|
1626
|
+
case T_EQUAL:
|
|
1627
|
+
$defaultStart = $this->findNext(Tokens::$emptyTokens, ($i + 1), null, true);
|
|
1628
|
+
$equalToken = $i;
|
|
1629
|
+
break;
|
|
1630
|
+
}//end switch
|
|
1631
|
+
}//end for
|
|
1632
|
+
|
|
1633
|
+
return $vars;
|
|
1634
|
+
|
|
1635
|
+
}//end getMethodParameters()
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* Returns the visibility and implementation properties of a method.
|
|
1640
|
+
*
|
|
1641
|
+
* The format of the return value is:
|
|
1642
|
+
* <code>
|
|
1643
|
+
* array(
|
|
1644
|
+
* 'scope' => string, // Public, private, or protected
|
|
1645
|
+
* 'scope_specified' => boolean, // TRUE if the scope keyword was found.
|
|
1646
|
+
* 'return_type' => string, // The return type of the method.
|
|
1647
|
+
* 'return_type_token' => integer|false, // The stack pointer to the start of the return type
|
|
1648
|
+
* // or FALSE if there is no return type.
|
|
1649
|
+
* 'return_type_end_token' => integer|false, // The stack pointer to the end of the return type
|
|
1650
|
+
* // or FALSE if there is no return type.
|
|
1651
|
+
* 'nullable_return_type' => boolean, // TRUE if the return type is preceded by the
|
|
1652
|
+
* // nullability operator.
|
|
1653
|
+
* 'is_abstract' => boolean, // TRUE if the abstract keyword was found.
|
|
1654
|
+
* 'is_final' => boolean, // TRUE if the final keyword was found.
|
|
1655
|
+
* 'is_static' => boolean, // TRUE if the static keyword was found.
|
|
1656
|
+
* 'has_body' => boolean, // TRUE if the method has a body
|
|
1657
|
+
* );
|
|
1658
|
+
* </code>
|
|
1659
|
+
*
|
|
1660
|
+
* @param int $stackPtr The position in the stack of the function token to
|
|
1661
|
+
* acquire the properties for.
|
|
1662
|
+
*
|
|
1663
|
+
* @return array
|
|
1664
|
+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the specified position is not a
|
|
1665
|
+
* T_FUNCTION, T_CLOSURE, or T_FN token.
|
|
1666
|
+
*/
|
|
1667
|
+
public function getMethodProperties($stackPtr)
|
|
1668
|
+
{
|
|
1669
|
+
if ($this->tokens[$stackPtr]['code'] !== T_FUNCTION
|
|
1670
|
+
&& $this->tokens[$stackPtr]['code'] !== T_CLOSURE
|
|
1671
|
+
&& $this->tokens[$stackPtr]['code'] !== T_FN
|
|
1672
|
+
) {
|
|
1673
|
+
throw new RuntimeException('$stackPtr must be of type T_FUNCTION or T_CLOSURE or T_FN');
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
if ($this->tokens[$stackPtr]['code'] === T_FUNCTION) {
|
|
1677
|
+
$valid = [
|
|
1678
|
+
T_PUBLIC => T_PUBLIC,
|
|
1679
|
+
T_PRIVATE => T_PRIVATE,
|
|
1680
|
+
T_PROTECTED => T_PROTECTED,
|
|
1681
|
+
T_STATIC => T_STATIC,
|
|
1682
|
+
T_FINAL => T_FINAL,
|
|
1683
|
+
T_ABSTRACT => T_ABSTRACT,
|
|
1684
|
+
T_WHITESPACE => T_WHITESPACE,
|
|
1685
|
+
T_COMMENT => T_COMMENT,
|
|
1686
|
+
T_DOC_COMMENT => T_DOC_COMMENT,
|
|
1687
|
+
];
|
|
1688
|
+
} else {
|
|
1689
|
+
$valid = [
|
|
1690
|
+
T_STATIC => T_STATIC,
|
|
1691
|
+
T_WHITESPACE => T_WHITESPACE,
|
|
1692
|
+
T_COMMENT => T_COMMENT,
|
|
1693
|
+
T_DOC_COMMENT => T_DOC_COMMENT,
|
|
1694
|
+
];
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
$scope = 'public';
|
|
1698
|
+
$scopeSpecified = false;
|
|
1699
|
+
$isAbstract = false;
|
|
1700
|
+
$isFinal = false;
|
|
1701
|
+
$isStatic = false;
|
|
1702
|
+
|
|
1703
|
+
for ($i = ($stackPtr - 1); $i > 0; $i--) {
|
|
1704
|
+
if (isset($valid[$this->tokens[$i]['code']]) === false) {
|
|
1705
|
+
break;
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
switch ($this->tokens[$i]['code']) {
|
|
1709
|
+
case T_PUBLIC:
|
|
1710
|
+
$scope = 'public';
|
|
1711
|
+
$scopeSpecified = true;
|
|
1712
|
+
break;
|
|
1713
|
+
case T_PRIVATE:
|
|
1714
|
+
$scope = 'private';
|
|
1715
|
+
$scopeSpecified = true;
|
|
1716
|
+
break;
|
|
1717
|
+
case T_PROTECTED:
|
|
1718
|
+
$scope = 'protected';
|
|
1719
|
+
$scopeSpecified = true;
|
|
1720
|
+
break;
|
|
1721
|
+
case T_ABSTRACT:
|
|
1722
|
+
$isAbstract = true;
|
|
1723
|
+
break;
|
|
1724
|
+
case T_FINAL:
|
|
1725
|
+
$isFinal = true;
|
|
1726
|
+
break;
|
|
1727
|
+
case T_STATIC:
|
|
1728
|
+
$isStatic = true;
|
|
1729
|
+
break;
|
|
1730
|
+
}//end switch
|
|
1731
|
+
}//end for
|
|
1732
|
+
|
|
1733
|
+
$returnType = '';
|
|
1734
|
+
$returnTypeToken = false;
|
|
1735
|
+
$returnTypeEndToken = false;
|
|
1736
|
+
$nullableReturnType = false;
|
|
1737
|
+
$hasBody = true;
|
|
1738
|
+
|
|
1739
|
+
if (isset($this->tokens[$stackPtr]['parenthesis_closer']) === true) {
|
|
1740
|
+
$scopeOpener = null;
|
|
1741
|
+
if (isset($this->tokens[$stackPtr]['scope_opener']) === true) {
|
|
1742
|
+
$scopeOpener = $this->tokens[$stackPtr]['scope_opener'];
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
$valid = [
|
|
1746
|
+
T_STRING => T_STRING,
|
|
1747
|
+
T_CALLABLE => T_CALLABLE,
|
|
1748
|
+
T_SELF => T_SELF,
|
|
1749
|
+
T_PARENT => T_PARENT,
|
|
1750
|
+
T_STATIC => T_STATIC,
|
|
1751
|
+
T_FALSE => T_FALSE,
|
|
1752
|
+
T_TRUE => T_TRUE,
|
|
1753
|
+
T_NULL => T_NULL,
|
|
1754
|
+
T_NAMESPACE => T_NAMESPACE,
|
|
1755
|
+
T_NS_SEPARATOR => T_NS_SEPARATOR,
|
|
1756
|
+
T_TYPE_UNION => T_TYPE_UNION,
|
|
1757
|
+
T_TYPE_INTERSECTION => T_TYPE_INTERSECTION,
|
|
1758
|
+
T_TYPE_OPEN_PARENTHESIS => T_TYPE_OPEN_PARENTHESIS,
|
|
1759
|
+
T_TYPE_CLOSE_PARENTHESIS => T_TYPE_CLOSE_PARENTHESIS,
|
|
1760
|
+
];
|
|
1761
|
+
|
|
1762
|
+
for ($i = $this->tokens[$stackPtr]['parenthesis_closer']; $i < $this->numTokens; $i++) {
|
|
1763
|
+
if (($scopeOpener === null && $this->tokens[$i]['code'] === T_SEMICOLON)
|
|
1764
|
+
|| ($scopeOpener !== null && $i === $scopeOpener)
|
|
1765
|
+
) {
|
|
1766
|
+
// End of function definition.
|
|
1767
|
+
break;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
if ($this->tokens[$i]['code'] === T_USE) {
|
|
1771
|
+
// Skip over closure use statements.
|
|
1772
|
+
for ($j = ($i + 1); $j < $this->numTokens && isset(Tokens::$emptyTokens[$this->tokens[$j]['code']]) === true; $j++);
|
|
1773
|
+
if ($this->tokens[$j]['code'] === T_OPEN_PARENTHESIS) {
|
|
1774
|
+
if (isset($this->tokens[$j]['parenthesis_closer']) === false) {
|
|
1775
|
+
// Live coding/parse error, stop parsing.
|
|
1776
|
+
break;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
$i = $this->tokens[$j]['parenthesis_closer'];
|
|
1780
|
+
continue;
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
if ($this->tokens[$i]['code'] === T_NULLABLE) {
|
|
1785
|
+
$nullableReturnType = true;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
if (isset($valid[$this->tokens[$i]['code']]) === true) {
|
|
1789
|
+
if ($returnTypeToken === false) {
|
|
1790
|
+
$returnTypeToken = $i;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
$returnType .= $this->tokens[$i]['content'];
|
|
1794
|
+
$returnTypeEndToken = $i;
|
|
1795
|
+
}
|
|
1796
|
+
}//end for
|
|
1797
|
+
|
|
1798
|
+
if ($this->tokens[$stackPtr]['code'] === T_FN) {
|
|
1799
|
+
$bodyToken = T_FN_ARROW;
|
|
1800
|
+
} else {
|
|
1801
|
+
$bodyToken = T_OPEN_CURLY_BRACKET;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
$end = $this->findNext([$bodyToken, T_SEMICOLON], $this->tokens[$stackPtr]['parenthesis_closer']);
|
|
1805
|
+
$hasBody = $this->tokens[$end]['code'] === $bodyToken;
|
|
1806
|
+
}//end if
|
|
1807
|
+
|
|
1808
|
+
if ($returnType !== '' && $nullableReturnType === true) {
|
|
1809
|
+
$returnType = '?'.$returnType;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
return [
|
|
1813
|
+
'scope' => $scope,
|
|
1814
|
+
'scope_specified' => $scopeSpecified,
|
|
1815
|
+
'return_type' => $returnType,
|
|
1816
|
+
'return_type_token' => $returnTypeToken,
|
|
1817
|
+
'return_type_end_token' => $returnTypeEndToken,
|
|
1818
|
+
'nullable_return_type' => $nullableReturnType,
|
|
1819
|
+
'is_abstract' => $isAbstract,
|
|
1820
|
+
'is_final' => $isFinal,
|
|
1821
|
+
'is_static' => $isStatic,
|
|
1822
|
+
'has_body' => $hasBody,
|
|
1823
|
+
];
|
|
1824
|
+
|
|
1825
|
+
}//end getMethodProperties()
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* Returns the visibility and implementation properties of a class member var.
|
|
1830
|
+
*
|
|
1831
|
+
* The format of the return value is:
|
|
1832
|
+
*
|
|
1833
|
+
* <code>
|
|
1834
|
+
* array(
|
|
1835
|
+
* 'scope' => string, // Public, private, or protected.
|
|
1836
|
+
* 'scope_specified' => boolean, // TRUE if the scope was explicitly specified.
|
|
1837
|
+
* 'is_static' => boolean, // TRUE if the static keyword was found.
|
|
1838
|
+
* 'is_readonly' => boolean, // TRUE if the readonly keyword was found.
|
|
1839
|
+
* 'type' => string, // The type of the var (empty if no type specified).
|
|
1840
|
+
* 'type_token' => integer|false, // The stack pointer to the start of the type
|
|
1841
|
+
* // or FALSE if there is no type.
|
|
1842
|
+
* 'type_end_token' => integer|false, // The stack pointer to the end of the type
|
|
1843
|
+
* // or FALSE if there is no type.
|
|
1844
|
+
* 'nullable_type' => boolean, // TRUE if the type is preceded by the nullability
|
|
1845
|
+
* // operator.
|
|
1846
|
+
* );
|
|
1847
|
+
* </code>
|
|
1848
|
+
*
|
|
1849
|
+
* @param int $stackPtr The position in the stack of the T_VARIABLE token to
|
|
1850
|
+
* acquire the properties for.
|
|
1851
|
+
*
|
|
1852
|
+
* @return array
|
|
1853
|
+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the specified position is not a
|
|
1854
|
+
* T_VARIABLE token, or if the position is not
|
|
1855
|
+
* a class member variable.
|
|
1856
|
+
*/
|
|
1857
|
+
public function getMemberProperties($stackPtr)
|
|
1858
|
+
{
|
|
1859
|
+
if ($this->tokens[$stackPtr]['code'] !== T_VARIABLE) {
|
|
1860
|
+
throw new RuntimeException('$stackPtr must be of type T_VARIABLE');
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
$conditions = array_keys($this->tokens[$stackPtr]['conditions']);
|
|
1864
|
+
$ptr = array_pop($conditions);
|
|
1865
|
+
if (isset($this->tokens[$ptr]) === false
|
|
1866
|
+
|| ($this->tokens[$ptr]['code'] !== T_CLASS
|
|
1867
|
+
&& $this->tokens[$ptr]['code'] !== T_ANON_CLASS
|
|
1868
|
+
&& $this->tokens[$ptr]['code'] !== T_TRAIT)
|
|
1869
|
+
) {
|
|
1870
|
+
if (isset($this->tokens[$ptr]) === true
|
|
1871
|
+
&& ($this->tokens[$ptr]['code'] === T_INTERFACE
|
|
1872
|
+
|| $this->tokens[$ptr]['code'] === T_ENUM)
|
|
1873
|
+
) {
|
|
1874
|
+
// T_VARIABLEs in interfaces/enums can actually be method arguments
|
|
1875
|
+
// but they won't be seen as being inside the method because there
|
|
1876
|
+
// are no scope openers and closers for abstract methods. If it is in
|
|
1877
|
+
// parentheses, we can be pretty sure it is a method argument.
|
|
1878
|
+
if (isset($this->tokens[$stackPtr]['nested_parenthesis']) === false
|
|
1879
|
+
|| empty($this->tokens[$stackPtr]['nested_parenthesis']) === true
|
|
1880
|
+
) {
|
|
1881
|
+
$error = 'Possible parse error: %ss may not include member vars';
|
|
1882
|
+
$code = sprintf('Internal.ParseError.%sHasMemberVar', ucfirst($this->tokens[$ptr]['content']));
|
|
1883
|
+
$data = [strtolower($this->tokens[$ptr]['content'])];
|
|
1884
|
+
$this->addWarning($error, $stackPtr, $code, $data);
|
|
1885
|
+
return [];
|
|
1886
|
+
}
|
|
1887
|
+
} else {
|
|
1888
|
+
throw new RuntimeException('$stackPtr is not a class member var');
|
|
1889
|
+
}
|
|
1890
|
+
}//end if
|
|
1891
|
+
|
|
1892
|
+
// Make sure it's not a method parameter.
|
|
1893
|
+
if (empty($this->tokens[$stackPtr]['nested_parenthesis']) === false) {
|
|
1894
|
+
$parenthesis = array_keys($this->tokens[$stackPtr]['nested_parenthesis']);
|
|
1895
|
+
$deepestOpen = array_pop($parenthesis);
|
|
1896
|
+
if ($deepestOpen > $ptr
|
|
1897
|
+
&& isset($this->tokens[$deepestOpen]['parenthesis_owner']) === true
|
|
1898
|
+
&& $this->tokens[$this->tokens[$deepestOpen]['parenthesis_owner']]['code'] === T_FUNCTION
|
|
1899
|
+
) {
|
|
1900
|
+
throw new RuntimeException('$stackPtr is not a class member var');
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
$valid = [
|
|
1905
|
+
T_PUBLIC => T_PUBLIC,
|
|
1906
|
+
T_PRIVATE => T_PRIVATE,
|
|
1907
|
+
T_PROTECTED => T_PROTECTED,
|
|
1908
|
+
T_STATIC => T_STATIC,
|
|
1909
|
+
T_VAR => T_VAR,
|
|
1910
|
+
T_READONLY => T_READONLY,
|
|
1911
|
+
];
|
|
1912
|
+
|
|
1913
|
+
$valid += Tokens::$emptyTokens;
|
|
1914
|
+
|
|
1915
|
+
$scope = 'public';
|
|
1916
|
+
$scopeSpecified = false;
|
|
1917
|
+
$isStatic = false;
|
|
1918
|
+
$isReadonly = false;
|
|
1919
|
+
|
|
1920
|
+
$startOfStatement = $this->findPrevious(
|
|
1921
|
+
[
|
|
1922
|
+
T_SEMICOLON,
|
|
1923
|
+
T_OPEN_CURLY_BRACKET,
|
|
1924
|
+
T_CLOSE_CURLY_BRACKET,
|
|
1925
|
+
T_ATTRIBUTE_END,
|
|
1926
|
+
],
|
|
1927
|
+
($stackPtr - 1)
|
|
1928
|
+
);
|
|
1929
|
+
|
|
1930
|
+
for ($i = ($startOfStatement + 1); $i < $stackPtr; $i++) {
|
|
1931
|
+
if (isset($valid[$this->tokens[$i]['code']]) === false) {
|
|
1932
|
+
break;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
switch ($this->tokens[$i]['code']) {
|
|
1936
|
+
case T_PUBLIC:
|
|
1937
|
+
$scope = 'public';
|
|
1938
|
+
$scopeSpecified = true;
|
|
1939
|
+
break;
|
|
1940
|
+
case T_PRIVATE:
|
|
1941
|
+
$scope = 'private';
|
|
1942
|
+
$scopeSpecified = true;
|
|
1943
|
+
break;
|
|
1944
|
+
case T_PROTECTED:
|
|
1945
|
+
$scope = 'protected';
|
|
1946
|
+
$scopeSpecified = true;
|
|
1947
|
+
break;
|
|
1948
|
+
case T_STATIC:
|
|
1949
|
+
$isStatic = true;
|
|
1950
|
+
break;
|
|
1951
|
+
case T_READONLY:
|
|
1952
|
+
$isReadonly = true;
|
|
1953
|
+
break;
|
|
1954
|
+
}
|
|
1955
|
+
}//end for
|
|
1956
|
+
|
|
1957
|
+
$type = '';
|
|
1958
|
+
$typeToken = false;
|
|
1959
|
+
$typeEndToken = false;
|
|
1960
|
+
$nullableType = false;
|
|
1961
|
+
|
|
1962
|
+
if ($i < $stackPtr) {
|
|
1963
|
+
// We've found a type.
|
|
1964
|
+
$valid = [
|
|
1965
|
+
T_STRING => T_STRING,
|
|
1966
|
+
T_CALLABLE => T_CALLABLE,
|
|
1967
|
+
T_SELF => T_SELF,
|
|
1968
|
+
T_PARENT => T_PARENT,
|
|
1969
|
+
T_FALSE => T_FALSE,
|
|
1970
|
+
T_TRUE => T_TRUE,
|
|
1971
|
+
T_NULL => T_NULL,
|
|
1972
|
+
T_NAMESPACE => T_NAMESPACE,
|
|
1973
|
+
T_NS_SEPARATOR => T_NS_SEPARATOR,
|
|
1974
|
+
T_TYPE_UNION => T_TYPE_UNION,
|
|
1975
|
+
T_TYPE_INTERSECTION => T_TYPE_INTERSECTION,
|
|
1976
|
+
T_TYPE_OPEN_PARENTHESIS => T_TYPE_OPEN_PARENTHESIS,
|
|
1977
|
+
T_TYPE_CLOSE_PARENTHESIS => T_TYPE_CLOSE_PARENTHESIS,
|
|
1978
|
+
];
|
|
1979
|
+
|
|
1980
|
+
for ($i; $i < $stackPtr; $i++) {
|
|
1981
|
+
if ($this->tokens[$i]['code'] === T_VARIABLE) {
|
|
1982
|
+
// Hit another variable in a group definition.
|
|
1983
|
+
break;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
if ($this->tokens[$i]['code'] === T_NULLABLE) {
|
|
1987
|
+
$nullableType = true;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
if (isset($valid[$this->tokens[$i]['code']]) === true) {
|
|
1991
|
+
$typeEndToken = $i;
|
|
1992
|
+
if ($typeToken === false) {
|
|
1993
|
+
$typeToken = $i;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
$type .= $this->tokens[$i]['content'];
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
if ($type !== '' && $nullableType === true) {
|
|
2001
|
+
$type = '?'.$type;
|
|
2002
|
+
}
|
|
2003
|
+
}//end if
|
|
2004
|
+
|
|
2005
|
+
return [
|
|
2006
|
+
'scope' => $scope,
|
|
2007
|
+
'scope_specified' => $scopeSpecified,
|
|
2008
|
+
'is_static' => $isStatic,
|
|
2009
|
+
'is_readonly' => $isReadonly,
|
|
2010
|
+
'type' => $type,
|
|
2011
|
+
'type_token' => $typeToken,
|
|
2012
|
+
'type_end_token' => $typeEndToken,
|
|
2013
|
+
'nullable_type' => $nullableType,
|
|
2014
|
+
];
|
|
2015
|
+
|
|
2016
|
+
}//end getMemberProperties()
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* Returns the visibility and implementation properties of a class.
|
|
2021
|
+
*
|
|
2022
|
+
* The format of the return value is:
|
|
2023
|
+
* <code>
|
|
2024
|
+
* array(
|
|
2025
|
+
* 'is_abstract' => boolean, // TRUE if the abstract keyword was found.
|
|
2026
|
+
* 'is_final' => boolean, // TRUE if the final keyword was found.
|
|
2027
|
+
* 'is_readonly' => boolean, // TRUE if the readonly keyword was found.
|
|
2028
|
+
* );
|
|
2029
|
+
* </code>
|
|
2030
|
+
*
|
|
2031
|
+
* @param int $stackPtr The position in the stack of the T_CLASS token to
|
|
2032
|
+
* acquire the properties for.
|
|
2033
|
+
*
|
|
2034
|
+
* @return array
|
|
2035
|
+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the specified position is not a
|
|
2036
|
+
* T_CLASS token.
|
|
2037
|
+
*/
|
|
2038
|
+
public function getClassProperties($stackPtr)
|
|
2039
|
+
{
|
|
2040
|
+
if ($this->tokens[$stackPtr]['code'] !== T_CLASS) {
|
|
2041
|
+
throw new RuntimeException('$stackPtr must be of type T_CLASS');
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
$valid = [
|
|
2045
|
+
T_FINAL => T_FINAL,
|
|
2046
|
+
T_ABSTRACT => T_ABSTRACT,
|
|
2047
|
+
T_READONLY => T_READONLY,
|
|
2048
|
+
T_WHITESPACE => T_WHITESPACE,
|
|
2049
|
+
T_COMMENT => T_COMMENT,
|
|
2050
|
+
T_DOC_COMMENT => T_DOC_COMMENT,
|
|
2051
|
+
];
|
|
2052
|
+
|
|
2053
|
+
$isAbstract = false;
|
|
2054
|
+
$isFinal = false;
|
|
2055
|
+
$isReadonly = false;
|
|
2056
|
+
|
|
2057
|
+
for ($i = ($stackPtr - 1); $i > 0; $i--) {
|
|
2058
|
+
if (isset($valid[$this->tokens[$i]['code']]) === false) {
|
|
2059
|
+
break;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
switch ($this->tokens[$i]['code']) {
|
|
2063
|
+
case T_ABSTRACT:
|
|
2064
|
+
$isAbstract = true;
|
|
2065
|
+
break;
|
|
2066
|
+
|
|
2067
|
+
case T_FINAL:
|
|
2068
|
+
$isFinal = true;
|
|
2069
|
+
break;
|
|
2070
|
+
|
|
2071
|
+
case T_READONLY:
|
|
2072
|
+
$isReadonly = true;
|
|
2073
|
+
break;
|
|
2074
|
+
}
|
|
2075
|
+
}//end for
|
|
2076
|
+
|
|
2077
|
+
return [
|
|
2078
|
+
'is_abstract' => $isAbstract,
|
|
2079
|
+
'is_final' => $isFinal,
|
|
2080
|
+
'is_readonly' => $isReadonly,
|
|
2081
|
+
];
|
|
2082
|
+
|
|
2083
|
+
}//end getClassProperties()
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* Determine if the passed token is a reference operator.
|
|
2088
|
+
*
|
|
2089
|
+
* Returns true if the specified token position represents a reference.
|
|
2090
|
+
* Returns false if the token represents a bitwise operator.
|
|
2091
|
+
*
|
|
2092
|
+
* @param int $stackPtr The position of the T_BITWISE_AND token.
|
|
2093
|
+
*
|
|
2094
|
+
* @return boolean
|
|
2095
|
+
*/
|
|
2096
|
+
public function isReference($stackPtr)
|
|
2097
|
+
{
|
|
2098
|
+
if ($this->tokens[$stackPtr]['code'] !== T_BITWISE_AND) {
|
|
2099
|
+
return false;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
$tokenBefore = $this->findPrevious(
|
|
2103
|
+
Tokens::$emptyTokens,
|
|
2104
|
+
($stackPtr - 1),
|
|
2105
|
+
null,
|
|
2106
|
+
true
|
|
2107
|
+
);
|
|
2108
|
+
|
|
2109
|
+
if ($this->tokens[$tokenBefore]['code'] === T_FUNCTION
|
|
2110
|
+
|| $this->tokens[$tokenBefore]['code'] === T_CLOSURE
|
|
2111
|
+
|| $this->tokens[$tokenBefore]['code'] === T_FN
|
|
2112
|
+
) {
|
|
2113
|
+
// Function returns a reference.
|
|
2114
|
+
return true;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
if ($this->tokens[$tokenBefore]['code'] === T_DOUBLE_ARROW) {
|
|
2118
|
+
// Inside a foreach loop or array assignment, this is a reference.
|
|
2119
|
+
return true;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
if ($this->tokens[$tokenBefore]['code'] === T_AS) {
|
|
2123
|
+
// Inside a foreach loop, this is a reference.
|
|
2124
|
+
return true;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
if (isset(Tokens::$assignmentTokens[$this->tokens[$tokenBefore]['code']]) === true) {
|
|
2128
|
+
// This is directly after an assignment. It's a reference. Even if
|
|
2129
|
+
// it is part of an operation, the other tests will handle it.
|
|
2130
|
+
return true;
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
$tokenAfter = $this->findNext(
|
|
2134
|
+
Tokens::$emptyTokens,
|
|
2135
|
+
($stackPtr + 1),
|
|
2136
|
+
null,
|
|
2137
|
+
true
|
|
2138
|
+
);
|
|
2139
|
+
|
|
2140
|
+
if ($this->tokens[$tokenAfter]['code'] === T_NEW) {
|
|
2141
|
+
return true;
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
if (isset($this->tokens[$stackPtr]['nested_parenthesis']) === true) {
|
|
2145
|
+
$brackets = $this->tokens[$stackPtr]['nested_parenthesis'];
|
|
2146
|
+
$lastBracket = array_pop($brackets);
|
|
2147
|
+
if (isset($this->tokens[$lastBracket]['parenthesis_owner']) === true) {
|
|
2148
|
+
$owner = $this->tokens[$this->tokens[$lastBracket]['parenthesis_owner']];
|
|
2149
|
+
if ($owner['code'] === T_FUNCTION
|
|
2150
|
+
|| $owner['code'] === T_CLOSURE
|
|
2151
|
+
|| $owner['code'] === T_FN
|
|
2152
|
+
) {
|
|
2153
|
+
$params = $this->getMethodParameters($this->tokens[$lastBracket]['parenthesis_owner']);
|
|
2154
|
+
foreach ($params as $param) {
|
|
2155
|
+
if ($param['reference_token'] === $stackPtr) {
|
|
2156
|
+
// Function parameter declared to be passed by reference.
|
|
2157
|
+
return true;
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
}//end if
|
|
2161
|
+
} else {
|
|
2162
|
+
$prev = false;
|
|
2163
|
+
for ($t = ($this->tokens[$lastBracket]['parenthesis_opener'] - 1); $t >= 0; $t--) {
|
|
2164
|
+
if ($this->tokens[$t]['code'] !== T_WHITESPACE) {
|
|
2165
|
+
$prev = $t;
|
|
2166
|
+
break;
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
if ($prev !== false && $this->tokens[$prev]['code'] === T_USE) {
|
|
2171
|
+
// Closure use by reference.
|
|
2172
|
+
return true;
|
|
2173
|
+
}
|
|
2174
|
+
}//end if
|
|
2175
|
+
}//end if
|
|
2176
|
+
|
|
2177
|
+
// Pass by reference in function calls and assign by reference in arrays.
|
|
2178
|
+
if ($this->tokens[$tokenBefore]['code'] === T_OPEN_PARENTHESIS
|
|
2179
|
+
|| $this->tokens[$tokenBefore]['code'] === T_COMMA
|
|
2180
|
+
|| $this->tokens[$tokenBefore]['code'] === T_OPEN_SHORT_ARRAY
|
|
2181
|
+
) {
|
|
2182
|
+
if ($this->tokens[$tokenAfter]['code'] === T_VARIABLE) {
|
|
2183
|
+
return true;
|
|
2184
|
+
} else {
|
|
2185
|
+
$skip = Tokens::$emptyTokens;
|
|
2186
|
+
$skip[] = T_NS_SEPARATOR;
|
|
2187
|
+
$skip[] = T_SELF;
|
|
2188
|
+
$skip[] = T_PARENT;
|
|
2189
|
+
$skip[] = T_STATIC;
|
|
2190
|
+
$skip[] = T_STRING;
|
|
2191
|
+
$skip[] = T_NAMESPACE;
|
|
2192
|
+
$skip[] = T_DOUBLE_COLON;
|
|
2193
|
+
|
|
2194
|
+
$nextSignificantAfter = $this->findNext(
|
|
2195
|
+
$skip,
|
|
2196
|
+
($stackPtr + 1),
|
|
2197
|
+
null,
|
|
2198
|
+
true
|
|
2199
|
+
);
|
|
2200
|
+
if ($this->tokens[$nextSignificantAfter]['code'] === T_VARIABLE) {
|
|
2201
|
+
return true;
|
|
2202
|
+
}
|
|
2203
|
+
}//end if
|
|
2204
|
+
}//end if
|
|
2205
|
+
|
|
2206
|
+
return false;
|
|
2207
|
+
|
|
2208
|
+
}//end isReference()
|
|
2209
|
+
|
|
2210
|
+
|
|
2211
|
+
/**
|
|
2212
|
+
* Returns the content of the tokens from the specified start position in
|
|
2213
|
+
* the token stack for the specified length.
|
|
2214
|
+
*
|
|
2215
|
+
* @param int $start The position to start from in the token stack.
|
|
2216
|
+
* @param int $length The length of tokens to traverse from the start pos.
|
|
2217
|
+
* @param bool $origContent Whether the original content or the tab replaced
|
|
2218
|
+
* content should be used.
|
|
2219
|
+
*
|
|
2220
|
+
* @return string The token contents.
|
|
2221
|
+
* @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the specified position does not exist.
|
|
2222
|
+
*/
|
|
2223
|
+
public function getTokensAsString($start, $length, $origContent=false)
|
|
2224
|
+
{
|
|
2225
|
+
if (is_int($start) === false || isset($this->tokens[$start]) === false) {
|
|
2226
|
+
throw new RuntimeException('The $start position for getTokensAsString() must exist in the token stack');
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
if (is_int($length) === false || $length <= 0) {
|
|
2230
|
+
return '';
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
$str = '';
|
|
2234
|
+
$end = ($start + $length);
|
|
2235
|
+
if ($end > $this->numTokens) {
|
|
2236
|
+
$end = $this->numTokens;
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
for ($i = $start; $i < $end; $i++) {
|
|
2240
|
+
// If tabs are being converted to spaces by the tokeniser, the
|
|
2241
|
+
// original content should be used instead of the converted content.
|
|
2242
|
+
if ($origContent === true && isset($this->tokens[$i]['orig_content']) === true) {
|
|
2243
|
+
$str .= $this->tokens[$i]['orig_content'];
|
|
2244
|
+
} else {
|
|
2245
|
+
$str .= $this->tokens[$i]['content'];
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
return $str;
|
|
2250
|
+
|
|
2251
|
+
}//end getTokensAsString()
|
|
2252
|
+
|
|
2253
|
+
|
|
2254
|
+
/**
|
|
2255
|
+
* Returns the position of the previous specified token(s).
|
|
2256
|
+
*
|
|
2257
|
+
* If a value is specified, the previous token of the specified type(s)
|
|
2258
|
+
* containing the specified value will be returned.
|
|
2259
|
+
*
|
|
2260
|
+
* Returns false if no token can be found.
|
|
2261
|
+
*
|
|
2262
|
+
* @param int|string|array $types The type(s) of tokens to search for.
|
|
2263
|
+
* @param int $start The position to start searching from in the
|
|
2264
|
+
* token stack.
|
|
2265
|
+
* @param int|null $end The end position to fail if no token is found.
|
|
2266
|
+
* if not specified or null, end will default to
|
|
2267
|
+
* the start of the token stack.
|
|
2268
|
+
* @param bool $exclude If true, find the previous token that is NOT of
|
|
2269
|
+
* the types specified in $types.
|
|
2270
|
+
* @param string|null $value The value that the token(s) must be equal to.
|
|
2271
|
+
* If value is omitted, tokens with any value will
|
|
2272
|
+
* be returned.
|
|
2273
|
+
* @param bool $local If true, tokens outside the current statement
|
|
2274
|
+
* will not be checked. IE. checking will stop
|
|
2275
|
+
* at the previous semicolon found.
|
|
2276
|
+
*
|
|
2277
|
+
* @return int|false
|
|
2278
|
+
* @see findNext()
|
|
2279
|
+
*/
|
|
2280
|
+
public function findPrevious(
|
|
2281
|
+
$types,
|
|
2282
|
+
$start,
|
|
2283
|
+
$end=null,
|
|
2284
|
+
$exclude=false,
|
|
2285
|
+
$value=null,
|
|
2286
|
+
$local=false
|
|
2287
|
+
) {
|
|
2288
|
+
$types = (array) $types;
|
|
2289
|
+
|
|
2290
|
+
if ($end === null) {
|
|
2291
|
+
$end = 0;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
for ($i = $start; $i >= $end; $i--) {
|
|
2295
|
+
$found = (bool) $exclude;
|
|
2296
|
+
foreach ($types as $type) {
|
|
2297
|
+
if ($this->tokens[$i]['code'] === $type) {
|
|
2298
|
+
$found = !$exclude;
|
|
2299
|
+
break;
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
if ($found === true) {
|
|
2304
|
+
if ($value === null) {
|
|
2305
|
+
return $i;
|
|
2306
|
+
} else if ($this->tokens[$i]['content'] === $value) {
|
|
2307
|
+
return $i;
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
if ($local === true) {
|
|
2312
|
+
if (isset($this->tokens[$i]['scope_opener']) === true
|
|
2313
|
+
&& $i === $this->tokens[$i]['scope_closer']
|
|
2314
|
+
) {
|
|
2315
|
+
$i = $this->tokens[$i]['scope_opener'];
|
|
2316
|
+
} else if (isset($this->tokens[$i]['bracket_opener']) === true
|
|
2317
|
+
&& $i === $this->tokens[$i]['bracket_closer']
|
|
2318
|
+
) {
|
|
2319
|
+
$i = $this->tokens[$i]['bracket_opener'];
|
|
2320
|
+
} else if (isset($this->tokens[$i]['parenthesis_opener']) === true
|
|
2321
|
+
&& $i === $this->tokens[$i]['parenthesis_closer']
|
|
2322
|
+
) {
|
|
2323
|
+
$i = $this->tokens[$i]['parenthesis_opener'];
|
|
2324
|
+
} else if ($this->tokens[$i]['code'] === T_SEMICOLON) {
|
|
2325
|
+
break;
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
}//end for
|
|
2329
|
+
|
|
2330
|
+
return false;
|
|
2331
|
+
|
|
2332
|
+
}//end findPrevious()
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* Returns the position of the next specified token(s).
|
|
2337
|
+
*
|
|
2338
|
+
* If a value is specified, the next token of the specified type(s)
|
|
2339
|
+
* containing the specified value will be returned.
|
|
2340
|
+
*
|
|
2341
|
+
* Returns false if no token can be found.
|
|
2342
|
+
*
|
|
2343
|
+
* @param int|string|array $types The type(s) of tokens to search for.
|
|
2344
|
+
* @param int $start The position to start searching from in the
|
|
2345
|
+
* token stack.
|
|
2346
|
+
* @param int|null $end The end position to fail if no token is found.
|
|
2347
|
+
* if not specified or null, end will default to
|
|
2348
|
+
* the end of the token stack.
|
|
2349
|
+
* @param bool $exclude If true, find the next token that is NOT of
|
|
2350
|
+
* a type specified in $types.
|
|
2351
|
+
* @param string|null $value The value that the token(s) must be equal to.
|
|
2352
|
+
* If value is omitted, tokens with any value will
|
|
2353
|
+
* be returned.
|
|
2354
|
+
* @param bool $local If true, tokens outside the current statement
|
|
2355
|
+
* will not be checked. i.e., checking will stop
|
|
2356
|
+
* at the next semicolon found.
|
|
2357
|
+
*
|
|
2358
|
+
* @return int|false
|
|
2359
|
+
* @see findPrevious()
|
|
2360
|
+
*/
|
|
2361
|
+
public function findNext(
|
|
2362
|
+
$types,
|
|
2363
|
+
$start,
|
|
2364
|
+
$end=null,
|
|
2365
|
+
$exclude=false,
|
|
2366
|
+
$value=null,
|
|
2367
|
+
$local=false
|
|
2368
|
+
) {
|
|
2369
|
+
$types = (array) $types;
|
|
2370
|
+
|
|
2371
|
+
if ($end === null || $end > $this->numTokens) {
|
|
2372
|
+
$end = $this->numTokens;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
for ($i = $start; $i < $end; $i++) {
|
|
2376
|
+
$found = (bool) $exclude;
|
|
2377
|
+
foreach ($types as $type) {
|
|
2378
|
+
if ($this->tokens[$i]['code'] === $type) {
|
|
2379
|
+
$found = !$exclude;
|
|
2380
|
+
break;
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
if ($found === true) {
|
|
2385
|
+
if ($value === null) {
|
|
2386
|
+
return $i;
|
|
2387
|
+
} else if ($this->tokens[$i]['content'] === $value) {
|
|
2388
|
+
return $i;
|
|
2389
|
+
}
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
if ($local === true && $this->tokens[$i]['code'] === T_SEMICOLON) {
|
|
2393
|
+
break;
|
|
2394
|
+
}
|
|
2395
|
+
}//end for
|
|
2396
|
+
|
|
2397
|
+
return false;
|
|
2398
|
+
|
|
2399
|
+
}//end findNext()
|
|
2400
|
+
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* Returns the position of the first non-whitespace token in a statement.
|
|
2404
|
+
*
|
|
2405
|
+
* @param int $start The position to start searching from in the token stack.
|
|
2406
|
+
* @param int|string|array $ignore Token types that should not be considered stop points.
|
|
2407
|
+
*
|
|
2408
|
+
* @return int
|
|
2409
|
+
*/
|
|
2410
|
+
public function findStartOfStatement($start, $ignore=null)
|
|
2411
|
+
{
|
|
2412
|
+
$startTokens = Tokens::$blockOpeners;
|
|
2413
|
+
$startTokens[T_OPEN_SHORT_ARRAY] = true;
|
|
2414
|
+
$startTokens[T_OPEN_TAG] = true;
|
|
2415
|
+
$startTokens[T_OPEN_TAG_WITH_ECHO] = true;
|
|
2416
|
+
|
|
2417
|
+
$endTokens = [
|
|
2418
|
+
T_CLOSE_TAG => true,
|
|
2419
|
+
T_COLON => true,
|
|
2420
|
+
T_COMMA => true,
|
|
2421
|
+
T_DOUBLE_ARROW => true,
|
|
2422
|
+
T_MATCH_ARROW => true,
|
|
2423
|
+
T_SEMICOLON => true,
|
|
2424
|
+
];
|
|
2425
|
+
|
|
2426
|
+
if ($ignore !== null) {
|
|
2427
|
+
$ignore = (array) $ignore;
|
|
2428
|
+
foreach ($ignore as $code) {
|
|
2429
|
+
if (isset($startTokens[$code]) === true) {
|
|
2430
|
+
unset($startTokens[$code]);
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
if (isset($endTokens[$code]) === true) {
|
|
2434
|
+
unset($endTokens[$code]);
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
// If the start token is inside the case part of a match expression,
|
|
2440
|
+
// find the start of the condition. If it's in the statement part, find
|
|
2441
|
+
// the token that comes after the match arrow.
|
|
2442
|
+
if (empty($this->tokens[$start]['conditions']) === false) {
|
|
2443
|
+
$conditions = $this->tokens[$start]['conditions'];
|
|
2444
|
+
$lastConditionOwner = end($conditions);
|
|
2445
|
+
$matchExpression = key($conditions);
|
|
2446
|
+
|
|
2447
|
+
if ($lastConditionOwner === T_MATCH
|
|
2448
|
+
// Check if the $start token is at the same parentheses nesting level as the match token.
|
|
2449
|
+
&& ((empty($this->tokens[$matchExpression]['nested_parenthesis']) === true
|
|
2450
|
+
&& empty($this->tokens[$start]['nested_parenthesis']) === true)
|
|
2451
|
+
|| ((empty($this->tokens[$matchExpression]['nested_parenthesis']) === false
|
|
2452
|
+
&& empty($this->tokens[$start]['nested_parenthesis']) === false)
|
|
2453
|
+
&& $this->tokens[$matchExpression]['nested_parenthesis'] === $this->tokens[$start]['nested_parenthesis']))
|
|
2454
|
+
) {
|
|
2455
|
+
// Walk back to the previous match arrow (if it exists).
|
|
2456
|
+
$lastComma = null;
|
|
2457
|
+
$inNestedExpression = false;
|
|
2458
|
+
for ($prevMatch = $start; $prevMatch > $this->tokens[$matchExpression]['scope_opener']; $prevMatch--) {
|
|
2459
|
+
if ($prevMatch !== $start && $this->tokens[$prevMatch]['code'] === T_MATCH_ARROW) {
|
|
2460
|
+
break;
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
if ($prevMatch !== $start && $this->tokens[$prevMatch]['code'] === T_COMMA) {
|
|
2464
|
+
$lastComma = $prevMatch;
|
|
2465
|
+
continue;
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
// Skip nested statements.
|
|
2469
|
+
if (isset($this->tokens[$prevMatch]['bracket_opener']) === true
|
|
2470
|
+
&& $prevMatch === $this->tokens[$prevMatch]['bracket_closer']
|
|
2471
|
+
) {
|
|
2472
|
+
$prevMatch = $this->tokens[$prevMatch]['bracket_opener'];
|
|
2473
|
+
continue;
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
if (isset($this->tokens[$prevMatch]['parenthesis_opener']) === true
|
|
2477
|
+
&& $prevMatch === $this->tokens[$prevMatch]['parenthesis_closer']
|
|
2478
|
+
) {
|
|
2479
|
+
$prevMatch = $this->tokens[$prevMatch]['parenthesis_opener'];
|
|
2480
|
+
continue;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
// Stop if we're _within_ a nested short array statement, which may contain comma's too.
|
|
2484
|
+
// No need to deal with parentheses, those are handled above via the `nested_parenthesis` checks.
|
|
2485
|
+
if (isset($this->tokens[$prevMatch]['bracket_opener']) === true
|
|
2486
|
+
&& $this->tokens[$prevMatch]['bracket_closer'] > $start
|
|
2487
|
+
) {
|
|
2488
|
+
$inNestedExpression = true;
|
|
2489
|
+
break;
|
|
2490
|
+
}
|
|
2491
|
+
}//end for
|
|
2492
|
+
|
|
2493
|
+
if ($inNestedExpression === false) {
|
|
2494
|
+
// $prevMatch will now either be the scope opener or a match arrow.
|
|
2495
|
+
// If it is the scope opener, go the first non-empty token after. $start will have been part of the first condition.
|
|
2496
|
+
if ($prevMatch <= $this->tokens[$matchExpression]['scope_opener']) {
|
|
2497
|
+
// We're before the arrow in the first case.
|
|
2498
|
+
$next = $this->findNext(Tokens::$emptyTokens, ($this->tokens[$matchExpression]['scope_opener'] + 1), null, true);
|
|
2499
|
+
if ($next === false) {
|
|
2500
|
+
// Shouldn't be possible.
|
|
2501
|
+
return $start;
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
return $next;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
// Okay, so we found a match arrow.
|
|
2508
|
+
// If $start was part of the "next" condition, the last comma will be set.
|
|
2509
|
+
// Otherwise, $start must have been part of a return expression.
|
|
2510
|
+
if (isset($lastComma) === true && $lastComma > $prevMatch) {
|
|
2511
|
+
$prevMatch = $lastComma;
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
// In both cases, go to the first non-empty token after.
|
|
2515
|
+
$next = $this->findNext(Tokens::$emptyTokens, ($prevMatch + 1), null, true);
|
|
2516
|
+
if ($next === false) {
|
|
2517
|
+
// Shouldn't be possible.
|
|
2518
|
+
return $start;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
return $next;
|
|
2522
|
+
}//end if
|
|
2523
|
+
}//end if
|
|
2524
|
+
}//end if
|
|
2525
|
+
|
|
2526
|
+
$lastNotEmpty = $start;
|
|
2527
|
+
|
|
2528
|
+
// If we are starting at a token that ends a scope block, skip to
|
|
2529
|
+
// the start and continue from there.
|
|
2530
|
+
// If we are starting at a token that ends a statement, skip this
|
|
2531
|
+
// token so we find the true start of the statement.
|
|
2532
|
+
while (isset($endTokens[$this->tokens[$start]['code']]) === true
|
|
2533
|
+
|| (isset($this->tokens[$start]['scope_condition']) === true
|
|
2534
|
+
&& $start === $this->tokens[$start]['scope_closer'])
|
|
2535
|
+
) {
|
|
2536
|
+
if (isset($this->tokens[$start]['scope_condition']) === true) {
|
|
2537
|
+
$start = $this->tokens[$start]['scope_condition'];
|
|
2538
|
+
} else {
|
|
2539
|
+
$start--;
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
for ($i = $start; $i >= 0; $i--) {
|
|
2544
|
+
if (isset($startTokens[$this->tokens[$i]['code']]) === true
|
|
2545
|
+
|| isset($endTokens[$this->tokens[$i]['code']]) === true
|
|
2546
|
+
) {
|
|
2547
|
+
// Found the end of the previous statement.
|
|
2548
|
+
return $lastNotEmpty;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
if (isset($this->tokens[$i]['scope_opener']) === true
|
|
2552
|
+
&& $i === $this->tokens[$i]['scope_closer']
|
|
2553
|
+
&& $this->tokens[$i]['code'] !== T_CLOSE_PARENTHESIS
|
|
2554
|
+
&& $this->tokens[$i]['code'] !== T_END_NOWDOC
|
|
2555
|
+
&& $this->tokens[$i]['code'] !== T_END_HEREDOC
|
|
2556
|
+
&& $this->tokens[$i]['code'] !== T_BREAK
|
|
2557
|
+
&& $this->tokens[$i]['code'] !== T_RETURN
|
|
2558
|
+
&& $this->tokens[$i]['code'] !== T_CONTINUE
|
|
2559
|
+
&& $this->tokens[$i]['code'] !== T_THROW
|
|
2560
|
+
&& $this->tokens[$i]['code'] !== T_EXIT
|
|
2561
|
+
) {
|
|
2562
|
+
// Found the end of the previous scope block.
|
|
2563
|
+
return $lastNotEmpty;
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
// Skip nested statements.
|
|
2567
|
+
if (isset($this->tokens[$i]['bracket_opener']) === true
|
|
2568
|
+
&& $i === $this->tokens[$i]['bracket_closer']
|
|
2569
|
+
) {
|
|
2570
|
+
$i = $this->tokens[$i]['bracket_opener'];
|
|
2571
|
+
} else if (isset($this->tokens[$i]['parenthesis_opener']) === true
|
|
2572
|
+
&& $i === $this->tokens[$i]['parenthesis_closer']
|
|
2573
|
+
) {
|
|
2574
|
+
$i = $this->tokens[$i]['parenthesis_opener'];
|
|
2575
|
+
} else if ($this->tokens[$i]['code'] === T_CLOSE_USE_GROUP) {
|
|
2576
|
+
$start = $this->findPrevious(T_OPEN_USE_GROUP, ($i - 1));
|
|
2577
|
+
if ($start !== false) {
|
|
2578
|
+
$i = $start;
|
|
2579
|
+
}
|
|
2580
|
+
}//end if
|
|
2581
|
+
|
|
2582
|
+
if (isset(Tokens::$emptyTokens[$this->tokens[$i]['code']]) === false) {
|
|
2583
|
+
$lastNotEmpty = $i;
|
|
2584
|
+
}
|
|
2585
|
+
}//end for
|
|
2586
|
+
|
|
2587
|
+
return 0;
|
|
2588
|
+
|
|
2589
|
+
}//end findStartOfStatement()
|
|
2590
|
+
|
|
2591
|
+
|
|
2592
|
+
/**
|
|
2593
|
+
* Returns the position of the last non-whitespace token in a statement.
|
|
2594
|
+
*
|
|
2595
|
+
* @param int $start The position to start searching from in the token stack.
|
|
2596
|
+
* @param int|string|array $ignore Token types that should not be considered stop points.
|
|
2597
|
+
*
|
|
2598
|
+
* @return int
|
|
2599
|
+
*/
|
|
2600
|
+
public function findEndOfStatement($start, $ignore=null)
|
|
2601
|
+
{
|
|
2602
|
+
$endTokens = [
|
|
2603
|
+
T_COLON => true,
|
|
2604
|
+
T_COMMA => true,
|
|
2605
|
+
T_DOUBLE_ARROW => true,
|
|
2606
|
+
T_SEMICOLON => true,
|
|
2607
|
+
T_CLOSE_PARENTHESIS => true,
|
|
2608
|
+
T_CLOSE_SQUARE_BRACKET => true,
|
|
2609
|
+
T_CLOSE_CURLY_BRACKET => true,
|
|
2610
|
+
T_CLOSE_SHORT_ARRAY => true,
|
|
2611
|
+
T_OPEN_TAG => true,
|
|
2612
|
+
T_CLOSE_TAG => true,
|
|
2613
|
+
];
|
|
2614
|
+
|
|
2615
|
+
if ($ignore !== null) {
|
|
2616
|
+
$ignore = (array) $ignore;
|
|
2617
|
+
foreach ($ignore as $code) {
|
|
2618
|
+
unset($endTokens[$code]);
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
// If the start token is inside the case part of a match expression,
|
|
2623
|
+
// advance to the match arrow and continue looking for the
|
|
2624
|
+
// end of the statement from there so that we skip over commas.
|
|
2625
|
+
if ($this->tokens[$start]['code'] !== T_MATCH_ARROW) {
|
|
2626
|
+
$matchExpression = $this->getCondition($start, T_MATCH);
|
|
2627
|
+
if ($matchExpression !== false) {
|
|
2628
|
+
$beforeArrow = true;
|
|
2629
|
+
$prevMatchArrow = $this->findPrevious(T_MATCH_ARROW, ($start - 1), $this->tokens[$matchExpression]['scope_opener']);
|
|
2630
|
+
if ($prevMatchArrow !== false) {
|
|
2631
|
+
$prevComma = $this->findNext(T_COMMA, ($prevMatchArrow + 1), $start);
|
|
2632
|
+
if ($prevComma === false) {
|
|
2633
|
+
// No comma between this token and the last match arrow,
|
|
2634
|
+
// so this token exists after the arrow and we can continue
|
|
2635
|
+
// checking as normal.
|
|
2636
|
+
$beforeArrow = false;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
if ($beforeArrow === true) {
|
|
2641
|
+
$nextMatchArrow = $this->findNext(T_MATCH_ARROW, ($start + 1), $this->tokens[$matchExpression]['scope_closer']);
|
|
2642
|
+
if ($nextMatchArrow !== false) {
|
|
2643
|
+
$start = $nextMatchArrow;
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
}//end if
|
|
2647
|
+
}//end if
|
|
2648
|
+
|
|
2649
|
+
$lastNotEmpty = $start;
|
|
2650
|
+
for ($i = $start; $i < $this->numTokens; $i++) {
|
|
2651
|
+
if ($i !== $start && isset($endTokens[$this->tokens[$i]['code']]) === true) {
|
|
2652
|
+
// Found the end of the statement.
|
|
2653
|
+
if ($this->tokens[$i]['code'] === T_CLOSE_PARENTHESIS
|
|
2654
|
+
|| $this->tokens[$i]['code'] === T_CLOSE_SQUARE_BRACKET
|
|
2655
|
+
|| $this->tokens[$i]['code'] === T_CLOSE_CURLY_BRACKET
|
|
2656
|
+
|| $this->tokens[$i]['code'] === T_CLOSE_SHORT_ARRAY
|
|
2657
|
+
|| $this->tokens[$i]['code'] === T_OPEN_TAG
|
|
2658
|
+
|| $this->tokens[$i]['code'] === T_CLOSE_TAG
|
|
2659
|
+
) {
|
|
2660
|
+
return $lastNotEmpty;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
return $i;
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
// Skip nested statements.
|
|
2667
|
+
if (isset($this->tokens[$i]['scope_closer']) === true
|
|
2668
|
+
&& ($i === $this->tokens[$i]['scope_opener']
|
|
2669
|
+
|| $i === $this->tokens[$i]['scope_condition'])
|
|
2670
|
+
) {
|
|
2671
|
+
if ($this->tokens[$i]['code'] === T_FN) {
|
|
2672
|
+
$lastNotEmpty = $this->tokens[$i]['scope_closer'];
|
|
2673
|
+
$i = ($this->tokens[$i]['scope_closer'] - 1);
|
|
2674
|
+
continue;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
if ($i === $start && isset(Tokens::$scopeOpeners[$this->tokens[$i]['code']]) === true) {
|
|
2678
|
+
return $this->tokens[$i]['scope_closer'];
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
$i = $this->tokens[$i]['scope_closer'];
|
|
2682
|
+
} else if (isset($this->tokens[$i]['bracket_closer']) === true
|
|
2683
|
+
&& $i === $this->tokens[$i]['bracket_opener']
|
|
2684
|
+
) {
|
|
2685
|
+
$i = $this->tokens[$i]['bracket_closer'];
|
|
2686
|
+
} else if (isset($this->tokens[$i]['parenthesis_closer']) === true
|
|
2687
|
+
&& $i === $this->tokens[$i]['parenthesis_opener']
|
|
2688
|
+
) {
|
|
2689
|
+
$i = $this->tokens[$i]['parenthesis_closer'];
|
|
2690
|
+
} else if ($this->tokens[$i]['code'] === T_OPEN_USE_GROUP) {
|
|
2691
|
+
$end = $this->findNext(T_CLOSE_USE_GROUP, ($i + 1));
|
|
2692
|
+
if ($end !== false) {
|
|
2693
|
+
$i = $end;
|
|
2694
|
+
}
|
|
2695
|
+
}//end if
|
|
2696
|
+
|
|
2697
|
+
if (isset(Tokens::$emptyTokens[$this->tokens[$i]['code']]) === false) {
|
|
2698
|
+
$lastNotEmpty = $i;
|
|
2699
|
+
}
|
|
2700
|
+
}//end for
|
|
2701
|
+
|
|
2702
|
+
return ($this->numTokens - 1);
|
|
2703
|
+
|
|
2704
|
+
}//end findEndOfStatement()
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
/**
|
|
2708
|
+
* Returns the position of the first token on a line, matching given type.
|
|
2709
|
+
*
|
|
2710
|
+
* Returns false if no token can be found.
|
|
2711
|
+
*
|
|
2712
|
+
* @param int|string|array $types The type(s) of tokens to search for.
|
|
2713
|
+
* @param int $start The position to start searching from in the
|
|
2714
|
+
* token stack.
|
|
2715
|
+
* @param bool $exclude If true, find the token that is NOT of
|
|
2716
|
+
* the types specified in $types.
|
|
2717
|
+
* @param string $value The value that the token must be equal to.
|
|
2718
|
+
* If value is omitted, tokens with any value will
|
|
2719
|
+
* be returned.
|
|
2720
|
+
*
|
|
2721
|
+
* @return int|false The first token which matches on the line containing the start
|
|
2722
|
+
* token, between the start of the line and the start token.
|
|
2723
|
+
* Note: The first token matching might be the start token.
|
|
2724
|
+
* FALSE when no matching token could be found between the start of
|
|
2725
|
+
* the line and the start token.
|
|
2726
|
+
*/
|
|
2727
|
+
public function findFirstOnLine($types, $start, $exclude=false, $value=null)
|
|
2728
|
+
{
|
|
2729
|
+
if (is_array($types) === false) {
|
|
2730
|
+
$types = [$types];
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
$foundToken = false;
|
|
2734
|
+
|
|
2735
|
+
for ($i = $start; $i >= 0; $i--) {
|
|
2736
|
+
if ($this->tokens[$i]['line'] < $this->tokens[$start]['line']) {
|
|
2737
|
+
break;
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
$found = $exclude;
|
|
2741
|
+
foreach ($types as $type) {
|
|
2742
|
+
if ($exclude === false) {
|
|
2743
|
+
if ($this->tokens[$i]['code'] === $type) {
|
|
2744
|
+
$found = true;
|
|
2745
|
+
break;
|
|
2746
|
+
}
|
|
2747
|
+
} else {
|
|
2748
|
+
if ($this->tokens[$i]['code'] === $type) {
|
|
2749
|
+
$found = false;
|
|
2750
|
+
break;
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
if ($found === true) {
|
|
2756
|
+
if ($value === null) {
|
|
2757
|
+
$foundToken = $i;
|
|
2758
|
+
} else if ($this->tokens[$i]['content'] === $value) {
|
|
2759
|
+
$foundToken = $i;
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
}//end for
|
|
2763
|
+
|
|
2764
|
+
return $foundToken;
|
|
2765
|
+
|
|
2766
|
+
}//end findFirstOnLine()
|
|
2767
|
+
|
|
2768
|
+
|
|
2769
|
+
/**
|
|
2770
|
+
* Determine if the passed token has a condition of one of the passed types.
|
|
2771
|
+
*
|
|
2772
|
+
* @param int $stackPtr The position of the token we are checking.
|
|
2773
|
+
* @param int|string|array $types The type(s) of tokens to search for.
|
|
2774
|
+
*
|
|
2775
|
+
* @return boolean
|
|
2776
|
+
*/
|
|
2777
|
+
public function hasCondition($stackPtr, $types)
|
|
2778
|
+
{
|
|
2779
|
+
// Check for the existence of the token.
|
|
2780
|
+
if (isset($this->tokens[$stackPtr]) === false) {
|
|
2781
|
+
return false;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
// Make sure the token has conditions.
|
|
2785
|
+
if (empty($this->tokens[$stackPtr]['conditions']) === true) {
|
|
2786
|
+
return false;
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2789
|
+
$types = (array) $types;
|
|
2790
|
+
$conditions = $this->tokens[$stackPtr]['conditions'];
|
|
2791
|
+
|
|
2792
|
+
foreach ($types as $type) {
|
|
2793
|
+
if (in_array($type, $conditions, true) === true) {
|
|
2794
|
+
// We found a token with the required type.
|
|
2795
|
+
return true;
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
return false;
|
|
2800
|
+
|
|
2801
|
+
}//end hasCondition()
|
|
2802
|
+
|
|
2803
|
+
|
|
2804
|
+
/**
|
|
2805
|
+
* Return the position of the condition for the passed token.
|
|
2806
|
+
*
|
|
2807
|
+
* Returns FALSE if the token does not have the condition.
|
|
2808
|
+
*
|
|
2809
|
+
* @param int $stackPtr The position of the token we are checking.
|
|
2810
|
+
* @param int|string $type The type of token to search for.
|
|
2811
|
+
* @param bool $first If TRUE, will return the matched condition
|
|
2812
|
+
* furthest away from the passed token.
|
|
2813
|
+
* If FALSE, will return the matched condition
|
|
2814
|
+
* closest to the passed token.
|
|
2815
|
+
*
|
|
2816
|
+
* @return int|false
|
|
2817
|
+
*/
|
|
2818
|
+
public function getCondition($stackPtr, $type, $first=true)
|
|
2819
|
+
{
|
|
2820
|
+
// Check for the existence of the token.
|
|
2821
|
+
if (isset($this->tokens[$stackPtr]) === false) {
|
|
2822
|
+
return false;
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
// Make sure the token has conditions.
|
|
2826
|
+
if (empty($this->tokens[$stackPtr]['conditions']) === true) {
|
|
2827
|
+
return false;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
$conditions = $this->tokens[$stackPtr]['conditions'];
|
|
2831
|
+
if ($first === false) {
|
|
2832
|
+
$conditions = array_reverse($conditions, true);
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
foreach ($conditions as $token => $condition) {
|
|
2836
|
+
if ($condition === $type) {
|
|
2837
|
+
return $token;
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
return false;
|
|
2842
|
+
|
|
2843
|
+
}//end getCondition()
|
|
2844
|
+
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* Returns the name of the class that the specified class extends.
|
|
2848
|
+
* (works for classes, anonymous classes and interfaces)
|
|
2849
|
+
*
|
|
2850
|
+
* Returns FALSE on error or if there is no extended class name.
|
|
2851
|
+
*
|
|
2852
|
+
* @param int $stackPtr The stack position of the class.
|
|
2853
|
+
*
|
|
2854
|
+
* @return string|false
|
|
2855
|
+
*/
|
|
2856
|
+
public function findExtendedClassName($stackPtr)
|
|
2857
|
+
{
|
|
2858
|
+
// Check for the existence of the token.
|
|
2859
|
+
if (isset($this->tokens[$stackPtr]) === false) {
|
|
2860
|
+
return false;
|
|
2861
|
+
}
|
|
2862
|
+
|
|
2863
|
+
if ($this->tokens[$stackPtr]['code'] !== T_CLASS
|
|
2864
|
+
&& $this->tokens[$stackPtr]['code'] !== T_ANON_CLASS
|
|
2865
|
+
&& $this->tokens[$stackPtr]['code'] !== T_INTERFACE
|
|
2866
|
+
) {
|
|
2867
|
+
return false;
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
if (isset($this->tokens[$stackPtr]['scope_opener']) === false) {
|
|
2871
|
+
return false;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
$classOpenerIndex = $this->tokens[$stackPtr]['scope_opener'];
|
|
2875
|
+
$extendsIndex = $this->findNext(T_EXTENDS, $stackPtr, $classOpenerIndex);
|
|
2876
|
+
if ($extendsIndex === false) {
|
|
2877
|
+
return false;
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
$find = [
|
|
2881
|
+
T_NS_SEPARATOR,
|
|
2882
|
+
T_STRING,
|
|
2883
|
+
T_WHITESPACE,
|
|
2884
|
+
];
|
|
2885
|
+
|
|
2886
|
+
$end = $this->findNext($find, ($extendsIndex + 1), ($classOpenerIndex + 1), true);
|
|
2887
|
+
$name = $this->getTokensAsString(($extendsIndex + 1), ($end - $extendsIndex - 1));
|
|
2888
|
+
$name = trim($name);
|
|
2889
|
+
|
|
2890
|
+
if ($name === '') {
|
|
2891
|
+
return false;
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
return $name;
|
|
2895
|
+
|
|
2896
|
+
}//end findExtendedClassName()
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
/**
|
|
2900
|
+
* Returns the names of the interfaces that the specified class or enum implements.
|
|
2901
|
+
*
|
|
2902
|
+
* Returns FALSE on error or if there are no implemented interface names.
|
|
2903
|
+
*
|
|
2904
|
+
* @param int $stackPtr The stack position of the class or enum token.
|
|
2905
|
+
*
|
|
2906
|
+
* @return array|false
|
|
2907
|
+
*/
|
|
2908
|
+
public function findImplementedInterfaceNames($stackPtr)
|
|
2909
|
+
{
|
|
2910
|
+
// Check for the existence of the token.
|
|
2911
|
+
if (isset($this->tokens[$stackPtr]) === false) {
|
|
2912
|
+
return false;
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2915
|
+
if ($this->tokens[$stackPtr]['code'] !== T_CLASS
|
|
2916
|
+
&& $this->tokens[$stackPtr]['code'] !== T_ANON_CLASS
|
|
2917
|
+
&& $this->tokens[$stackPtr]['code'] !== T_ENUM
|
|
2918
|
+
) {
|
|
2919
|
+
return false;
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
if (isset($this->tokens[$stackPtr]['scope_closer']) === false) {
|
|
2923
|
+
return false;
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
$classOpenerIndex = $this->tokens[$stackPtr]['scope_opener'];
|
|
2927
|
+
$implementsIndex = $this->findNext(T_IMPLEMENTS, $stackPtr, $classOpenerIndex);
|
|
2928
|
+
if ($implementsIndex === false) {
|
|
2929
|
+
return false;
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
$find = [
|
|
2933
|
+
T_NS_SEPARATOR,
|
|
2934
|
+
T_STRING,
|
|
2935
|
+
T_WHITESPACE,
|
|
2936
|
+
T_COMMA,
|
|
2937
|
+
];
|
|
2938
|
+
|
|
2939
|
+
$end = $this->findNext($find, ($implementsIndex + 1), ($classOpenerIndex + 1), true);
|
|
2940
|
+
$name = $this->getTokensAsString(($implementsIndex + 1), ($end - $implementsIndex - 1));
|
|
2941
|
+
$name = trim($name);
|
|
2942
|
+
|
|
2943
|
+
if ($name === '') {
|
|
2944
|
+
return false;
|
|
2945
|
+
} else {
|
|
2946
|
+
$names = explode(',', $name);
|
|
2947
|
+
$names = array_map('trim', $names);
|
|
2948
|
+
return $names;
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
}//end findImplementedInterfaceNames()
|
|
2952
|
+
|
|
2953
|
+
|
|
2954
|
+
}//end class
|