@averay/codeformat 0.2.7 → 0.2.10
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/.php-cs-fixer.cache +1 -1
- package/bin/tools/knip.ts +2 -2
- package/bin/tools/phpCsFixer.ts +0 -1
- package/bin/utils/Cli.ts +1 -2
- package/composer.json +1 -1
- package/composer.lock +413 -137
- package/dist/bin/tools/knip.js +2 -2
- package/dist/bin/tools/knip.js.map +1 -1
- package/dist/bin/tools/phpCsFixer.d.ts +0 -3
- package/dist/bin/tools/phpCsFixer.js +0 -1
- package/dist/bin/tools/phpCsFixer.js.map +1 -1
- package/dist/bin/utils/Cli.js +1 -1
- package/dist/bin/utils/Cli.js.map +1 -1
- package/dist/rulesets/eslint/ruleset-shared.d.ts +28 -22
- package/dist/rulesets/eslint/ruleset-shared.js +25 -25
- package/dist/rulesets/eslint/ruleset-shared.js.map +1 -1
- package/dist/rulesets/eslint/ruleset-typescript.js +4 -4
- package/dist/rulesets/eslint/ruleset-typescript.js.map +1 -1
- package/dist/src/makeEslintConfig.js +7 -8
- package/dist/src/makeEslintConfig.js.map +1 -1
- package/knip.config.ts +0 -1
- package/package.json +2 -2
- package/rulesets/eslint/ruleset-shared.ts +25 -25
- package/rulesets/eslint/ruleset-typescript.ts +4 -4
- package/src/makeEslintConfig.ts +7 -8
- package/stylelint.config.js +1 -1
- package/types.d.ts +0 -8
- package/.cache/eslint +0 -1
- package/.cache/knip/-averay-codeformat--5.61.3 +0 -0
- package/.cache/knip/plugins--5.61.3 +0 -0
- package/vendor/.metadata_never_index +0 -0
- package/vendor/autoload.php +0 -22
- package/vendor/bin/php-cs-fixer +0 -119
- package/vendor/clue/ndjson-react/.github/FUNDING.yml +0 -2
- package/vendor/clue/ndjson-react/CHANGELOG.md +0 -75
- package/vendor/clue/ndjson-react/LICENSE +0 -21
- package/vendor/clue/ndjson-react/README.md +0 -365
- package/vendor/clue/ndjson-react/composer.json +0 -31
- package/vendor/clue/ndjson-react/src/Decoder.php +0 -166
- package/vendor/clue/ndjson-react/src/Encoder.php +0 -144
- package/vendor/composer/ClassLoader.php +0 -579
- package/vendor/composer/InstalledVersions.php +0 -396
- package/vendor/composer/LICENSE +0 -21
- package/vendor/composer/autoload_classmap.php +0 -34
- package/vendor/composer/autoload_files.php +0 -18
- package/vendor/composer/autoload_namespaces.php +0 -9
- package/vendor/composer/autoload_psr4.php +0 -42
- package/vendor/composer/autoload_real.php +0 -48
- package/vendor/composer/autoload_static.php +0 -247
- package/vendor/composer/installed.json +0 -3634
- package/vendor/composer/installed.php +0 -367
- package/vendor/composer/pcre/LICENSE +0 -19
- package/vendor/composer/pcre/README.md +0 -189
- package/vendor/composer/pcre/composer.json +0 -54
- package/vendor/composer/pcre/extension.neon +0 -22
- package/vendor/composer/pcre/src/MatchAllResult.php +0 -46
- package/vendor/composer/pcre/src/MatchAllStrictGroupsResult.php +0 -46
- package/vendor/composer/pcre/src/MatchAllWithOffsetsResult.php +0 -48
- package/vendor/composer/pcre/src/MatchResult.php +0 -39
- package/vendor/composer/pcre/src/MatchStrictGroupsResult.php +0 -39
- package/vendor/composer/pcre/src/MatchWithOffsetsResult.php +0 -41
- package/vendor/composer/pcre/src/PHPStan/InvalidRegexPatternRule.php +0 -142
- package/vendor/composer/pcre/src/PHPStan/PregMatchFlags.php +0 -70
- package/vendor/composer/pcre/src/PHPStan/PregMatchParameterOutTypeExtension.php +0 -65
- package/vendor/composer/pcre/src/PHPStan/PregMatchTypeSpecifyingExtension.php +0 -119
- package/vendor/composer/pcre/src/PHPStan/PregReplaceCallbackClosureTypeExtension.php +0 -91
- package/vendor/composer/pcre/src/PHPStan/UnsafeStrictGroupsCallRule.php +0 -112
- package/vendor/composer/pcre/src/PcreException.php +0 -55
- package/vendor/composer/pcre/src/Preg.php +0 -430
- package/vendor/composer/pcre/src/Regex.php +0 -176
- package/vendor/composer/pcre/src/ReplaceResult.php +0 -43
- package/vendor/composer/pcre/src/UnexpectedNullMatchException.php +0 -20
- package/vendor/composer/semver/CHANGELOG.md +0 -229
- package/vendor/composer/semver/LICENSE +0 -19
- package/vendor/composer/semver/README.md +0 -99
- package/vendor/composer/semver/composer.json +0 -59
- package/vendor/composer/semver/src/Comparator.php +0 -113
- package/vendor/composer/semver/src/CompilingMatcher.php +0 -94
- package/vendor/composer/semver/src/Constraint/Bound.php +0 -122
- package/vendor/composer/semver/src/Constraint/Constraint.php +0 -435
- package/vendor/composer/semver/src/Constraint/ConstraintInterface.php +0 -75
- package/vendor/composer/semver/src/Constraint/MatchAllConstraint.php +0 -85
- package/vendor/composer/semver/src/Constraint/MatchNoneConstraint.php +0 -83
- package/vendor/composer/semver/src/Constraint/MultiConstraint.php +0 -325
- package/vendor/composer/semver/src/Interval.php +0 -98
- package/vendor/composer/semver/src/Intervals.php +0 -478
- package/vendor/composer/semver/src/Semver.php +0 -129
- package/vendor/composer/semver/src/VersionParser.php +0 -591
- package/vendor/composer/xdebug-handler/CHANGELOG.md +0 -143
- package/vendor/composer/xdebug-handler/LICENSE +0 -21
- package/vendor/composer/xdebug-handler/README.md +0 -305
- package/vendor/composer/xdebug-handler/composer.json +0 -44
- package/vendor/composer/xdebug-handler/src/PhpConfig.php +0 -91
- package/vendor/composer/xdebug-handler/src/Process.php +0 -119
- package/vendor/composer/xdebug-handler/src/Status.php +0 -222
- package/vendor/composer/xdebug-handler/src/XdebugHandler.php +0 -722
- package/vendor/evenement/evenement/.gitattributes +0 -7
- package/vendor/evenement/evenement/LICENSE +0 -19
- package/vendor/evenement/evenement/README.md +0 -64
- package/vendor/evenement/evenement/composer.json +0 -29
- package/vendor/evenement/evenement/src/EventEmitter.php +0 -17
- package/vendor/evenement/evenement/src/EventEmitterInterface.php +0 -22
- package/vendor/evenement/evenement/src/EventEmitterTrait.php +0 -154
- package/vendor/fidry/cpu-core-counter/.envrc +0 -5
- package/vendor/fidry/cpu-core-counter/LICENSE.md +0 -16
- package/vendor/fidry/cpu-core-counter/README.md +0 -138
- package/vendor/fidry/cpu-core-counter/bin/diagnose.php +0 -27
- package/vendor/fidry/cpu-core-counter/bin/execute.php +0 -21
- package/vendor/fidry/cpu-core-counter/bin/trace.php +0 -32
- package/vendor/fidry/cpu-core-counter/composer.json +0 -48
- package/vendor/fidry/cpu-core-counter/src/CpuCoreCounter.php +0 -268
- package/vendor/fidry/cpu-core-counter/src/Diagnoser.php +0 -101
- package/vendor/fidry/cpu-core-counter/src/Executor/ProcOpenExecutor.php +0 -56
- package/vendor/fidry/cpu-core-counter/src/Executor/ProcessExecutor.php +0 -22
- package/vendor/fidry/cpu-core-counter/src/Finder/CmiCmdletLogicalFinder.php +0 -46
- package/vendor/fidry/cpu-core-counter/src/Finder/CmiCmdletPhysicalFinder.php +0 -47
- package/vendor/fidry/cpu-core-counter/src/Finder/CpuCoreFinder.php +0 -37
- package/vendor/fidry/cpu-core-counter/src/Finder/CpuInfoFinder.php +0 -100
- package/vendor/fidry/cpu-core-counter/src/Finder/DummyCpuCoreFinder.php +0 -57
- package/vendor/fidry/cpu-core-counter/src/Finder/EnvVariableFinder.php +0 -69
- package/vendor/fidry/cpu-core-counter/src/Finder/FinderRegistry.php +0 -91
- package/vendor/fidry/cpu-core-counter/src/Finder/HwLogicalFinder.php +0 -33
- package/vendor/fidry/cpu-core-counter/src/Finder/HwPhysicalFinder.php +0 -33
- package/vendor/fidry/cpu-core-counter/src/Finder/LscpuLogicalFinder.php +0 -52
- package/vendor/fidry/cpu-core-counter/src/Finder/LscpuPhysicalFinder.php +0 -66
- package/vendor/fidry/cpu-core-counter/src/Finder/NProcFinder.php +0 -59
- package/vendor/fidry/cpu-core-counter/src/Finder/NProcessorFinder.php +0 -32
- package/vendor/fidry/cpu-core-counter/src/Finder/NullCpuCoreFinder.php +0 -35
- package/vendor/fidry/cpu-core-counter/src/Finder/OnlyInPowerShellFinder.php +0 -62
- package/vendor/fidry/cpu-core-counter/src/Finder/OnlyOnOSFamilyFinder.php +0 -113
- package/vendor/fidry/cpu-core-counter/src/Finder/ProcOpenBasedFinder.php +0 -107
- package/vendor/fidry/cpu-core-counter/src/Finder/SkipOnOSFamilyFinder.php +0 -113
- package/vendor/fidry/cpu-core-counter/src/Finder/WindowsRegistryLogicalFinder.php +0 -51
- package/vendor/fidry/cpu-core-counter/src/Finder/WmicLogicalFinder.php +0 -47
- package/vendor/fidry/cpu-core-counter/src/Finder/WmicPhysicalFinder.php +0 -47
- package/vendor/fidry/cpu-core-counter/src/Finder/_NProcessorFinder.php +0 -32
- package/vendor/fidry/cpu-core-counter/src/NumberOfCpuCoreNotFound.php +0 -26
- package/vendor/fidry/cpu-core-counter/src/ParallelisationResult.php +0 -87
- package/vendor/friendsofphp/php-cs-fixer/CHANGELOG.md +0 -5983
- package/vendor/friendsofphp/php-cs-fixer/CONTRIBUTING.md +0 -103
- package/vendor/friendsofphp/php-cs-fixer/LICENSE +0 -19
- package/vendor/friendsofphp/php-cs-fixer/README.md +0 -88
- package/vendor/friendsofphp/php-cs-fixer/UPGRADE-v3.md +0 -162
- package/vendor/friendsofphp/php-cs-fixer/ci-integration.sh +0 -8
- package/vendor/friendsofphp/php-cs-fixer/composer.json +0 -210
- package/vendor/friendsofphp/php-cs-fixer/feature-or-bug.rst +0 -24
- package/vendor/friendsofphp/php-cs-fixer/logo.md +0 -3
- package/vendor/friendsofphp/php-cs-fixer/logo.png +0 -0
- package/vendor/friendsofphp/php-cs-fixer/php-cs-fixer +0 -110
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractDoctrineAnnotationFixer.php +0 -241
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractFixer.php +0 -102
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractFopenFlagFixer.php +0 -116
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractFunctionReferenceFixer.php +0 -71
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractNoUselessElseFixer.php +0 -204
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractPhpdocToTypeDeclarationFixer.php +0 -314
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractPhpdocTypesFixer.php +0 -105
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractProxyFixer.php +0 -106
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/Cache.php +0 -151
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/CacheInterface.php +0 -35
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/CacheManagerInterface.php +0 -29
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/Directory.php +0 -51
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/DirectoryInterface.php +0 -23
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/FileCacheManager.php +0 -143
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/FileHandler.php +0 -184
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/FileHandlerInterface.php +0 -29
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/NullCacheManager.php +0 -33
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/Signature.php +0 -100
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/SignatureInterface.php +0 -38
- package/vendor/friendsofphp/php-cs-fixer/src/Config.php +0 -267
- package/vendor/friendsofphp/php-cs-fixer/src/ConfigInterface.php +0 -162
- package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidConfigurationException.php +0 -36
- package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidFixerConfigurationException.php +0 -45
- package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidForEnvFixerConfigurationException.php +0 -22
- package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/RequiredFixerConfigurationException.php +0 -22
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Application.php +0 -212
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/CheckCommand.php +0 -64
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DescribeCommand.php +0 -476
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DescribeNameNotFoundException.php +0 -46
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DocumentationCommand.php +0 -123
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommand.php +0 -397
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommandExitStatusCalculator.php +0 -56
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/HelpCommand.php +0 -76
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/ListFilesCommand.php +0 -91
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/ListSetsCommand.php +0 -87
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/SelfUpdateCommand.php +0 -176
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/WorkerCommand.php +0 -243
- package/vendor/friendsofphp/php-cs-fixer/src/Console/ConfigurationResolver.php +0 -961
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/ErrorOutput.php +0 -155
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/OutputContext.php +0 -54
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/DotsOutput.php +0 -124
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/NullOutput.php +0 -29
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/PercentageBarOutput.php +0 -78
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/ProgressOutputFactory.php +0 -63
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/ProgressOutputInterface.php +0 -27
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/ProgressOutputType.php +0 -37
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/CheckstyleReporter.php +0 -71
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/GitlabReporter.php +0 -96
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/JsonReporter.php +0 -65
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/JunitReporter.php +0 -145
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/ReportSummary.php +0 -103
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/ReporterFactory.php +0 -90
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/ReporterInterface.php +0 -30
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/TextReporter.php +0 -104
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/XmlReporter.php +0 -136
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/JsonReporter.php +0 -52
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/ReportSummary.php +0 -48
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/ReporterFactory.php +0 -89
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/ReporterInterface.php +0 -30
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/TextReporter.php +0 -51
- package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/GithubClient.php +0 -69
- package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/GithubClientInterface.php +0 -26
- package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/NewVersionChecker.php +0 -102
- package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/NewVersionCheckerInterface.php +0 -37
- package/vendor/friendsofphp/php-cs-fixer/src/Console/WarningsDetector.php +0 -76
- package/vendor/friendsofphp/php-cs-fixer/src/Differ/DiffConsoleFormatter.php +0 -85
- package/vendor/friendsofphp/php-cs-fixer/src/Differ/DifferInterface.php +0 -26
- package/vendor/friendsofphp/php-cs-fixer/src/Differ/FullDiffer.php +0 -46
- package/vendor/friendsofphp/php-cs-fixer/src/Differ/NullDiffer.php +0 -26
- package/vendor/friendsofphp/php-cs-fixer/src/Differ/UnifiedDiffer.php +0 -47
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Annotation.php +0 -319
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/DocBlock.php +0 -250
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Line.php +0 -128
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/ShortDescription.php +0 -65
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Tag.php +0 -102
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/TagComparator.php +0 -66
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/TypeExpression.php +0 -857
- package/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/DocLexer.php +0 -171
- package/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/Token.php +0 -87
- package/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/Tokens.php +0 -303
- package/vendor/friendsofphp/php-cs-fixer/src/Documentation/DocumentationLocator.php +0 -82
- package/vendor/friendsofphp/php-cs-fixer/src/Documentation/FixerDocumentGenerator.php +0 -415
- package/vendor/friendsofphp/php-cs-fixer/src/Documentation/RstUtils.php +0 -45
- package/vendor/friendsofphp/php-cs-fixer/src/Documentation/RuleSetDocumentationGenerator.php +0 -174
- package/vendor/friendsofphp/php-cs-fixer/src/Error/Error.php +0 -125
- package/vendor/friendsofphp/php-cs-fixer/src/Error/ErrorsManager.php +0 -83
- package/vendor/friendsofphp/php-cs-fixer/src/Error/SourceExceptionFactory.php +0 -62
- package/vendor/friendsofphp/php-cs-fixer/src/ExecutorWithoutErrorHandler.php +0 -58
- package/vendor/friendsofphp/php-cs-fixer/src/ExecutorWithoutErrorHandlerException.php +0 -22
- package/vendor/friendsofphp/php-cs-fixer/src/FileReader.php +0 -70
- package/vendor/friendsofphp/php-cs-fixer/src/FileRemoval.php +0 -100
- package/vendor/friendsofphp/php-cs-fixer/src/Finder.php +0 -35
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AbstractIncrementOperatorFixer.php +0 -58
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AbstractPhpUnitFixer.php +0 -278
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AbstractShortOperatorFixer.php +0 -264
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/ArrayPushFixer.php +0 -207
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/BacktickToShellExecFixer.php +0 -149
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/EregToPregFixer.php +0 -193
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/MbStrFunctionsFixer.php +0 -180
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/ModernizeStrposFixer.php +0 -338
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoAliasFunctionsFixer.php +0 -337
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoAliasLanguageConstructCallFixer.php +0 -59
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoMixedEchoPrintFixer.php +0 -142
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/PowToExponentiationFixer.php +0 -219
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/RandomApiMigrationFixer.php +0 -153
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/SetTypeToCastFixer.php +0 -240
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/ArraySyntaxFixer.php +0 -138
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoMultilineWhitespaceAroundDoubleArrowFixer.php +0 -80
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoTrailingCommaInSinglelineArrayFixer.php +0 -52
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoWhitespaceBeforeCommaInArrayFixer.php +0 -153
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NormalizeIndexBraceFixer.php +0 -57
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/ReturnToYieldFromFixer.php +0 -105
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/TrimArraySpacesFixer.php +0 -97
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/WhitespaceAfterCommaInArrayFixer.php +0 -150
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/YieldFromArrayToYieldsFixer.php +0 -189
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AttributeNotation/AttributeEmptyParenthesesFixer.php +0 -136
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AttributeNotation/GeneralAttributeRemoveFixer.php +0 -142
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AttributeNotation/OrderedAttributesFixer.php +0 -274
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/BracesFixer.php +0 -268
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/BracesPositionFixer.php +0 -449
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/CurlyBracesPositionFixer.php +0 -126
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/EncodingFixer.php +0 -80
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NoMultipleStatementsPerLineFixer.php +0 -111
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NoTrailingCommaInSinglelineFixer.php +0 -162
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NonPrintableCharacterFixer.php +0 -191
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NumericLiteralSeparatorFixer.php +0 -232
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/OctalNotationFixer.php +0 -64
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/PsrAutoloadingFixer.php +0 -291
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/SingleLineEmptyBodyFixer.php +0 -83
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/ClassReferenceNameCasingFixer.php +0 -168
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/ConstantCaseFixer.php +0 -130
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/IntegerLiteralCaseFixer.php +0 -62
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/LowercaseKeywordsFixer.php +0 -67
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/LowercaseStaticReferenceFixer.php +0 -107
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/MagicConstantCasingFixer.php +0 -92
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/MagicMethodCasingFixer.php +0 -202
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeFunctionCasingFixer.php +0 -89
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeFunctionTypeDeclarationCasingFixer.php +0 -58
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeTypeDeclarationCasingFixer.php +0 -151
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/CastSpacesFixer.php +0 -131
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/LowercaseCastFixer.php +0 -66
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/ModernizeTypesCastingFixer.php +0 -164
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/NoShortBoolCastFixer.php +0 -88
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/NoUnsetCastFixer.php +0 -88
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/ShortScalarCastFixer.php +0 -71
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php +0 -605
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ClassDefinitionFixer.php +0 -572
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalClassFixer.php +0 -67
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalInternalClassFixer.php +0 -374
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalPublicMethodForAbstractClassFixer.php +0 -160
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoBlankLinesAfterClassOpeningFixer.php +0 -93
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoNullPropertyInitializationFixer.php +0 -141
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoPhp4ConstructorFixer.php +0 -408
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoUnneededFinalMethodFixer.php +0 -215
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedClassElementsFixer.php +0 -610
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedInterfacesFixer.php +0 -272
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedTraitsFixer.php +0 -226
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedTypesFixer.php +0 -453
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/PhpdocReadonlyClassCommentToKeywordFixer.php +0 -129
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ProtectedToPrivateFixer.php +0 -168
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SelfAccessorFixer.php +0 -200
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SelfStaticAccessorFixer.php +0 -224
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SingleClassElementPerStatementFixer.php +0 -241
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SingleTraitInsertPerStatementFixer.php +0 -116
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/VisibilityRequiredFixer.php +0 -214
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassUsage/DateTimeImmutableFixer.php +0 -146
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/CommentToPhpdocFixer.php +0 -230
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/HeaderCommentFixer.php +0 -543
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/MultilineCommentOpeningClosingFixer.php +0 -89
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/NoEmptyCommentFixer.php +0 -162
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/NoTrailingWhitespaceInCommentFixer.php +0 -75
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/SingleLineCommentSpacingFixer.php +0 -110
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/SingleLineCommentStyleFixer.php +0 -178
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConfigurableFixerInterface.php +0 -50
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConfigurableFixerTrait.php +0 -124
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConstantNotation/NativeConstantInvocationFixer.php +0 -307
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/ControlStructureBracesFixer.php +0 -256
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/ControlStructureContinuationPositionFixer.php +0 -157
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/ElseifFixer.php +0 -98
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/EmptyLoopBodyFixer.php +0 -139
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/EmptyLoopConditionFixer.php +0 -202
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/IncludeFixer.php +0 -153
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoAlternativeSyntaxFixer.php +0 -244
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoBreakCommentFixer.php +0 -366
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoSuperfluousElseifFixer.php +0 -100
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoTrailingCommaInListCallFixer.php +0 -51
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededBracesFixer.php +0 -182
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededControlParenthesesFixer.php +0 -758
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededCurlyBracesFixer.php +0 -106
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUselessElseFixer.php +0 -120
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SimplifiedIfReturnFixer.php +0 -138
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchCaseSemicolonToColonFixer.php +0 -87
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchCaseSpaceFixer.php +0 -85
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchContinueToBreakFixer.php +0 -240
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/TrailingCommaInMultilineFixer.php +0 -237
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/YodaStyleFixer.php +0 -758
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DeprecatedFixerInterface.php +0 -28
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationArrayAssignmentFixer.php +0 -114
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationBracesFixer.php +0 -132
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationIndentationFixer.php +0 -199
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationSpacesFixer.php +0 -320
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ExperimentalFixerInterface.php +0 -20
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FixerInterface.php +0 -79
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/CombineNestedDirnameFixer.php +0 -224
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/DateTimeCreateFromFormatCallFixer.php +0 -164
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FopenFlagOrderFixer.php +0 -123
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FopenFlagsFixer.php +0 -120
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FunctionDeclarationFixer.php +0 -263
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FunctionTypehintSpaceFixer.php +0 -60
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/ImplodeCallFixer.php +0 -139
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/LambdaNotUsedImportFixer.php +0 -350
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/MethodArgumentSpaceFixer.php +0 -510
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php +0 -420
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoSpacesAfterFunctionNameFixer.php +0 -176
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoTrailingCommaInSinglelineFunctionCallFixer.php +0 -59
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoUnreachableDefaultArgumentValueFixer.php +0 -197
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoUselessSprintfFixer.php +0 -109
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NullableTypeDeclarationForDefaultNullValueFixer.php +0 -247
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/PhpdocToParamTypeFixer.php +0 -244
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/PhpdocToPropertyTypeFixer.php +0 -296
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/PhpdocToReturnTypeFixer.php +0 -249
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/RegularCallableCallFixer.php +0 -256
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/ReturnTypeDeclarationFixer.php +0 -132
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/SingleLineThrowFixer.php +0 -159
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/StaticLambdaFixer.php +0 -130
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/UseArrowFunctionsFixer.php +0 -181
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/VoidReturnFixer.php +0 -256
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/FullyQualifiedStrictTypesFixer.php +0 -987
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/GlobalNamespaceImportFixer.php +0 -726
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/GroupImportFixer.php +0 -369
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoLeadingImportSlashFixer.php +0 -90
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoUnneededImportAliasFixer.php +0 -88
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoUnusedImportsFixer.php +0 -455
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/OrderedImportsFixer.php +0 -626
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/SingleImportPerStatementFixer.php +0 -274
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/SingleLineAfterImportsFixer.php +0 -152
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Indentation.php +0 -92
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/InternalFixerInterface.php +0 -20
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ClassKeywordFixer.php +0 -100
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ClassKeywordRemoveFixer.php +0 -234
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/CombineConsecutiveIssetsFixer.php +0 -163
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/CombineConsecutiveUnsetsFixer.php +0 -179
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DeclareEqualNormalizeFixer.php +0 -137
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DeclareParenthesesFixer.php +0 -56
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DirConstantFixer.php +0 -129
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ErrorSuppressionFixer.php +0 -186
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ExplicitIndirectVariableFixer.php +0 -82
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/FunctionToConstantFixer.php +0 -311
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/GetClassToClassKeywordFixer.php +0 -158
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/IsNullFixer.php +0 -169
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php +0 -220
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/NullableTypeDeclarationFixer.php +0 -348
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/SingleSpaceAfterConstructFixer.php +0 -209
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/SingleSpaceAroundConstructFixer.php +0 -516
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ListNotation/ListSyntaxFixer.php +0 -133
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/BlankLineAfterNamespaceFixer.php +0 -127
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/BlankLinesBeforeNamespaceFixer.php +0 -242
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/CleanNamespaceFixer.php +0 -108
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/NoBlankLinesBeforeNamespaceFixer.php +0 -76
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/NoLeadingNamespaceWhitespaceFixer.php +0 -95
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/SingleBlankLineBeforeNamespaceFixer.php +0 -75
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Naming/NoHomoglyphNamesFixer.php +0 -230
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/AssignNullCoalescingToCoalesceEqualFixer.php +0 -71
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/BinaryOperatorSpacesFixer.php +0 -961
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/ConcatSpaceFixer.php +0 -160
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/IncrementStyleFixer.php +0 -179
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/LogicalOperatorsFixer.php +0 -67
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/LongToShorthandOperatorFixer.php +0 -140
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NewWithBracesFixer.php +0 -103
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NewWithParenthesesFixer.php +0 -216
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NoSpaceAroundDoubleColonFixer.php +0 -73
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NoUselessConcatOperatorFixer.php +0 -375
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NoUselessNullsafeOperatorFixer.php +0 -73
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NotOperatorWithSpaceFixer.php +0 -75
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NotOperatorWithSuccessorSpaceFixer.php +0 -68
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/ObjectOperatorWithoutWhitespaceFixer.php +0 -62
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/OperatorLinebreakFixer.php +0 -292
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/StandardizeIncrementFixer.php +0 -122
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/StandardizeNotEqualsFixer.php +0 -60
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryOperatorSpacesFixer.php +0 -131
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryToElvisOperatorFixer.php +0 -217
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryToNullCoalescingFixer.php +0 -224
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/UnaryOperatorSpacesFixer.php +0 -118
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/BlankLineAfterOpeningTagFixer.php +0 -92
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/EchoTagSyntaxFixer.php +0 -273
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/FullOpeningTagFixer.php +0 -123
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/LinebreakAfterOpeningTagFixer.php +0 -68
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/NoClosingTagFixer.php +0 -59
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitAssertNewNamesFixer.php +0 -107
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitAttributesFixer.php +0 -620
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitConstructFixer.php +0 -210
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderMethodOrderFixer.php +0 -288
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderNameFixer.php +0 -199
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderReturnTypeFixer.php +0 -120
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderStaticFixer.php +0 -156
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php +0 -590
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDedicateAssertInternalTypeFixer.php +0 -204
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitExpectationFixer.php +0 -289
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitFqcnAnnotationFixer.php +0 -86
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitInternalClassFixer.php +0 -117
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMethodCasingFixer.php +0 -238
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMockFixer.php +0 -135
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMockShortWillReturnFixer.php +0 -123
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitNamespacedFixer.php +0 -235
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitNoExpectationAnnotationFixer.php +0 -278
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitSetUpTearDownVisibilityFixer.php +0 -111
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitSizeClassFixer.php +0 -107
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitStrictFixer.php +0 -154
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTargetVersion.php +0 -57
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestAnnotationFixer.php +0 -416
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixer.php +0 -564
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestClassRequiresCoversFixer.php +0 -88
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/AlignMultilineCommentFixer.php +0 -178
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/GeneralPhpdocAnnotationRemoveFixer.php +0 -177
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/GeneralPhpdocTagRenameFixer.php +0 -213
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoBlankLinesAfterPhpdocFixer.php +0 -110
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoEmptyPhpdocFixer.php +0 -84
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoSuperfluousPhpdocTagsFixer.php +0 -756
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAddMissingParamAnnotationFixer.php +0 -289
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAlignFixer.php +0 -506
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAnnotationWithoutDotFixer.php +0 -123
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocArrayTypeFixer.php +0 -92
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocIndentFixer.php +0 -141
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocInlineTagNormalizerFixer.php +0 -121
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocLineSpanFixer.php +0 -173
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocListTypeFixer.php +0 -70
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoAccessFixer.php +0 -71
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoAliasTagFixer.php +0 -137
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoEmptyReturnFixer.php +0 -117
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoPackageFixer.php +0 -70
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoUselessInheritdocFixer.php +0 -151
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocOrderByValueFixer.php +0 -225
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocOrderFixer.php +0 -223
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocParamOrderFixer.php +0 -273
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocReturnSelfReferenceFixer.php +0 -234
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocScalarFixer.php +0 -139
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSeparationFixer.php +0 -333
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSingleLineVarSpacingFixer.php +0 -89
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSummaryFixer.php +0 -99
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTagCasingFixer.php +0 -109
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTagTypeFixer.php +0 -214
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocToCommentFixer.php +0 -185
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTrimConsecutiveBlankLineSeparationFixer.php +0 -191
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTrimFixer.php +0 -115
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTypesFixer.php +0 -173
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTypesOrderFixer.php +0 -218
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocVarAnnotationCorrectOrderFixer.php +0 -81
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocVarWithoutNameFixer.php +0 -150
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/NoUselessReturnFixer.php +0 -103
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/ReturnAssignmentFixer.php +0 -527
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/SimplifiedNullReturnFixer.php +0 -171
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/MultilineWhitespaceBeforeSemicolonsFixer.php +0 -244
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/NoEmptyStatementFixer.php +0 -186
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/NoSinglelineWhitespaceBeforeSemicolonsFixer.php +0 -66
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/SemicolonAfterInstructionFixer.php +0 -64
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/SpaceAfterSemicolonFixer.php +0 -148
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/DeclareStrictTypesFixer.php +0 -132
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/StrictComparisonFixer.php +0 -80
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/StrictParamFixer.php +0 -168
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/EscapeImplicitBackslashesFixer.php +0 -153
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/ExplicitStringVariableFixer.php +0 -166
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/HeredocClosingMarkerFixer.php +0 -205
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/HeredocToNowdocFixer.php +0 -107
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/MultilineStringToHeredocFixer.php +0 -166
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/NoBinaryStringFixer.php +0 -75
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/NoTrailingWhitespaceInStringFixer.php +0 -100
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/SimpleToComplexStringVariableFixer.php +0 -96
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/SingleQuoteFixer.php +0 -122
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/StringImplicitBackslashesFixer.php +0 -193
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/StringLengthToEmptyFixer.php +0 -322
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/StringLineEndingFixer.php +0 -76
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/ArrayIndentationFixer.php +0 -197
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/BlankLineBeforeStatementFixer.php +0 -379
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/BlankLineBetweenImportGroupsFixer.php +0 -180
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/CompactNullableTypeDeclarationFixer.php +0 -72
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/CompactNullableTypehintFixer.php +0 -63
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/HeredocIndentationFixer.php +0 -180
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/IndentationTypeFixer.php +0 -139
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/LineEndingFixer.php +0 -85
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/MethodChainingIndentationFixer.php +0 -229
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoExtraBlankLinesFixer.php +0 -496
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoSpacesAroundOffsetFixer.php +0 -112
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoSpacesInsideParenthesisFixer.php +0 -75
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoTrailingWhitespaceFixer.php +0 -104
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoWhitespaceInBlankLineFixer.php +0 -89
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/SingleBlankLineAtEofFixer.php +0 -64
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/SpacesInsideParenthesesFixer.php +0 -223
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/StatementIndentationFixer.php +0 -836
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/TypeDeclarationSpacesFixer.php +0 -254
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/TypesSpacesFixer.php +0 -173
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/WhitespacesAwareFixerInterface.php +0 -25
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AliasedFixerOption.php +0 -75
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AliasedFixerOptionBuilder.php +0 -78
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AllowedValueSubset.php +0 -65
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/DeprecatedFixerOption.php +0 -74
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/DeprecatedFixerOptionInterface.php +0 -20
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolver.php +0 -152
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolverInterface.php +0 -30
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOption.php +0 -146
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionBuilder.php +0 -126
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionInterface.php +0 -43
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionSorter.php +0 -37
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/InvalidOptionsForEnvException.php +0 -24
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/CodeSample.php +0 -49
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/CodeSampleInterface.php +0 -28
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FileSpecificCodeSample.php +0 -56
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FileSpecificCodeSampleInterface.php +0 -25
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FixerDefinition.php +0 -76
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FixerDefinitionInterface.php +0 -37
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificCodeSample.php +0 -54
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificCodeSampleInterface.php +0 -23
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecification.php +0 -76
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificationInterface.php +0 -23
- package/vendor/friendsofphp/php-cs-fixer/src/FixerFactory.php +0 -248
- package/vendor/friendsofphp/php-cs-fixer/src/FixerNameValidator.php +0 -32
- package/vendor/friendsofphp/php-cs-fixer/src/Hasher.php +0 -38
- package/vendor/friendsofphp/php-cs-fixer/src/Indicator/PhpUnitTestCaseIndicator.php +0 -90
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/CachingLinter.php +0 -56
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/Linter.php +0 -49
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/LinterInterface.php +0 -35
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/LintingException.php +0 -24
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/LintingResultInterface.php +0 -26
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLinter.php +0 -149
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLinterProcessBuilder.php +0 -46
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLintingResult.php +0 -86
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/TokenizerLinter.php +0 -58
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/TokenizerLintingResult.php +0 -48
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/UnavailableLinterException.php +0 -26
- package/vendor/friendsofphp/php-cs-fixer/src/ParallelAwareConfigInterface.php +0 -29
- package/vendor/friendsofphp/php-cs-fixer/src/PharChecker.php +0 -38
- package/vendor/friendsofphp/php-cs-fixer/src/PharCheckerInterface.php +0 -26
- package/vendor/friendsofphp/php-cs-fixer/src/Preg.php +0 -215
- package/vendor/friendsofphp/php-cs-fixer/src/PregException.php +0 -24
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/AbstractMigrationSetDescription.php +0 -38
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/AbstractRuleSetDescription.php +0 -35
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/DeprecatedRuleSetDescriptionInterface.php +0 -28
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSet.php +0 -159
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSetDescriptionInterface.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSetInterface.php +0 -49
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSets.php +0 -72
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/DoctrineAnnotationSet.php +0 -42
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS1x0RiskySet.php +0 -44
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS1x0Set.php +0 -44
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS2x0RiskySet.php +0 -44
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS2x0Set.php +0 -112
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCSRiskySet.php +0 -40
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCSSet.php +0 -40
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERRiskySet.php +0 -52
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERSet.php +0 -47
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP54MigrationSet.php +0 -30
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP56MigrationRiskySet.php +0 -30
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP70MigrationRiskySet.php +0 -39
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP70MigrationSet.php +0 -31
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP71MigrationRiskySet.php +0 -31
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP71MigrationSet.php +0 -32
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP73MigrationSet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP74MigrationRiskySet.php +0 -33
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP74MigrationSet.php +0 -33
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP80MigrationRiskySet.php +0 -40
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP80MigrationSet.php +0 -32
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP81MigrationSet.php +0 -31
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP82MigrationRiskySet.php +0 -31
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP82MigrationSet.php +0 -31
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP83MigrationSet.php +0 -30
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP84MigrationSet.php +0 -31
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit100MigrationRiskySet.php +0 -31
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit30MigrationRiskySet.php +0 -33
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit32MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit35MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit43MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit48MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit50MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit52MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit54MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit55MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit56MigrationRiskySet.php +0 -37
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit57MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit60MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit75MigrationRiskySet.php +0 -34
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit84MigrationRiskySet.php +0 -35
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit91MigrationRiskySet.php +0 -31
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR12RiskySet.php +0 -36
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR12Set.php +0 -123
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR1Set.php +0 -36
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR2Set.php +0 -104
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PhpCsFixerRiskySet.php +0 -67
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PhpCsFixerSet.php +0 -134
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/SymfonyRiskySet.php +0 -78
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/SymfonySet.php +0 -241
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Event/AnalysisStarted.php +0 -54
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Event/FileProcessed.php +0 -75
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/FileCachingLintingFileIterator.php +0 -76
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/FileFilterIterator.php +0 -108
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/LintingFileIterator.php +0 -66
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/LintingResultAwareFileIteratorInterface.php +0 -29
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelAction.php +0 -35
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelConfig.php +0 -67
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelConfigFactory.php +0 -61
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelisationException.php +0 -30
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/Process.php +0 -189
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ProcessFactory.php +0 -111
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ProcessIdentifier.php +0 -55
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ProcessPool.php +0 -99
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/WorkerException.php +0 -66
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Runner.php +0 -587
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/RunnerConfig.php +0 -64
- package/vendor/friendsofphp/php-cs-fixer/src/StdinFileInfo.php +0 -173
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/AbstractTransformer.php +0 -40
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/AbstractTypeTransformer.php +0 -89
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/AlternativeSyntaxAnalyzer.php +0 -121
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/AbstractControlCaseStructuresAnalysis.php +0 -51
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/ArgumentAnalysis.php +0 -81
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/AttributeAnalysis.php +0 -76
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/CaseAnalysis.php +0 -45
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/DataProviderAnalysis.php +0 -68
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/DefaultAnalysis.php +0 -43
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/EnumAnalysis.php +0 -46
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/MatchAnalysis.php +0 -37
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/NamespaceAnalysis.php +0 -98
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/NamespaceUseAnalysis.php +0 -189
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/StartEndTokenAwareAnalysis.php +0 -33
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/SwitchAnalysis.php +0 -54
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/TypeAnalysis.php +0 -116
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ArgumentsAnalyzer.php +0 -161
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/AttributeAnalyzer.php +0 -211
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/BlocksAnalyzer.php +0 -59
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ClassyAnalyzer.php +0 -87
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/CommentsAnalyzer.php +0 -370
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ControlCaseStructuresAnalyzer.php +0 -312
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/DataProviderAnalyzer.php +0 -115
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/FullyQualifiedNameAnalyzer.php +0 -103
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/FunctionsAnalyzer.php +0 -281
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/GotoLabelAnalyzer.php +0 -40
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/NamespaceUsesAnalyzer.php +0 -216
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/NamespacesAnalyzer.php +0 -116
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/RangeAnalyzer.php +0 -90
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ReferenceAnalyzer.php +0 -49
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/SwitchAnalyzer.php +0 -71
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/WhitespacesAnalyzer.php +0 -52
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/CT.php +0 -112
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Processor/ImportProcessor.php +0 -103
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Token.php +0 -541
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Tokens.php +0 -1584
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/TokensAnalyzer.php +0 -894
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ArrayTypehintTransformer.php +0 -54
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/AttributeTransformer.php +0 -67
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/BraceClassInstantiationTransformer.php +0 -80
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/BraceTransformer.php +0 -349
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ClassConstantTransformer.php +0 -57
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ConstructorPromotionTransformer.php +0 -71
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/DisjunctiveNormalFormTypeParenthesisTransformer.php +0 -65
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/FirstClassCallableTransformer.php +0 -49
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ImportTransformer.php +0 -72
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NameQualifiedTransformer.php +0 -67
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NamedArgumentTransformer.php +0 -73
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NamespaceOperatorTransformer.php +0 -53
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NullableTypeTransformer.php +0 -83
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ReturnRefTransformer.php +0 -47
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/SquareBraceTransformer.php +0 -187
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeAlternationTransformer.php +0 -57
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeColonTransformer.php +0 -83
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeIntersectionTransformer.php +0 -55
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/UseTransformer.php +0 -102
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/WhitespacyCommentTransformer.php +0 -64
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/TransformerInterface.php +0 -68
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformers.php +0 -109
- package/vendor/friendsofphp/php-cs-fixer/src/ToolInfo.php +0 -120
- package/vendor/friendsofphp/php-cs-fixer/src/ToolInfoInterface.php +0 -38
- package/vendor/friendsofphp/php-cs-fixer/src/Utils.php +0 -250
- package/vendor/friendsofphp/php-cs-fixer/src/WhitespacesFixerConfig.php +0 -63
- package/vendor/friendsofphp/php-cs-fixer/src/WordMatcher.php +0 -55
- package/vendor/psr/container/LICENSE +0 -21
- package/vendor/psr/container/README.md +0 -13
- package/vendor/psr/container/composer.json +0 -27
- package/vendor/psr/container/src/ContainerExceptionInterface.php +0 -12
- package/vendor/psr/container/src/ContainerInterface.php +0 -36
- package/vendor/psr/container/src/NotFoundExceptionInterface.php +0 -10
- package/vendor/psr/event-dispatcher/.editorconfig +0 -15
- package/vendor/psr/event-dispatcher/LICENSE +0 -21
- package/vendor/psr/event-dispatcher/README.md +0 -6
- package/vendor/psr/event-dispatcher/composer.json +0 -26
- package/vendor/psr/event-dispatcher/src/EventDispatcherInterface.php +0 -21
- package/vendor/psr/event-dispatcher/src/ListenerProviderInterface.php +0 -19
- package/vendor/psr/event-dispatcher/src/StoppableEventInterface.php +0 -26
- package/vendor/psr/log/LICENSE +0 -19
- package/vendor/psr/log/README.md +0 -58
- package/vendor/psr/log/composer.json +0 -26
- package/vendor/psr/log/src/AbstractLogger.php +0 -15
- package/vendor/psr/log/src/InvalidArgumentException.php +0 -7
- package/vendor/psr/log/src/LogLevel.php +0 -18
- package/vendor/psr/log/src/LoggerAwareInterface.php +0 -14
- package/vendor/psr/log/src/LoggerAwareTrait.php +0 -22
- package/vendor/psr/log/src/LoggerInterface.php +0 -98
- package/vendor/psr/log/src/LoggerTrait.php +0 -98
- package/vendor/psr/log/src/NullLogger.php +0 -26
- package/vendor/react/cache/CHANGELOG.md +0 -96
- package/vendor/react/cache/LICENSE +0 -21
- package/vendor/react/cache/README.md +0 -367
- package/vendor/react/cache/composer.json +0 -45
- package/vendor/react/cache/src/ArrayCache.php +0 -181
- package/vendor/react/cache/src/CacheInterface.php +0 -194
- package/vendor/react/child-process/CHANGELOG.md +0 -176
- package/vendor/react/child-process/LICENSE +0 -21
- package/vendor/react/child-process/README.md +0 -619
- package/vendor/react/child-process/composer.json +0 -49
- package/vendor/react/child-process/src/Process.php +0 -585
- package/vendor/react/dns/CHANGELOG.md +0 -452
- package/vendor/react/dns/LICENSE +0 -21
- package/vendor/react/dns/README.md +0 -453
- package/vendor/react/dns/composer.json +0 -49
- package/vendor/react/dns/src/BadServerException.php +0 -7
- package/vendor/react/dns/src/Config/Config.php +0 -137
- package/vendor/react/dns/src/Config/HostsFile.php +0 -153
- package/vendor/react/dns/src/Model/Message.php +0 -230
- package/vendor/react/dns/src/Model/Record.php +0 -153
- package/vendor/react/dns/src/Protocol/BinaryDumper.php +0 -199
- package/vendor/react/dns/src/Protocol/Parser.php +0 -356
- package/vendor/react/dns/src/Query/CachingExecutor.php +0 -88
- package/vendor/react/dns/src/Query/CancellationException.php +0 -7
- package/vendor/react/dns/src/Query/CoopExecutor.php +0 -91
- package/vendor/react/dns/src/Query/ExecutorInterface.php +0 -43
- package/vendor/react/dns/src/Query/FallbackExecutor.php +0 -49
- package/vendor/react/dns/src/Query/HostsFileExecutor.php +0 -89
- package/vendor/react/dns/src/Query/Query.php +0 -69
- package/vendor/react/dns/src/Query/RetryExecutor.php +0 -85
- package/vendor/react/dns/src/Query/SelectiveTransportExecutor.php +0 -85
- package/vendor/react/dns/src/Query/TcpTransportExecutor.php +0 -382
- package/vendor/react/dns/src/Query/TimeoutException.php +0 -7
- package/vendor/react/dns/src/Query/TimeoutExecutor.php +0 -78
- package/vendor/react/dns/src/Query/UdpTransportExecutor.php +0 -221
- package/vendor/react/dns/src/RecordNotFoundException.php +0 -7
- package/vendor/react/dns/src/Resolver/Factory.php +0 -226
- package/vendor/react/dns/src/Resolver/Resolver.php +0 -147
- package/vendor/react/dns/src/Resolver/ResolverInterface.php +0 -94
- package/vendor/react/event-loop/CHANGELOG.md +0 -468
- package/vendor/react/event-loop/LICENSE +0 -21
- package/vendor/react/event-loop/README.md +0 -930
- package/vendor/react/event-loop/composer.json +0 -47
- package/vendor/react/event-loop/src/ExtEvLoop.php +0 -253
- package/vendor/react/event-loop/src/ExtEventLoop.php +0 -275
- package/vendor/react/event-loop/src/ExtLibevLoop.php +0 -201
- package/vendor/react/event-loop/src/ExtLibeventLoop.php +0 -285
- package/vendor/react/event-loop/src/ExtUvLoop.php +0 -342
- package/vendor/react/event-loop/src/Factory.php +0 -75
- package/vendor/react/event-loop/src/Loop.php +0 -266
- package/vendor/react/event-loop/src/LoopInterface.php +0 -472
- package/vendor/react/event-loop/src/SignalsHandler.php +0 -63
- package/vendor/react/event-loop/src/StreamSelectLoop.php +0 -330
- package/vendor/react/event-loop/src/Tick/FutureTickQueue.php +0 -60
- package/vendor/react/event-loop/src/Timer/Timer.php +0 -55
- package/vendor/react/event-loop/src/Timer/Timers.php +0 -113
- package/vendor/react/event-loop/src/TimerInterface.php +0 -27
- package/vendor/react/promise/CHANGELOG.md +0 -156
- package/vendor/react/promise/LICENSE +0 -24
- package/vendor/react/promise/README.md +0 -722
- package/vendor/react/promise/composer.json +0 -57
- package/vendor/react/promise/src/Deferred.php +0 -52
- package/vendor/react/promise/src/Exception/CompositeException.php +0 -32
- package/vendor/react/promise/src/Exception/LengthException.php +0 -7
- package/vendor/react/promise/src/Internal/CancellationQueue.php +0 -64
- package/vendor/react/promise/src/Internal/FulfilledPromise.php +0 -89
- package/vendor/react/promise/src/Internal/RejectedPromise.php +0 -128
- package/vendor/react/promise/src/Promise.php +0 -303
- package/vendor/react/promise/src/PromiseInterface.php +0 -152
- package/vendor/react/promise/src/functions.php +0 -345
- package/vendor/react/promise/src/functions_include.php +0 -5
- package/vendor/react/socket/CHANGELOG.md +0 -785
- package/vendor/react/socket/LICENSE +0 -21
- package/vendor/react/socket/README.md +0 -1564
- package/vendor/react/socket/composer.json +0 -52
- package/vendor/react/socket/src/Connection.php +0 -183
- package/vendor/react/socket/src/ConnectionInterface.php +0 -119
- package/vendor/react/socket/src/Connector.php +0 -236
- package/vendor/react/socket/src/ConnectorInterface.php +0 -59
- package/vendor/react/socket/src/DnsConnector.php +0 -117
- package/vendor/react/socket/src/FdServer.php +0 -222
- package/vendor/react/socket/src/FixedUriConnector.php +0 -41
- package/vendor/react/socket/src/HappyEyeBallsConnectionBuilder.php +0 -334
- package/vendor/react/socket/src/HappyEyeBallsConnector.php +0 -80
- package/vendor/react/socket/src/LimitingServer.php +0 -203
- package/vendor/react/socket/src/SecureConnector.php +0 -132
- package/vendor/react/socket/src/SecureServer.php +0 -210
- package/vendor/react/socket/src/Server.php +0 -118
- package/vendor/react/socket/src/ServerInterface.php +0 -151
- package/vendor/react/socket/src/SocketServer.php +0 -215
- package/vendor/react/socket/src/StreamEncryption.php +0 -158
- package/vendor/react/socket/src/TcpConnector.php +0 -173
- package/vendor/react/socket/src/TcpServer.php +0 -262
- package/vendor/react/socket/src/TimeoutConnector.php +0 -79
- package/vendor/react/socket/src/UnixConnector.php +0 -58
- package/vendor/react/socket/src/UnixServer.php +0 -162
- package/vendor/react/stream/CHANGELOG.md +0 -460
- package/vendor/react/stream/LICENSE +0 -21
- package/vendor/react/stream/README.md +0 -1249
- package/vendor/react/stream/composer.json +0 -47
- package/vendor/react/stream/src/CompositeStream.php +0 -83
- package/vendor/react/stream/src/DuplexResourceStream.php +0 -240
- package/vendor/react/stream/src/DuplexStreamInterface.php +0 -39
- package/vendor/react/stream/src/ReadableResourceStream.php +0 -188
- package/vendor/react/stream/src/ReadableStreamInterface.php +0 -362
- package/vendor/react/stream/src/ThroughStream.php +0 -195
- package/vendor/react/stream/src/Util.php +0 -75
- package/vendor/react/stream/src/WritableResourceStream.php +0 -178
- package/vendor/react/stream/src/WritableStreamInterface.php +0 -347
- package/vendor/sebastian/diff/ChangeLog.md +0 -179
- package/vendor/sebastian/diff/LICENSE +0 -29
- package/vendor/sebastian/diff/README.md +0 -151
- package/vendor/sebastian/diff/SECURITY.md +0 -30
- package/vendor/sebastian/diff/composer.json +0 -51
- package/vendor/sebastian/diff/src/Chunk.php +0 -83
- package/vendor/sebastian/diff/src/Diff.php +0 -84
- package/vendor/sebastian/diff/src/Differ.php +0 -247
- package/vendor/sebastian/diff/src/Exception/ConfigurationException.php +0 -32
- package/vendor/sebastian/diff/src/Exception/Exception.php +0 -16
- package/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php +0 -14
- package/vendor/sebastian/diff/src/Line.php +0 -50
- package/vendor/sebastian/diff/src/LongestCommonSubsequenceCalculator.php +0 -18
- package/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php +0 -96
- package/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php +0 -54
- package/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php +0 -74
- package/vendor/sebastian/diff/src/Output/DiffOutputBuilderInterface.php +0 -19
- package/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php +0 -331
- package/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php +0 -261
- package/vendor/sebastian/diff/src/Parser.php +0 -116
- package/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php +0 -81
- package/vendor/symfony/console/Application.php +0 -1328
- package/vendor/symfony/console/Attribute/Argument.php +0 -110
- package/vendor/symfony/console/Attribute/AsCommand.php +0 -49
- package/vendor/symfony/console/Attribute/Option.php +0 -181
- package/vendor/symfony/console/CHANGELOG.md +0 -299
- package/vendor/symfony/console/CI/GithubActionReporter.php +0 -97
- package/vendor/symfony/console/Color.php +0 -133
- package/vendor/symfony/console/Command/Command.php +0 -700
- package/vendor/symfony/console/Command/CompleteCommand.php +0 -212
- package/vendor/symfony/console/Command/DumpCompletionCommand.php +0 -151
- package/vendor/symfony/console/Command/HelpCommand.php +0 -76
- package/vendor/symfony/console/Command/InvokableCommand.php +0 -157
- package/vendor/symfony/console/Command/LazyCommand.php +0 -206
- package/vendor/symfony/console/Command/ListCommand.php +0 -72
- package/vendor/symfony/console/Command/LockableTrait.php +0 -85
- package/vendor/symfony/console/Command/SignalableCommandInterface.php +0 -32
- package/vendor/symfony/console/Command/TraceableCommand.php +0 -365
- package/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php +0 -38
- package/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php +0 -52
- package/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php +0 -52
- package/vendor/symfony/console/Completion/CompletionInput.php +0 -248
- package/vendor/symfony/console/Completion/CompletionSuggestions.php +0 -97
- package/vendor/symfony/console/Completion/Output/BashCompletionOutput.php +0 -33
- package/vendor/symfony/console/Completion/Output/CompletionOutputInterface.php +0 -25
- package/vendor/symfony/console/Completion/Output/FishCompletionOutput.php +0 -36
- package/vendor/symfony/console/Completion/Output/ZshCompletionOutput.php +0 -36
- package/vendor/symfony/console/Completion/Suggestion.php +0 -41
- package/vendor/symfony/console/ConsoleEvents.php +0 -72
- package/vendor/symfony/console/Cursor.php +0 -204
- package/vendor/symfony/console/DataCollector/CommandDataCollector.php +0 -238
- package/vendor/symfony/console/Debug/CliRequest.php +0 -70
- package/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php +0 -155
- package/vendor/symfony/console/Descriptor/ApplicationDescription.php +0 -136
- package/vendor/symfony/console/Descriptor/Descriptor.php +0 -74
- package/vendor/symfony/console/Descriptor/DescriptorInterface.php +0 -24
- package/vendor/symfony/console/Descriptor/JsonDescriptor.php +0 -166
- package/vendor/symfony/console/Descriptor/MarkdownDescriptor.php +0 -173
- package/vendor/symfony/console/Descriptor/ReStructuredTextDescriptor.php +0 -273
- package/vendor/symfony/console/Descriptor/TextDescriptor.php +0 -317
- package/vendor/symfony/console/Descriptor/XmlDescriptor.php +0 -230
- package/vendor/symfony/console/Event/ConsoleAlarmEvent.php +0 -47
- package/vendor/symfony/console/Event/ConsoleCommandEvent.php +0 -54
- package/vendor/symfony/console/Event/ConsoleErrorEvent.php +0 -58
- package/vendor/symfony/console/Event/ConsoleEvent.php +0 -56
- package/vendor/symfony/console/Event/ConsoleSignalEvent.php +0 -56
- package/vendor/symfony/console/Event/ConsoleTerminateEvent.php +0 -50
- package/vendor/symfony/console/EventListener/ErrorListener.php +0 -89
- package/vendor/symfony/console/Exception/CommandNotFoundException.php +0 -43
- package/vendor/symfony/console/Exception/ExceptionInterface.php +0 -21
- package/vendor/symfony/console/Exception/InvalidArgumentException.php +0 -19
- package/vendor/symfony/console/Exception/InvalidOptionException.php +0 -21
- package/vendor/symfony/console/Exception/LogicException.php +0 -19
- package/vendor/symfony/console/Exception/MissingInputException.php +0 -21
- package/vendor/symfony/console/Exception/NamespaceNotFoundException.php +0 -21
- package/vendor/symfony/console/Exception/RunCommandFailedException.php +0 -29
- package/vendor/symfony/console/Exception/RuntimeException.php +0 -19
- package/vendor/symfony/console/Formatter/NullOutputFormatter.php +0 -51
- package/vendor/symfony/console/Formatter/NullOutputFormatterStyle.php +0 -48
- package/vendor/symfony/console/Formatter/OutputFormatter.php +0 -267
- package/vendor/symfony/console/Formatter/OutputFormatterInterface.php +0 -52
- package/vendor/symfony/console/Formatter/OutputFormatterStyle.php +0 -89
- package/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php +0 -50
- package/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php +0 -103
- package/vendor/symfony/console/Formatter/WrappableOutputFormatterInterface.php +0 -25
- package/vendor/symfony/console/Helper/DebugFormatterHelper.php +0 -98
- package/vendor/symfony/console/Helper/DescriptorHelper.php +0 -91
- package/vendor/symfony/console/Helper/Dumper.php +0 -53
- package/vendor/symfony/console/Helper/FormatterHelper.php +0 -81
- package/vendor/symfony/console/Helper/Helper.php +0 -161
- package/vendor/symfony/console/Helper/HelperInterface.php +0 -35
- package/vendor/symfony/console/Helper/HelperSet.php +0 -74
- package/vendor/symfony/console/Helper/InputAwareHelper.php +0 -30
- package/vendor/symfony/console/Helper/OutputWrapper.php +0 -76
- package/vendor/symfony/console/Helper/ProcessHelper.php +0 -137
- package/vendor/symfony/console/Helper/ProgressBar.php +0 -654
- package/vendor/symfony/console/Helper/ProgressIndicator.php +0 -242
- package/vendor/symfony/console/Helper/QuestionHelper.php +0 -589
- package/vendor/symfony/console/Helper/SymfonyQuestionHelper.php +0 -103
- package/vendor/symfony/console/Helper/Table.php +0 -934
- package/vendor/symfony/console/Helper/TableCell.php +0 -71
- package/vendor/symfony/console/Helper/TableCellStyle.php +0 -84
- package/vendor/symfony/console/Helper/TableRows.php +0 -28
- package/vendor/symfony/console/Helper/TableSeparator.php +0 -25
- package/vendor/symfony/console/Helper/TableStyle.php +0 -375
- package/vendor/symfony/console/Helper/TreeHelper.php +0 -111
- package/vendor/symfony/console/Helper/TreeNode.php +0 -105
- package/vendor/symfony/console/Helper/TreeStyle.php +0 -78
- package/vendor/symfony/console/Input/ArgvInput.php +0 -402
- package/vendor/symfony/console/Input/ArrayInput.php +0 -191
- package/vendor/symfony/console/Input/Input.php +0 -174
- package/vendor/symfony/console/Input/InputArgument.php +0 -160
- package/vendor/symfony/console/Input/InputAwareInterface.php +0 -26
- package/vendor/symfony/console/Input/InputDefinition.php +0 -402
- package/vendor/symfony/console/Input/InputInterface.php +0 -138
- package/vendor/symfony/console/Input/InputOption.php +0 -262
- package/vendor/symfony/console/Input/StreamableInputInterface.php +0 -37
- package/vendor/symfony/console/Input/StringInput.php +0 -85
- package/vendor/symfony/console/LICENSE +0 -19
- package/vendor/symfony/console/Logger/ConsoleLogger.php +0 -120
- package/vendor/symfony/console/Messenger/RunCommandContext.php +0 -25
- package/vendor/symfony/console/Messenger/RunCommandMessage.php +0 -36
- package/vendor/symfony/console/Messenger/RunCommandMessageHandler.php +0 -49
- package/vendor/symfony/console/Output/AnsiColorMode.php +0 -106
- package/vendor/symfony/console/Output/BufferedOutput.php +0 -40
- package/vendor/symfony/console/Output/ConsoleOutput.php +0 -153
- package/vendor/symfony/console/Output/ConsoleOutputInterface.php +0 -30
- package/vendor/symfony/console/Output/ConsoleSectionOutput.php +0 -237
- package/vendor/symfony/console/Output/NullOutput.php +0 -94
- package/vendor/symfony/console/Output/Output.php +0 -144
- package/vendor/symfony/console/Output/OutputInterface.php +0 -103
- package/vendor/symfony/console/Output/StreamOutput.php +0 -127
- package/vendor/symfony/console/Output/TrimmedBufferOutput.php +0 -58
- package/vendor/symfony/console/Question/ChoiceQuestion.php +0 -178
- package/vendor/symfony/console/Question/ConfirmationQuestion.php +0 -57
- package/vendor/symfony/console/Question/Question.php +0 -280
- package/vendor/symfony/console/README.md +0 -27
- package/vendor/symfony/console/Resources/bin/hiddeninput.exe +0 -0
- package/vendor/symfony/console/Resources/completion.bash +0 -94
- package/vendor/symfony/console/Resources/completion.fish +0 -25
- package/vendor/symfony/console/Resources/completion.zsh +0 -82
- package/vendor/symfony/console/SignalRegistry/SignalMap.php +0 -36
- package/vendor/symfony/console/SignalRegistry/SignalRegistry.php +0 -65
- package/vendor/symfony/console/SingleCommandApplication.php +0 -72
- package/vendor/symfony/console/Style/OutputStyle.php +0 -115
- package/vendor/symfony/console/Style/StyleInterface.php +0 -110
- package/vendor/symfony/console/Style/SymfonyStyle.php +0 -476
- package/vendor/symfony/console/Terminal.php +0 -227
- package/vendor/symfony/console/Tester/ApplicationTester.php +0 -83
- package/vendor/symfony/console/Tester/CommandCompletionTester.php +0 -54
- package/vendor/symfony/console/Tester/CommandTester.php +0 -74
- package/vendor/symfony/console/Tester/Constraint/CommandIsSuccessful.php +0 -43
- package/vendor/symfony/console/Tester/TesterTrait.php +0 -178
- package/vendor/symfony/console/composer.json +0 -55
- package/vendor/symfony/deprecation-contracts/CHANGELOG.md +0 -5
- package/vendor/symfony/deprecation-contracts/LICENSE +0 -19
- package/vendor/symfony/deprecation-contracts/README.md +0 -26
- package/vendor/symfony/deprecation-contracts/composer.json +0 -35
- package/vendor/symfony/deprecation-contracts/function.php +0 -27
- package/vendor/symfony/event-dispatcher/Attribute/AsEventListener.php +0 -35
- package/vendor/symfony/event-dispatcher/CHANGELOG.md +0 -96
- package/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php +0 -355
- package/vendor/symfony/event-dispatcher/Debug/WrappedListener.php +0 -143
- package/vendor/symfony/event-dispatcher/DependencyInjection/AddEventAliasesPass.php +0 -38
- package/vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php +0 -213
- package/vendor/symfony/event-dispatcher/EventDispatcher.php +0 -256
- package/vendor/symfony/event-dispatcher/EventDispatcherInterface.php +0 -66
- package/vendor/symfony/event-dispatcher/EventSubscriberInterface.php +0 -49
- package/vendor/symfony/event-dispatcher/GenericEvent.php +0 -155
- package/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php +0 -65
- package/vendor/symfony/event-dispatcher/LICENSE +0 -19
- package/vendor/symfony/event-dispatcher/README.md +0 -15
- package/vendor/symfony/event-dispatcher/composer.json +0 -47
- package/vendor/symfony/event-dispatcher-contracts/CHANGELOG.md +0 -5
- package/vendor/symfony/event-dispatcher-contracts/Event.php +0 -51
- package/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php +0 -33
- package/vendor/symfony/event-dispatcher-contracts/LICENSE +0 -19
- package/vendor/symfony/event-dispatcher-contracts/README.md +0 -9
- package/vendor/symfony/event-dispatcher-contracts/composer.json +0 -35
- package/vendor/symfony/filesystem/CHANGELOG.md +0 -92
- package/vendor/symfony/filesystem/Exception/ExceptionInterface.php +0 -21
- package/vendor/symfony/filesystem/Exception/FileNotFoundException.php +0 -34
- package/vendor/symfony/filesystem/Exception/IOException.php +0 -36
- package/vendor/symfony/filesystem/Exception/IOExceptionInterface.php +0 -25
- package/vendor/symfony/filesystem/Exception/InvalidArgumentException.php +0 -19
- package/vendor/symfony/filesystem/Exception/RuntimeException.php +0 -19
- package/vendor/symfony/filesystem/Filesystem.php +0 -773
- package/vendor/symfony/filesystem/LICENSE +0 -19
- package/vendor/symfony/filesystem/Path.php +0 -816
- package/vendor/symfony/filesystem/README.md +0 -13
- package/vendor/symfony/filesystem/composer.json +0 -33
- package/vendor/symfony/finder/CHANGELOG.md +0 -103
- package/vendor/symfony/finder/Comparator/Comparator.php +0 -62
- package/vendor/symfony/finder/Comparator/DateComparator.php +0 -50
- package/vendor/symfony/finder/Comparator/NumberComparator.php +0 -78
- package/vendor/symfony/finder/Exception/AccessDeniedException.php +0 -19
- package/vendor/symfony/finder/Exception/DirectoryNotFoundException.php +0 -19
- package/vendor/symfony/finder/Finder.php +0 -852
- package/vendor/symfony/finder/Gitignore.php +0 -91
- package/vendor/symfony/finder/Glob.php +0 -109
- package/vendor/symfony/finder/Iterator/CustomFilterIterator.php +0 -61
- package/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php +0 -58
- package/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php +0 -48
- package/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php +0 -110
- package/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php +0 -51
- package/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php +0 -58
- package/vendor/symfony/finder/Iterator/FilenameFilterIterator.php +0 -45
- package/vendor/symfony/finder/Iterator/LazyIterator.php +0 -32
- package/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php +0 -107
- package/vendor/symfony/finder/Iterator/PathFilterIterator.php +0 -56
- package/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php +0 -134
- package/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php +0 -57
- package/vendor/symfony/finder/Iterator/SortableIterator.php +0 -103
- package/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php +0 -173
- package/vendor/symfony/finder/LICENSE +0 -19
- package/vendor/symfony/finder/README.md +0 -14
- package/vendor/symfony/finder/SplFileInfo.php +0 -80
- package/vendor/symfony/finder/composer.json +0 -31
- package/vendor/symfony/options-resolver/CHANGELOG.md +0 -103
- package/vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php +0 -114
- package/vendor/symfony/options-resolver/Exception/AccessException.php +0 -22
- package/vendor/symfony/options-resolver/Exception/ExceptionInterface.php +0 -21
- package/vendor/symfony/options-resolver/Exception/InvalidArgumentException.php +0 -21
- package/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php +0 -23
- package/vendor/symfony/options-resolver/Exception/MissingOptionsException.php +0 -23
- package/vendor/symfony/options-resolver/Exception/NoConfigurationException.php +0 -26
- package/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php +0 -26
- package/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php +0 -21
- package/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php +0 -24
- package/vendor/symfony/options-resolver/LICENSE +0 -19
- package/vendor/symfony/options-resolver/OptionConfigurator.php +0 -160
- package/vendor/symfony/options-resolver/Options.php +0 -22
- package/vendor/symfony/options-resolver/OptionsResolver.php +0 -1396
- package/vendor/symfony/options-resolver/README.md +0 -15
- package/vendor/symfony/options-resolver/composer.json +0 -29
- package/vendor/symfony/polyfill-ctype/Ctype.php +0 -232
- package/vendor/symfony/polyfill-ctype/LICENSE +0 -19
- package/vendor/symfony/polyfill-ctype/README.md +0 -12
- package/vendor/symfony/polyfill-ctype/bootstrap.php +0 -50
- package/vendor/symfony/polyfill-ctype/bootstrap80.php +0 -46
- package/vendor/symfony/polyfill-ctype/composer.json +0 -38
- package/vendor/symfony/polyfill-intl-grapheme/Grapheme.php +0 -247
- package/vendor/symfony/polyfill-intl-grapheme/LICENSE +0 -19
- package/vendor/symfony/polyfill-intl-grapheme/README.md +0 -31
- package/vendor/symfony/polyfill-intl-grapheme/bootstrap.php +0 -58
- package/vendor/symfony/polyfill-intl-grapheme/bootstrap80.php +0 -50
- package/vendor/symfony/polyfill-intl-grapheme/composer.json +0 -35
- package/vendor/symfony/polyfill-intl-normalizer/LICENSE +0 -19
- package/vendor/symfony/polyfill-intl-normalizer/Normalizer.php +0 -310
- package/vendor/symfony/polyfill-intl-normalizer/README.md +0 -14
- package/vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php +0 -17
- package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/canonicalComposition.php +0 -945
- package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/canonicalDecomposition.php +0 -2065
- package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/combiningClass.php +0 -876
- package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/compatibilityDecomposition.php +0 -3695
- package/vendor/symfony/polyfill-intl-normalizer/bootstrap.php +0 -23
- package/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php +0 -19
- package/vendor/symfony/polyfill-intl-normalizer/composer.json +0 -36
- package/vendor/symfony/polyfill-mbstring/LICENSE +0 -19
- package/vendor/symfony/polyfill-mbstring/Mbstring.php +0 -1045
- package/vendor/symfony/polyfill-mbstring/README.md +0 -13
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +0 -119
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +0 -1397
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +0 -5
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +0 -1489
- package/vendor/symfony/polyfill-mbstring/bootstrap.php +0 -172
- package/vendor/symfony/polyfill-mbstring/bootstrap80.php +0 -167
- package/vendor/symfony/polyfill-mbstring/composer.json +0 -39
- package/vendor/symfony/polyfill-php80/LICENSE +0 -19
- package/vendor/symfony/polyfill-php80/Php80.php +0 -115
- package/vendor/symfony/polyfill-php80/PhpToken.php +0 -106
- package/vendor/symfony/polyfill-php80/README.md +0 -25
- package/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +0 -31
- package/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +0 -16
- package/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +0 -20
- package/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +0 -16
- package/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +0 -16
- package/vendor/symfony/polyfill-php80/bootstrap.php +0 -42
- package/vendor/symfony/polyfill-php80/composer.json +0 -37
- package/vendor/symfony/polyfill-php81/LICENSE +0 -19
- package/vendor/symfony/polyfill-php81/Php81.php +0 -37
- package/vendor/symfony/polyfill-php81/README.md +0 -18
- package/vendor/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php +0 -51
- package/vendor/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php +0 -20
- package/vendor/symfony/polyfill-php81/bootstrap.php +0 -28
- package/vendor/symfony/polyfill-php81/composer.json +0 -33
- package/vendor/symfony/process/CHANGELOG.md +0 -134
- package/vendor/symfony/process/Exception/ExceptionInterface.php +0 -21
- package/vendor/symfony/process/Exception/InvalidArgumentException.php +0 -21
- package/vendor/symfony/process/Exception/LogicException.php +0 -21
- package/vendor/symfony/process/Exception/ProcessFailedException.php +0 -53
- package/vendor/symfony/process/Exception/ProcessSignaledException.php +0 -38
- package/vendor/symfony/process/Exception/ProcessStartFailedException.php +0 -43
- package/vendor/symfony/process/Exception/ProcessTimedOutException.php +0 -60
- package/vendor/symfony/process/Exception/RunProcessFailedException.php +0 -25
- package/vendor/symfony/process/Exception/RuntimeException.php +0 -21
- package/vendor/symfony/process/ExecutableFinder.php +0 -103
- package/vendor/symfony/process/InputStream.php +0 -91
- package/vendor/symfony/process/LICENSE +0 -19
- package/vendor/symfony/process/Messenger/RunProcessContext.php +0 -33
- package/vendor/symfony/process/Messenger/RunProcessMessage.php +0 -47
- package/vendor/symfony/process/Messenger/RunProcessMessageHandler.php +0 -36
- package/vendor/symfony/process/PhpExecutableFinder.php +0 -98
- package/vendor/symfony/process/PhpProcess.php +0 -66
- package/vendor/symfony/process/PhpSubprocess.php +0 -164
- package/vendor/symfony/process/Pipes/AbstractPipes.php +0 -176
- package/vendor/symfony/process/Pipes/PipesInterface.php +0 -61
- package/vendor/symfony/process/Pipes/UnixPipes.php +0 -144
- package/vendor/symfony/process/Pipes/WindowsPipes.php +0 -185
- package/vendor/symfony/process/Process.php +0 -1662
- package/vendor/symfony/process/ProcessUtils.php +0 -64
- package/vendor/symfony/process/README.md +0 -13
- package/vendor/symfony/process/composer.json +0 -28
- package/vendor/symfony/service-contracts/Attribute/Required.php +0 -25
- package/vendor/symfony/service-contracts/Attribute/SubscribedService.php +0 -47
- package/vendor/symfony/service-contracts/CHANGELOG.md +0 -5
- package/vendor/symfony/service-contracts/LICENSE +0 -19
- package/vendor/symfony/service-contracts/README.md +0 -9
- package/vendor/symfony/service-contracts/ResetInterface.php +0 -33
- package/vendor/symfony/service-contracts/ServiceCollectionInterface.php +0 -26
- package/vendor/symfony/service-contracts/ServiceLocatorTrait.php +0 -114
- package/vendor/symfony/service-contracts/ServiceMethodsSubscriberTrait.php +0 -80
- package/vendor/symfony/service-contracts/ServiceProviderInterface.php +0 -45
- package/vendor/symfony/service-contracts/ServiceSubscriberInterface.php +0 -62
- package/vendor/symfony/service-contracts/ServiceSubscriberTrait.php +0 -84
- package/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php +0 -23
- package/vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php +0 -97
- package/vendor/symfony/service-contracts/composer.json +0 -42
- package/vendor/symfony/stopwatch/CHANGELOG.md +0 -30
- package/vendor/symfony/stopwatch/LICENSE +0 -19
- package/vendor/symfony/stopwatch/README.md +0 -42
- package/vendor/symfony/stopwatch/Section.php +0 -155
- package/vendor/symfony/stopwatch/Stopwatch.php +0 -163
- package/vendor/symfony/stopwatch/StopwatchEvent.php +0 -238
- package/vendor/symfony/stopwatch/StopwatchPeriod.php +0 -73
- package/vendor/symfony/stopwatch/composer.json +0 -29
- package/vendor/symfony/string/AbstractString.php +0 -723
- package/vendor/symfony/string/AbstractUnicodeString.php +0 -670
- package/vendor/symfony/string/ByteString.php +0 -490
- package/vendor/symfony/string/CHANGELOG.md +0 -56
- package/vendor/symfony/string/CodePointString.php +0 -260
- package/vendor/symfony/string/Exception/ExceptionInterface.php +0 -16
- package/vendor/symfony/string/Exception/InvalidArgumentException.php +0 -16
- package/vendor/symfony/string/Exception/RuntimeException.php +0 -16
- package/vendor/symfony/string/Inflector/EnglishInflector.php +0 -589
- package/vendor/symfony/string/Inflector/FrenchInflector.php +0 -151
- package/vendor/symfony/string/Inflector/InflectorInterface.php +0 -33
- package/vendor/symfony/string/Inflector/SpanishInflector.php +0 -126
- package/vendor/symfony/string/LICENSE +0 -19
- package/vendor/symfony/string/LazyString.php +0 -145
- package/vendor/symfony/string/README.md +0 -14
- package/vendor/symfony/string/Resources/data/wcswidth_table_wide.php +0 -1182
- package/vendor/symfony/string/Resources/data/wcswidth_table_zero.php +0 -1466
- package/vendor/symfony/string/Resources/functions.php +0 -38
- package/vendor/symfony/string/Slugger/AsciiSlugger.php +0 -207
- package/vendor/symfony/string/Slugger/SluggerInterface.php +0 -27
- package/vendor/symfony/string/TruncateMode.php +0 -42
- package/vendor/symfony/string/UnicodeString.php +0 -382
- package/vendor/symfony/string/composer.json +0 -44
|
@@ -1,1584 +0,0 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
declare(strict_types=1);
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* This file is part of PHP CS Fixer.
|
|
7
|
-
*
|
|
8
|
-
* (c) Fabien Potencier <fabien@symfony.com>
|
|
9
|
-
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
|
|
10
|
-
*
|
|
11
|
-
* This source file is subject to the MIT license that is bundled
|
|
12
|
-
* with this source code in the file LICENSE.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
namespace PhpCsFixer\Tokenizer;
|
|
16
|
-
|
|
17
|
-
use PhpCsFixer\Console\Application;
|
|
18
|
-
use PhpCsFixer\Hasher;
|
|
19
|
-
use PhpCsFixer\Preg;
|
|
20
|
-
use PhpCsFixer\Tokenizer\Analyzer\Analysis\NamespaceAnalysis;
|
|
21
|
-
use PhpCsFixer\Tokenizer\Analyzer\NamespacesAnalyzer;
|
|
22
|
-
use PhpCsFixer\Utils;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Collection of code tokens.
|
|
26
|
-
*
|
|
27
|
-
* Its role is to provide the ability to manage collection and navigate through it.
|
|
28
|
-
*
|
|
29
|
-
* As a token prototype you should understand a single element generated by token_get_all.
|
|
30
|
-
*
|
|
31
|
-
* @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
|
|
32
|
-
*
|
|
33
|
-
* @extends \SplFixedArray<Token>
|
|
34
|
-
*
|
|
35
|
-
* @method Token offsetGet($offset)
|
|
36
|
-
*
|
|
37
|
-
* @final
|
|
38
|
-
*/
|
|
39
|
-
class Tokens extends \SplFixedArray
|
|
40
|
-
{
|
|
41
|
-
public const BLOCK_TYPE_PARENTHESIS_BRACE = 1;
|
|
42
|
-
public const BLOCK_TYPE_CURLY_BRACE = 2;
|
|
43
|
-
public const BLOCK_TYPE_INDEX_SQUARE_BRACE = 3;
|
|
44
|
-
public const BLOCK_TYPE_ARRAY_SQUARE_BRACE = 4;
|
|
45
|
-
public const BLOCK_TYPE_DYNAMIC_PROP_BRACE = 5;
|
|
46
|
-
public const BLOCK_TYPE_DYNAMIC_VAR_BRACE = 6;
|
|
47
|
-
public const BLOCK_TYPE_ARRAY_INDEX_CURLY_BRACE = 7;
|
|
48
|
-
public const BLOCK_TYPE_GROUP_IMPORT_BRACE = 8;
|
|
49
|
-
public const BLOCK_TYPE_DESTRUCTURING_SQUARE_BRACE = 9;
|
|
50
|
-
public const BLOCK_TYPE_BRACE_CLASS_INSTANTIATION = 10;
|
|
51
|
-
public const BLOCK_TYPE_ATTRIBUTE = 11;
|
|
52
|
-
public const BLOCK_TYPE_DISJUNCTIVE_NORMAL_FORM_TYPE_PARENTHESIS = 12;
|
|
53
|
-
public const BLOCK_TYPE_DYNAMIC_CLASS_CONSTANT_FETCH_CURLY_BRACE = 13;
|
|
54
|
-
public const BLOCK_TYPE_COMPLEX_STRING_VARIABLE = 14;
|
|
55
|
-
public const BLOCK_TYPE_PROPERTY_HOOK = 15;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Static class cache.
|
|
59
|
-
*
|
|
60
|
-
* @var array<non-empty-string, self>
|
|
61
|
-
*/
|
|
62
|
-
private static array $cache = [];
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Cache of block starts. Any change in collection will invalidate it.
|
|
66
|
-
*
|
|
67
|
-
* @var array<int, int>
|
|
68
|
-
*/
|
|
69
|
-
private array $blockStartCache = [];
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Cache of block ends. Any change in collection will invalidate it.
|
|
73
|
-
*
|
|
74
|
-
* @var array<int, int>
|
|
75
|
-
*/
|
|
76
|
-
private array $blockEndCache = [];
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* An hash of the code string.
|
|
80
|
-
*
|
|
81
|
-
* @var ?non-empty-string
|
|
82
|
-
*/
|
|
83
|
-
private ?string $codeHash = null;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* An hash of the collection items.
|
|
87
|
-
*
|
|
88
|
-
* @var ?non-empty-string
|
|
89
|
-
*/
|
|
90
|
-
private ?string $collectionHash = null;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Flag is collection was changed.
|
|
94
|
-
*
|
|
95
|
-
* It doesn't know about change of collection's items. To check it run `isChanged` method.
|
|
96
|
-
*/
|
|
97
|
-
private bool $changed = false;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Set of found token kinds.
|
|
101
|
-
*
|
|
102
|
-
* When the token kind is present in this set it means that given token kind
|
|
103
|
-
* was ever seen inside the collection (but may not be part of it any longer).
|
|
104
|
-
* The key is token kind and the value is the number of occurrences.
|
|
105
|
-
*
|
|
106
|
-
* @var array<int|string, int<0, max>>
|
|
107
|
-
*/
|
|
108
|
-
private array $foundTokenKinds = [];
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @var null|list<NamespaceAnalysis>
|
|
112
|
-
*/
|
|
113
|
-
private ?array $namespaceDeclarations = null;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Clone tokens collection.
|
|
117
|
-
*/
|
|
118
|
-
public function __clone()
|
|
119
|
-
{
|
|
120
|
-
foreach ($this as $key => $val) {
|
|
121
|
-
$this[$key] = clone $val;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Clear cache - one position or all of them.
|
|
127
|
-
*
|
|
128
|
-
* @param null|non-empty-string $key position to clear, when null clear all
|
|
129
|
-
*/
|
|
130
|
-
public static function clearCache(?string $key = null): void
|
|
131
|
-
{
|
|
132
|
-
if (null === $key) {
|
|
133
|
-
self::$cache = [];
|
|
134
|
-
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
unset(self::$cache[$key]);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Detect type of block.
|
|
143
|
-
*
|
|
144
|
-
* @return null|array{type: self::BLOCK_TYPE_*, isStart: bool}
|
|
145
|
-
*/
|
|
146
|
-
public static function detectBlockType(Token $token): ?array
|
|
147
|
-
{
|
|
148
|
-
static $blockEdgeKinds = null;
|
|
149
|
-
|
|
150
|
-
if (null === $blockEdgeKinds) {
|
|
151
|
-
$blockEdgeKinds = [];
|
|
152
|
-
foreach (self::getBlockEdgeDefinitions() as $type => $definition) {
|
|
153
|
-
$blockEdgeKinds[
|
|
154
|
-
\is_string($definition['start']) ? $definition['start'] : $definition['start'][0]
|
|
155
|
-
] = ['type' => $type, 'isStart' => true];
|
|
156
|
-
$blockEdgeKinds[
|
|
157
|
-
\is_string($definition['end']) ? $definition['end'] : $definition['end'][0]
|
|
158
|
-
] = ['type' => $type, 'isStart' => false];
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// inlined extractTokenKind() call on the hot path
|
|
163
|
-
$tokenKind = $token->isArray() ? $token->getId() : $token->getContent();
|
|
164
|
-
|
|
165
|
-
return $blockEdgeKinds[$tokenKind] ?? null;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Create token collection from array.
|
|
170
|
-
*
|
|
171
|
-
* @param array<int, Token> $array the array to import
|
|
172
|
-
* @param ?bool $saveIndices save the numeric indices used in the original array, default is yes
|
|
173
|
-
*/
|
|
174
|
-
public static function fromArray($array, $saveIndices = null): self
|
|
175
|
-
{
|
|
176
|
-
$tokens = new self(\count($array));
|
|
177
|
-
|
|
178
|
-
if (false !== $saveIndices && !array_is_list($array)) {
|
|
179
|
-
Utils::triggerDeprecation(new \InvalidArgumentException(\sprintf(
|
|
180
|
-
'Parameter "array" should be a list. This will be enforced in version %d.0.',
|
|
181
|
-
Application::getMajorVersion() + 1
|
|
182
|
-
)));
|
|
183
|
-
|
|
184
|
-
foreach ($array as $key => $val) {
|
|
185
|
-
$tokens[$key] = $val;
|
|
186
|
-
}
|
|
187
|
-
} else {
|
|
188
|
-
$index = 0;
|
|
189
|
-
foreach ($array as $val) {
|
|
190
|
-
$tokens[$index++] = $val;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
$tokens->clearChanged();
|
|
195
|
-
$tokens->generateCode(); // ensure code hash is calculated, so it's registered in cache
|
|
196
|
-
|
|
197
|
-
return $tokens;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Create token collection directly from code.
|
|
202
|
-
*
|
|
203
|
-
* @param string $code PHP code
|
|
204
|
-
*/
|
|
205
|
-
public static function fromCode(string $code): self
|
|
206
|
-
{
|
|
207
|
-
$codeHash = self::calculateHash($code);
|
|
208
|
-
|
|
209
|
-
if (self::hasCache($codeHash)) {
|
|
210
|
-
$tokens = self::getCache($codeHash);
|
|
211
|
-
|
|
212
|
-
if ($codeHash === $tokens->codeHash) {
|
|
213
|
-
$tokens->clearEmptyTokens();
|
|
214
|
-
$tokens->clearChanged();
|
|
215
|
-
|
|
216
|
-
return $tokens;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
$tokens = new self();
|
|
221
|
-
$tokens->setCode($code);
|
|
222
|
-
$tokens->clearChanged();
|
|
223
|
-
|
|
224
|
-
return $tokens;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @return array<self::BLOCK_TYPE_*, array{start: array{int, string}|string, end: array{int, string}|string}>
|
|
229
|
-
*/
|
|
230
|
-
public static function getBlockEdgeDefinitions(): array
|
|
231
|
-
{
|
|
232
|
-
static $definitions = null;
|
|
233
|
-
if (null === $definitions) {
|
|
234
|
-
$definitions = [
|
|
235
|
-
self::BLOCK_TYPE_CURLY_BRACE => [
|
|
236
|
-
'start' => '{',
|
|
237
|
-
'end' => '}',
|
|
238
|
-
],
|
|
239
|
-
self::BLOCK_TYPE_PARENTHESIS_BRACE => [
|
|
240
|
-
'start' => '(',
|
|
241
|
-
'end' => ')',
|
|
242
|
-
],
|
|
243
|
-
self::BLOCK_TYPE_INDEX_SQUARE_BRACE => [
|
|
244
|
-
'start' => '[',
|
|
245
|
-
'end' => ']',
|
|
246
|
-
],
|
|
247
|
-
self::BLOCK_TYPE_ARRAY_SQUARE_BRACE => [
|
|
248
|
-
'start' => [CT::T_ARRAY_SQUARE_BRACE_OPEN, '['],
|
|
249
|
-
'end' => [CT::T_ARRAY_SQUARE_BRACE_CLOSE, ']'],
|
|
250
|
-
],
|
|
251
|
-
self::BLOCK_TYPE_DYNAMIC_PROP_BRACE => [
|
|
252
|
-
'start' => [CT::T_DYNAMIC_PROP_BRACE_OPEN, '{'],
|
|
253
|
-
'end' => [CT::T_DYNAMIC_PROP_BRACE_CLOSE, '}'],
|
|
254
|
-
],
|
|
255
|
-
self::BLOCK_TYPE_DYNAMIC_VAR_BRACE => [
|
|
256
|
-
'start' => [CT::T_DYNAMIC_VAR_BRACE_OPEN, '{'],
|
|
257
|
-
'end' => [CT::T_DYNAMIC_VAR_BRACE_CLOSE, '}'],
|
|
258
|
-
],
|
|
259
|
-
self::BLOCK_TYPE_ARRAY_INDEX_CURLY_BRACE => [
|
|
260
|
-
'start' => [CT::T_ARRAY_INDEX_CURLY_BRACE_OPEN, '{'],
|
|
261
|
-
'end' => [CT::T_ARRAY_INDEX_CURLY_BRACE_CLOSE, '}'],
|
|
262
|
-
],
|
|
263
|
-
self::BLOCK_TYPE_GROUP_IMPORT_BRACE => [
|
|
264
|
-
'start' => [CT::T_GROUP_IMPORT_BRACE_OPEN, '{'],
|
|
265
|
-
'end' => [CT::T_GROUP_IMPORT_BRACE_CLOSE, '}'],
|
|
266
|
-
],
|
|
267
|
-
self::BLOCK_TYPE_DESTRUCTURING_SQUARE_BRACE => [
|
|
268
|
-
'start' => [CT::T_DESTRUCTURING_SQUARE_BRACE_OPEN, '['],
|
|
269
|
-
'end' => [CT::T_DESTRUCTURING_SQUARE_BRACE_CLOSE, ']'],
|
|
270
|
-
],
|
|
271
|
-
self::BLOCK_TYPE_BRACE_CLASS_INSTANTIATION => [
|
|
272
|
-
'start' => [CT::T_BRACE_CLASS_INSTANTIATION_OPEN, '('],
|
|
273
|
-
'end' => [CT::T_BRACE_CLASS_INSTANTIATION_CLOSE, ')'],
|
|
274
|
-
],
|
|
275
|
-
self::BLOCK_TYPE_DISJUNCTIVE_NORMAL_FORM_TYPE_PARENTHESIS => [
|
|
276
|
-
'start' => [CT::T_DISJUNCTIVE_NORMAL_FORM_TYPE_PARENTHESIS_OPEN, '('],
|
|
277
|
-
'end' => [CT::T_DISJUNCTIVE_NORMAL_FORM_TYPE_PARENTHESIS_CLOSE, ')'],
|
|
278
|
-
],
|
|
279
|
-
self::BLOCK_TYPE_DYNAMIC_CLASS_CONSTANT_FETCH_CURLY_BRACE => [
|
|
280
|
-
'start' => [CT::T_DYNAMIC_CLASS_CONSTANT_FETCH_CURLY_BRACE_OPEN, '{'],
|
|
281
|
-
'end' => [CT::T_DYNAMIC_CLASS_CONSTANT_FETCH_CURLY_BRACE_CLOSE, '}'],
|
|
282
|
-
],
|
|
283
|
-
self::BLOCK_TYPE_COMPLEX_STRING_VARIABLE => [
|
|
284
|
-
'start' => [T_DOLLAR_OPEN_CURLY_BRACES, '${'],
|
|
285
|
-
'end' => [CT::T_DOLLAR_CLOSE_CURLY_BRACES, '}'],
|
|
286
|
-
],
|
|
287
|
-
self::BLOCK_TYPE_PROPERTY_HOOK => [
|
|
288
|
-
'start' => [CT::T_PROPERTY_HOOK_BRACE_OPEN, '{'],
|
|
289
|
-
'end' => [CT::T_PROPERTY_HOOK_BRACE_CLOSE, '}'],
|
|
290
|
-
],
|
|
291
|
-
];
|
|
292
|
-
|
|
293
|
-
// @TODO: drop condition when PHP 8.0+ is required
|
|
294
|
-
if (\defined('T_ATTRIBUTE')) {
|
|
295
|
-
$definitions[self::BLOCK_TYPE_ATTRIBUTE] = [
|
|
296
|
-
'start' => [T_ATTRIBUTE, '#['],
|
|
297
|
-
'end' => [CT::T_ATTRIBUTE_CLOSE, ']'],
|
|
298
|
-
];
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
return $definitions;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Set new size of collection.
|
|
307
|
-
*
|
|
308
|
-
* @param int $size
|
|
309
|
-
*/
|
|
310
|
-
#[\ReturnTypeWillChange]
|
|
311
|
-
public function setSize($size): bool
|
|
312
|
-
{
|
|
313
|
-
throw new \RuntimeException('Changing tokens collection size explicitly is not allowed.');
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Unset collection item.
|
|
318
|
-
*
|
|
319
|
-
* @param int $index
|
|
320
|
-
*/
|
|
321
|
-
public function offsetUnset($index): void
|
|
322
|
-
{
|
|
323
|
-
if (\count($this) - 1 !== $index) {
|
|
324
|
-
Utils::triggerDeprecation(new \InvalidArgumentException(\sprintf(
|
|
325
|
-
'Tokens should be a list - only the last index can be unset. This will be enforced in version %d.0.',
|
|
326
|
-
Application::getMajorVersion() + 1
|
|
327
|
-
)));
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
if (isset($this[$index])) {
|
|
331
|
-
if (isset($this->blockStartCache[$index])) {
|
|
332
|
-
unset($this->blockEndCache[$this->blockStartCache[$index]], $this->blockStartCache[$index]);
|
|
333
|
-
}
|
|
334
|
-
if (isset($this->blockEndCache[$index])) {
|
|
335
|
-
unset($this->blockStartCache[$this->blockEndCache[$index]], $this->blockEndCache[$index]);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
$this->unregisterFoundToken($this[$index]);
|
|
339
|
-
|
|
340
|
-
$this->changed = true;
|
|
341
|
-
$this->collectionHash = null;
|
|
342
|
-
self::clearCache($this->codeHash);
|
|
343
|
-
$this->codeHash = null;
|
|
344
|
-
$this->namespaceDeclarations = null;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
parent::offsetUnset($index);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Set collection item.
|
|
352
|
-
*
|
|
353
|
-
* Warning! `$newval` must not be typehinted to be compatible with `ArrayAccess::offsetSet` method.
|
|
354
|
-
*
|
|
355
|
-
* @param int $index
|
|
356
|
-
* @param Token $newval
|
|
357
|
-
*/
|
|
358
|
-
public function offsetSet($index, $newval): void
|
|
359
|
-
{
|
|
360
|
-
if (0 > $index || \count($this) <= $index) {
|
|
361
|
-
Utils::triggerDeprecation(new \InvalidArgumentException(\sprintf(
|
|
362
|
-
'Tokens should be a list - index must be within the existing range. This will be enforced in version %d.0.',
|
|
363
|
-
Application::getMajorVersion() + 1
|
|
364
|
-
)));
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
if (isset($this[$index])) {
|
|
368
|
-
if (isset($this->blockStartCache[$index])) {
|
|
369
|
-
unset($this->blockEndCache[$this->blockStartCache[$index]], $this->blockStartCache[$index]);
|
|
370
|
-
}
|
|
371
|
-
if (isset($this->blockEndCache[$index])) {
|
|
372
|
-
unset($this->blockStartCache[$this->blockEndCache[$index]], $this->blockEndCache[$index]);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
if (!isset($this[$index]) || !$this[$index]->equals($newval)) {
|
|
377
|
-
if (isset($this[$index])) {
|
|
378
|
-
$this->unregisterFoundToken($this[$index]);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
$this->changed = true;
|
|
382
|
-
$this->collectionHash = null;
|
|
383
|
-
self::clearCache($this->codeHash);
|
|
384
|
-
$this->codeHash = null;
|
|
385
|
-
$this->namespaceDeclarations = null;
|
|
386
|
-
|
|
387
|
-
$this->registerFoundToken($newval);
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
parent::offsetSet($index, $newval);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* Clear internal flag if collection was changed and flag for all collection's items.
|
|
395
|
-
*/
|
|
396
|
-
public function clearChanged(): void
|
|
397
|
-
{
|
|
398
|
-
$this->changed = false;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Clear empty tokens.
|
|
403
|
-
*
|
|
404
|
-
* Empty tokens can occur e.g. after calling clear on item of collection.
|
|
405
|
-
*/
|
|
406
|
-
public function clearEmptyTokens(): void
|
|
407
|
-
{
|
|
408
|
-
// no empty token found, therefore there is no need to override collection
|
|
409
|
-
if (!$this->isTokenKindFound('')) {
|
|
410
|
-
return;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
$limit = \count($this);
|
|
414
|
-
|
|
415
|
-
for ($index = 0; $index < $limit; ++$index) {
|
|
416
|
-
if ($this->isEmptyAt($index)) {
|
|
417
|
-
break;
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
for ($count = $index; $index < $limit; ++$index) {
|
|
422
|
-
if (!$this->isEmptyAt($index)) {
|
|
423
|
-
// use directly for speed, skip the register of token kinds found etc.
|
|
424
|
-
$buffer = $this[$count];
|
|
425
|
-
parent::offsetSet($count, $this[$index]);
|
|
426
|
-
parent::offsetSet($index, $buffer);
|
|
427
|
-
|
|
428
|
-
if (isset($this->blockStartCache[$index])) {
|
|
429
|
-
$otherEndIndex = $this->blockStartCache[$index];
|
|
430
|
-
unset($this->blockStartCache[$index]);
|
|
431
|
-
$this->blockStartCache[$count] = $otherEndIndex;
|
|
432
|
-
$this->blockEndCache[$otherEndIndex] = $count;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
if (isset($this->blockEndCache[$index])) {
|
|
436
|
-
$otherEndIndex = $this->blockEndCache[$index];
|
|
437
|
-
unset($this->blockEndCache[$index]);
|
|
438
|
-
$this->blockStartCache[$otherEndIndex] = $count;
|
|
439
|
-
$this->blockEndCache[$count] = $otherEndIndex;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
++$count;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
// we are moving the tokens, we need to clear the index-based Cache
|
|
447
|
-
$this->namespaceDeclarations = null;
|
|
448
|
-
$this->foundTokenKinds[''] = 0;
|
|
449
|
-
|
|
450
|
-
$this->collectionHash = null;
|
|
451
|
-
|
|
452
|
-
$this->updateSizeByTrimmingTrailingEmptyTokens();
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* Ensure that on given index is a whitespace with given kind.
|
|
457
|
-
*
|
|
458
|
-
* If there is a whitespace then it's content will be modified.
|
|
459
|
-
* If not - the new Token will be added.
|
|
460
|
-
*
|
|
461
|
-
* @param int $index index
|
|
462
|
-
* @param int $indexOffset index offset for Token insertion
|
|
463
|
-
* @param string $whitespace whitespace to set
|
|
464
|
-
*
|
|
465
|
-
* @return bool if new Token was added
|
|
466
|
-
*/
|
|
467
|
-
public function ensureWhitespaceAtIndex(int $index, int $indexOffset, string $whitespace): bool
|
|
468
|
-
{
|
|
469
|
-
$removeLastCommentLine = static function (self $tokens, int $index, int $indexOffset, string $whitespace): string {
|
|
470
|
-
$token = $tokens[$index];
|
|
471
|
-
|
|
472
|
-
if (1 === $indexOffset && $token->isGivenKind(T_OPEN_TAG)) {
|
|
473
|
-
if (str_starts_with($whitespace, "\r\n")) {
|
|
474
|
-
$tokens[$index] = new Token([T_OPEN_TAG, rtrim($token->getContent())."\r\n"]);
|
|
475
|
-
|
|
476
|
-
return \strlen($whitespace) > 2 // @TODO: can be removed on PHP 8; https://php.net/manual/en/function.substr.php
|
|
477
|
-
? substr($whitespace, 2)
|
|
478
|
-
: '';
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
$tokens[$index] = new Token([T_OPEN_TAG, rtrim($token->getContent()).$whitespace[0]]);
|
|
482
|
-
|
|
483
|
-
return \strlen($whitespace) > 1 // @TODO: can be removed on PHP 8; https://php.net/manual/en/function.substr.php
|
|
484
|
-
? substr($whitespace, 1)
|
|
485
|
-
: '';
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
return $whitespace;
|
|
489
|
-
};
|
|
490
|
-
|
|
491
|
-
if ($this[$index]->isWhitespace()) {
|
|
492
|
-
$whitespace = $removeLastCommentLine($this, $index - 1, $indexOffset, $whitespace);
|
|
493
|
-
|
|
494
|
-
if ('' === $whitespace) {
|
|
495
|
-
$this->clearAt($index);
|
|
496
|
-
} else {
|
|
497
|
-
$this[$index] = new Token([T_WHITESPACE, $whitespace]);
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
return false;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
$whitespace = $removeLastCommentLine($this, $index, $indexOffset, $whitespace);
|
|
504
|
-
|
|
505
|
-
if ('' === $whitespace) {
|
|
506
|
-
return false;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
$this->insertAt(
|
|
510
|
-
$index + $indexOffset,
|
|
511
|
-
[new Token([T_WHITESPACE, $whitespace])]
|
|
512
|
-
);
|
|
513
|
-
|
|
514
|
-
return true;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* @param self::BLOCK_TYPE_* $type type of block
|
|
519
|
-
* @param int $searchIndex index of opening brace
|
|
520
|
-
*
|
|
521
|
-
* @return int<0, max> index of closing brace
|
|
522
|
-
*/
|
|
523
|
-
public function findBlockEnd(int $type, int $searchIndex): int
|
|
524
|
-
{
|
|
525
|
-
return $this->findOppositeBlockEdge($type, $searchIndex, true);
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* @param self::BLOCK_TYPE_* $type type of block
|
|
530
|
-
* @param int $searchIndex index of closing brace
|
|
531
|
-
*
|
|
532
|
-
* @return int<0, max> index of opening brace
|
|
533
|
-
*/
|
|
534
|
-
public function findBlockStart(int $type, int $searchIndex): int
|
|
535
|
-
{
|
|
536
|
-
return $this->findOppositeBlockEdge($type, $searchIndex, false);
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* @param int|non-empty-list<int> $possibleKind kind or array of kinds
|
|
541
|
-
* @param int $start optional offset
|
|
542
|
-
* @param null|int $end optional limit
|
|
543
|
-
*
|
|
544
|
-
* @return ($possibleKind is int ? array<int<0, max>, Token> : array<int, array<int<0, max>, Token>>)
|
|
545
|
-
*/
|
|
546
|
-
public function findGivenKind($possibleKind, int $start = 0, ?int $end = null): array
|
|
547
|
-
{
|
|
548
|
-
if (null === $end) {
|
|
549
|
-
$end = \count($this);
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
$elements = [];
|
|
553
|
-
$possibleKinds = (array) $possibleKind;
|
|
554
|
-
|
|
555
|
-
foreach ($possibleKinds as $kind) {
|
|
556
|
-
$elements[$kind] = [];
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
$possibleKinds = array_filter($possibleKinds, fn ($kind): bool => $this->isTokenKindFound($kind));
|
|
560
|
-
|
|
561
|
-
if (\count($possibleKinds) > 0) {
|
|
562
|
-
for ($i = $start; $i < $end; ++$i) {
|
|
563
|
-
$token = $this[$i];
|
|
564
|
-
if ($token->isGivenKind($possibleKinds)) {
|
|
565
|
-
$elements[$token->getId()][$i] = $token;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
return \is_array($possibleKind) ? $elements : $elements[$possibleKind];
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
public function generateCode(): string
|
|
574
|
-
{
|
|
575
|
-
$code = $this->generatePartialCode(0, \count($this) - 1);
|
|
576
|
-
if (null === $this->codeHash) {
|
|
577
|
-
$this->changeCodeHash(self::calculateHash($code)); // ensure code hash is calculated, so it's registered in cache
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
return $code;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* Generate code from tokens between given indices.
|
|
585
|
-
*
|
|
586
|
-
* @param int $start start index
|
|
587
|
-
* @param int $end end index
|
|
588
|
-
*/
|
|
589
|
-
public function generatePartialCode(int $start, int $end): string
|
|
590
|
-
{
|
|
591
|
-
$code = '';
|
|
592
|
-
|
|
593
|
-
for ($i = $start; $i <= $end; ++$i) {
|
|
594
|
-
$code .= $this[$i]->getContent();
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
return $code;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* Get hash of code.
|
|
602
|
-
*/
|
|
603
|
-
public function getCodeHash(): string
|
|
604
|
-
{
|
|
605
|
-
if (null === $this->codeHash) {
|
|
606
|
-
$code = $this->generatePartialCode(0, \count($this) - 1);
|
|
607
|
-
$this->changeCodeHash(self::calculateHash($code)); // ensure code hash is calculated, so it's registered in cache
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
return $this->codeHash;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
/**
|
|
614
|
-
* @return non-empty-string
|
|
615
|
-
*
|
|
616
|
-
* @internal
|
|
617
|
-
*/
|
|
618
|
-
public function getCollectionHash(): string
|
|
619
|
-
{
|
|
620
|
-
if (null === $this->collectionHash) {
|
|
621
|
-
$this->collectionHash = self::calculateHash(
|
|
622
|
-
$this->getCodeHash()
|
|
623
|
-
.'#'
|
|
624
|
-
.\count($this)
|
|
625
|
-
.'#'
|
|
626
|
-
.implode(
|
|
627
|
-
'',
|
|
628
|
-
array_map(static fn (?Token $token): ?int => null !== $token ? $token->getId() : null, $this->toArray())
|
|
629
|
-
)
|
|
630
|
-
);
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
return $this->collectionHash;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
/**
|
|
637
|
-
* Get index for closest next token which is non whitespace.
|
|
638
|
-
*
|
|
639
|
-
* This method is shorthand for getNonWhitespaceSibling method.
|
|
640
|
-
*
|
|
641
|
-
* @param int $index token index
|
|
642
|
-
* @param null|string $whitespaces whitespaces characters for Token::isWhitespace
|
|
643
|
-
*/
|
|
644
|
-
public function getNextNonWhitespace(int $index, ?string $whitespaces = null): ?int
|
|
645
|
-
{
|
|
646
|
-
return $this->getNonWhitespaceSibling($index, 1, $whitespaces);
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* Get index for closest next token of given kind.
|
|
651
|
-
*
|
|
652
|
-
* This method is shorthand for getTokenOfKindSibling method.
|
|
653
|
-
*
|
|
654
|
-
* @param int $index token index
|
|
655
|
-
* @param list<array{int}|string|Token> $tokens possible tokens
|
|
656
|
-
* @param bool $caseSensitive perform a case sensitive comparison
|
|
657
|
-
*/
|
|
658
|
-
public function getNextTokenOfKind(int $index, array $tokens = [], bool $caseSensitive = true): ?int
|
|
659
|
-
{
|
|
660
|
-
return $this->getTokenOfKindSibling($index, 1, $tokens, $caseSensitive);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* Get index for closest sibling token which is non whitespace.
|
|
665
|
-
*
|
|
666
|
-
* @param int $index token index
|
|
667
|
-
* @param -1|1 $direction
|
|
668
|
-
* @param null|string $whitespaces whitespaces characters for Token::isWhitespace
|
|
669
|
-
*/
|
|
670
|
-
public function getNonWhitespaceSibling(int $index, int $direction, ?string $whitespaces = null): ?int
|
|
671
|
-
{
|
|
672
|
-
while (true) {
|
|
673
|
-
$index += $direction;
|
|
674
|
-
if (!$this->offsetExists($index)) {
|
|
675
|
-
return null;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
if (!$this[$index]->isWhitespace($whitespaces)) {
|
|
679
|
-
return $index;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
* Get index for closest previous token which is non whitespace.
|
|
686
|
-
*
|
|
687
|
-
* This method is shorthand for getNonWhitespaceSibling method.
|
|
688
|
-
*
|
|
689
|
-
* @param int $index token index
|
|
690
|
-
* @param null|string $whitespaces whitespaces characters for Token::isWhitespace
|
|
691
|
-
*/
|
|
692
|
-
public function getPrevNonWhitespace(int $index, ?string $whitespaces = null): ?int
|
|
693
|
-
{
|
|
694
|
-
return $this->getNonWhitespaceSibling($index, -1, $whitespaces);
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
/**
|
|
698
|
-
* Get index for closest previous token of given kind.
|
|
699
|
-
* This method is shorthand for getTokenOfKindSibling method.
|
|
700
|
-
*
|
|
701
|
-
* @param int $index token index
|
|
702
|
-
* @param list<array{int}|string|Token> $tokens possible tokens
|
|
703
|
-
* @param bool $caseSensitive perform a case sensitive comparison
|
|
704
|
-
*/
|
|
705
|
-
public function getPrevTokenOfKind(int $index, array $tokens = [], bool $caseSensitive = true): ?int
|
|
706
|
-
{
|
|
707
|
-
return $this->getTokenOfKindSibling($index, -1, $tokens, $caseSensitive);
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* Get index for closest sibling token of given kind.
|
|
712
|
-
*
|
|
713
|
-
* @param int $index token index
|
|
714
|
-
* @param -1|1 $direction
|
|
715
|
-
* @param list<array{int}|string|Token> $tokens possible tokens
|
|
716
|
-
* @param bool $caseSensitive perform a case sensitive comparison
|
|
717
|
-
*/
|
|
718
|
-
public function getTokenOfKindSibling(int $index, int $direction, array $tokens = [], bool $caseSensitive = true): ?int
|
|
719
|
-
{
|
|
720
|
-
$tokens = array_filter($tokens, fn ($token): bool => $this->isTokenKindFound($this->extractTokenKind($token)));
|
|
721
|
-
|
|
722
|
-
if (0 === \count($tokens)) {
|
|
723
|
-
return null;
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
while (true) {
|
|
727
|
-
$index += $direction;
|
|
728
|
-
if (!$this->offsetExists($index)) {
|
|
729
|
-
return null;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
if ($this[$index]->equalsAny($tokens, $caseSensitive)) {
|
|
733
|
-
return $index;
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* Get index for closest sibling token not of given kind.
|
|
740
|
-
*
|
|
741
|
-
* @param int $index token index
|
|
742
|
-
* @param -1|1 $direction
|
|
743
|
-
* @param list<array{int}|string|Token> $tokens possible tokens
|
|
744
|
-
*/
|
|
745
|
-
public function getTokenNotOfKindSibling(int $index, int $direction, array $tokens = []): ?int
|
|
746
|
-
{
|
|
747
|
-
return $this->getTokenNotOfKind(
|
|
748
|
-
$index,
|
|
749
|
-
$direction,
|
|
750
|
-
fn (int $a): bool => $this[$a]->equalsAny($tokens),
|
|
751
|
-
);
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
/**
|
|
755
|
-
* Get index for closest sibling token not of given kind.
|
|
756
|
-
*
|
|
757
|
-
* @param int $index token index
|
|
758
|
-
* @param -1|1 $direction
|
|
759
|
-
* @param list<int> $kinds possible tokens kinds
|
|
760
|
-
*/
|
|
761
|
-
public function getTokenNotOfKindsSibling(int $index, int $direction, array $kinds = []): ?int
|
|
762
|
-
{
|
|
763
|
-
return $this->getTokenNotOfKind(
|
|
764
|
-
$index,
|
|
765
|
-
$direction,
|
|
766
|
-
fn (int $index): bool => $this[$index]->isGivenKind($kinds),
|
|
767
|
-
);
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* Get index for closest sibling token that is not a whitespace, comment or attribute.
|
|
772
|
-
*
|
|
773
|
-
* @param int $index token index
|
|
774
|
-
* @param -1|1 $direction
|
|
775
|
-
*/
|
|
776
|
-
public function getMeaningfulTokenSibling(int $index, int $direction): ?int
|
|
777
|
-
{
|
|
778
|
-
return $this->getTokenNotOfKindsSibling(
|
|
779
|
-
$index,
|
|
780
|
-
$direction,
|
|
781
|
-
[T_WHITESPACE, T_COMMENT, T_DOC_COMMENT]
|
|
782
|
-
);
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* Get index for closest sibling token which is not empty.
|
|
787
|
-
*
|
|
788
|
-
* @param int $index token index
|
|
789
|
-
* @param -1|1 $direction
|
|
790
|
-
*/
|
|
791
|
-
public function getNonEmptySibling(int $index, int $direction): ?int
|
|
792
|
-
{
|
|
793
|
-
while (true) {
|
|
794
|
-
$index += $direction;
|
|
795
|
-
if (!$this->offsetExists($index)) {
|
|
796
|
-
return null;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
if (!$this->isEmptyAt($index)) {
|
|
800
|
-
return $index;
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
/**
|
|
806
|
-
* Get index for closest next token that is not a whitespace or comment.
|
|
807
|
-
*
|
|
808
|
-
* @param int $index token index
|
|
809
|
-
*/
|
|
810
|
-
public function getNextMeaningfulToken(int $index): ?int
|
|
811
|
-
{
|
|
812
|
-
return $this->getMeaningfulTokenSibling($index, 1);
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* Get index for closest previous token that is not a whitespace or comment.
|
|
817
|
-
*
|
|
818
|
-
* @param int $index token index
|
|
819
|
-
*/
|
|
820
|
-
public function getPrevMeaningfulToken(int $index): ?int
|
|
821
|
-
{
|
|
822
|
-
return $this->getMeaningfulTokenSibling($index, -1);
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* Find a sequence of meaningful tokens and returns the array of their locations.
|
|
827
|
-
*
|
|
828
|
-
* @param non-empty-list<array{0: int, 1?: string}|string|Token> $sequence an array of token (kinds)
|
|
829
|
-
* @param int $start start index, defaulting to the start of the file
|
|
830
|
-
* @param null|int $end end index, defaulting to the end of the file
|
|
831
|
-
* @param array<int, bool>|bool $caseSensitive global case sensitiveness or a list of booleans, whose keys should match
|
|
832
|
-
* the ones used in $sequence. If any is missing, the default case-sensitive
|
|
833
|
-
* comparison is used
|
|
834
|
-
*
|
|
835
|
-
* @return null|non-empty-array<int<0, max>, Token> an array containing the tokens matching the sequence elements, indexed by their position
|
|
836
|
-
*/
|
|
837
|
-
public function findSequence(array $sequence, int $start = 0, ?int $end = null, $caseSensitive = true): ?array
|
|
838
|
-
{
|
|
839
|
-
$sequenceCount = \count($sequence);
|
|
840
|
-
if (0 === $sequenceCount) {
|
|
841
|
-
throw new \InvalidArgumentException('Invalid sequence.');
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
// $end defaults to the end of the collection
|
|
845
|
-
$end = null === $end ? \count($this) - 1 : min($end, \count($this) - 1);
|
|
846
|
-
|
|
847
|
-
if ($start + $sequenceCount - 1 > $end) {
|
|
848
|
-
return null;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
$nonMeaningFullKind = [T_COMMENT, T_DOC_COMMENT, T_WHITESPACE];
|
|
852
|
-
|
|
853
|
-
// make sure the sequence content is "meaningful"
|
|
854
|
-
foreach ($sequence as $key => $token) {
|
|
855
|
-
// if not a Token instance already, we convert it to verify the meaningfulness
|
|
856
|
-
if (!$token instanceof Token) {
|
|
857
|
-
if (\is_array($token) && !isset($token[1])) {
|
|
858
|
-
// fake some content as it is required by the Token constructor,
|
|
859
|
-
// although optional for search purposes
|
|
860
|
-
$token[1] = 'DUMMY';
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
$token = new Token($token);
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
if ($token->isGivenKind($nonMeaningFullKind)) {
|
|
867
|
-
throw new \InvalidArgumentException(\sprintf('Non-meaningful token at position: "%s".', $key));
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
if ('' === $token->getContent()) {
|
|
871
|
-
throw new \InvalidArgumentException(\sprintf('Non-meaningful (empty) token at position: "%s".', $key));
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
foreach ($sequence as $token) {
|
|
876
|
-
if (!$this->isTokenKindFound($this->extractTokenKind($token))) {
|
|
877
|
-
return null;
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
// remove the first token from the sequence, so we can freely iterate through the sequence after a match to
|
|
882
|
-
// the first one is found
|
|
883
|
-
$firstKey = array_key_first($sequence);
|
|
884
|
-
$firstCs = self::isKeyCaseSensitive($caseSensitive, $firstKey);
|
|
885
|
-
$firstToken = $sequence[$firstKey];
|
|
886
|
-
unset($sequence[$firstKey]);
|
|
887
|
-
|
|
888
|
-
// begin searching for the first token in the sequence (start included)
|
|
889
|
-
$index = $start - 1;
|
|
890
|
-
while ($index <= $end) {
|
|
891
|
-
$index = $this->getNextTokenOfKind($index, [$firstToken], $firstCs);
|
|
892
|
-
|
|
893
|
-
// ensure we found a match and didn't get past the end index
|
|
894
|
-
if (null === $index || $index > $end) {
|
|
895
|
-
return null;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
// initialise the result array with the current index
|
|
899
|
-
$result = [$index => $this[$index]];
|
|
900
|
-
|
|
901
|
-
// advance cursor to the current position
|
|
902
|
-
$currIdx = $index;
|
|
903
|
-
|
|
904
|
-
// iterate through the remaining tokens in the sequence
|
|
905
|
-
foreach ($sequence as $key => $token) {
|
|
906
|
-
$currIdx = $this->getNextMeaningfulToken($currIdx);
|
|
907
|
-
|
|
908
|
-
// ensure we didn't go too far
|
|
909
|
-
if (null === $currIdx || $currIdx > $end) {
|
|
910
|
-
return null;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
if (!$this[$currIdx]->equals($token, self::isKeyCaseSensitive($caseSensitive, $key))) {
|
|
914
|
-
// not a match, restart the outer loop
|
|
915
|
-
continue 2;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
// append index to the result array
|
|
919
|
-
$result[$currIdx] = $this[$currIdx];
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
// do we have a complete match?
|
|
923
|
-
// hint: $result is bigger than $sequence since the first token has been removed from the latter
|
|
924
|
-
if (\count($sequence) < \count($result)) {
|
|
925
|
-
return $result;
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
return null;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
/**
|
|
933
|
-
* Insert instances of Token inside collection.
|
|
934
|
-
*
|
|
935
|
-
* @param int $index start inserting index
|
|
936
|
-
* @param list<Token>|Token|Tokens $items instances of Token to insert
|
|
937
|
-
*/
|
|
938
|
-
public function insertAt(int $index, $items): void
|
|
939
|
-
{
|
|
940
|
-
$this->insertSlices([$index => $items]);
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
/**
|
|
944
|
-
* Insert a slices or individual Tokens into multiple places in a single run.
|
|
945
|
-
*
|
|
946
|
-
* This approach is kind-of an experiment - it's proven to improve performance a lot for big files that needs plenty of new tickets to be inserted,
|
|
947
|
-
* like edge case example of 3.7h vs 4s (https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/3996#issuecomment-455617637),
|
|
948
|
-
* yet at same time changing a logic of fixers in not-always easy way.
|
|
949
|
-
*
|
|
950
|
-
* To be discussed:
|
|
951
|
-
* - should we always aim to use this method?
|
|
952
|
-
* - should we deprecate `insertAt` method ?
|
|
953
|
-
*
|
|
954
|
-
* The `$slices` parameter is an assoc array, in which:
|
|
955
|
-
* - index: starting point for inserting of individual slice, with indices being relatives to original array collection before any Token inserted
|
|
956
|
-
* - value under index: a slice of Tokens to be inserted
|
|
957
|
-
*
|
|
958
|
-
* @internal
|
|
959
|
-
*
|
|
960
|
-
* @param array<int, list<Token>|Token|Tokens> $slices
|
|
961
|
-
*/
|
|
962
|
-
public function insertSlices(array $slices): void
|
|
963
|
-
{
|
|
964
|
-
$itemsCount = 0;
|
|
965
|
-
|
|
966
|
-
foreach ($slices as $slice) {
|
|
967
|
-
$itemsCount += \is_array($slice) || $slice instanceof self ? \count($slice) : 1;
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
if (0 === $itemsCount) {
|
|
971
|
-
return;
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
$this->changed = true;
|
|
975
|
-
$this->collectionHash = null;
|
|
976
|
-
self::clearCache($this->codeHash);
|
|
977
|
-
$this->codeHash = null;
|
|
978
|
-
$this->namespaceDeclarations = null;
|
|
979
|
-
$this->blockStartCache = [];
|
|
980
|
-
$this->blockEndCache = [];
|
|
981
|
-
|
|
982
|
-
$oldSize = \count($this);
|
|
983
|
-
$this->updateSizeByIncreasingToNewSize($oldSize + $itemsCount);
|
|
984
|
-
|
|
985
|
-
krsort($slices);
|
|
986
|
-
$farthestSliceIndex = array_key_first($slices);
|
|
987
|
-
|
|
988
|
-
// We check only the farthest index, if it's within the size of collection, other indices will be valid too.
|
|
989
|
-
if (!\is_int($farthestSliceIndex) || $farthestSliceIndex > $oldSize) {
|
|
990
|
-
throw new \OutOfBoundsException(\sprintf('Cannot insert index "%s" outside of collection.', $farthestSliceIndex));
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
$previousSliceIndex = $oldSize;
|
|
994
|
-
|
|
995
|
-
// since we only move already existing items around, we directly call into SplFixedArray::offset* methods.
|
|
996
|
-
// that way we get around additional overhead this class adds with overridden offset* methods.
|
|
997
|
-
foreach ($slices as $index => $slice) {
|
|
998
|
-
if (!\is_int($index) || $index < 0) {
|
|
999
|
-
throw new \OutOfBoundsException(\sprintf('Invalid index "%s".', $index));
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
$slice = \is_array($slice) || $slice instanceof self ? $slice : [$slice];
|
|
1003
|
-
$sliceCount = \count($slice);
|
|
1004
|
-
|
|
1005
|
-
for ($i = $previousSliceIndex - 1; $i >= $index; --$i) {
|
|
1006
|
-
parent::offsetSet($i + $itemsCount, $this[$i]);
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
$previousSliceIndex = $index;
|
|
1010
|
-
$itemsCount -= $sliceCount;
|
|
1011
|
-
|
|
1012
|
-
foreach ($slice as $indexItem => $item) {
|
|
1013
|
-
if ('' === $item->getContent()) {
|
|
1014
|
-
throw new \InvalidArgumentException('Must not add empty token to collection.');
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
$this->registerFoundToken($item);
|
|
1018
|
-
|
|
1019
|
-
parent::offsetSet($index + $itemsCount + $indexItem, $item);
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
/**
|
|
1025
|
-
* Check if collection was change: collection itself (like insert new tokens) or any of collection's elements.
|
|
1026
|
-
*/
|
|
1027
|
-
public function isChanged(): bool
|
|
1028
|
-
{
|
|
1029
|
-
return $this->changed;
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
public function isEmptyAt(int $index): bool
|
|
1033
|
-
{
|
|
1034
|
-
$token = $this[$index];
|
|
1035
|
-
|
|
1036
|
-
return null === $token->getId() && '' === $token->getContent();
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
public function clearAt(int $index): void
|
|
1040
|
-
{
|
|
1041
|
-
$this[$index] = new Token('');
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
/**
|
|
1045
|
-
* Override tokens at given range.
|
|
1046
|
-
*
|
|
1047
|
-
* @param int $indexStart start overriding index
|
|
1048
|
-
* @param int $indexEnd end overriding index
|
|
1049
|
-
* @param array<int, Token>|Tokens $items tokens to insert
|
|
1050
|
-
*/
|
|
1051
|
-
public function overrideRange(int $indexStart, int $indexEnd, iterable $items): void
|
|
1052
|
-
{
|
|
1053
|
-
$indexToChange = $indexEnd - $indexStart + 1;
|
|
1054
|
-
$itemsCount = \count($items);
|
|
1055
|
-
|
|
1056
|
-
// If we want to add more items than passed range contains we need to
|
|
1057
|
-
// add placeholders for overhead items.
|
|
1058
|
-
if ($itemsCount > $indexToChange) {
|
|
1059
|
-
$placeholders = [];
|
|
1060
|
-
|
|
1061
|
-
while ($itemsCount > $indexToChange) {
|
|
1062
|
-
$placeholders[] = new Token('__PLACEHOLDER__');
|
|
1063
|
-
++$indexToChange;
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
$this->insertAt($indexEnd + 1, $placeholders);
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
// Override each items.
|
|
1070
|
-
foreach ($items as $itemIndex => $item) {
|
|
1071
|
-
$this[$indexStart + $itemIndex] = $item;
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
// If we want to add fewer tokens than passed range contains then clear
|
|
1075
|
-
// not needed tokens.
|
|
1076
|
-
if ($itemsCount < $indexToChange) {
|
|
1077
|
-
$this->clearRange($indexStart + $itemsCount, $indexEnd);
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
/**
|
|
1082
|
-
* @param null|string $whitespaces optional whitespaces characters for Token::isWhitespace
|
|
1083
|
-
*/
|
|
1084
|
-
public function removeLeadingWhitespace(int $index, ?string $whitespaces = null): void
|
|
1085
|
-
{
|
|
1086
|
-
$this->removeWhitespaceSafely($index, -1, $whitespaces);
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
/**
|
|
1090
|
-
* @param null|string $whitespaces optional whitespaces characters for Token::isWhitespace
|
|
1091
|
-
*/
|
|
1092
|
-
public function removeTrailingWhitespace(int $index, ?string $whitespaces = null): void
|
|
1093
|
-
{
|
|
1094
|
-
$this->removeWhitespaceSafely($index, 1, $whitespaces);
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
/**
|
|
1098
|
-
* Set code. Clear all current content and replace it by new Token items generated from code directly.
|
|
1099
|
-
*
|
|
1100
|
-
* @param string $code PHP code
|
|
1101
|
-
*/
|
|
1102
|
-
public function setCode(string $code): void
|
|
1103
|
-
{
|
|
1104
|
-
// No need to work when the code is the same.
|
|
1105
|
-
// That is how we avoid a lot of work and setting changed flag.
|
|
1106
|
-
if ($code === $this->generateCode()) {
|
|
1107
|
-
return;
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
$this->updateSizeToZero(); // clear memory
|
|
1111
|
-
$tokens = token_get_all($code, TOKEN_PARSE);
|
|
1112
|
-
$this->updateSizeByIncreasingToNewSize(\count($tokens)); // pre-allocate collection size
|
|
1113
|
-
|
|
1114
|
-
foreach ($tokens as $index => $token) {
|
|
1115
|
-
$this[$index] = new Token($token);
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
$this->applyTransformers();
|
|
1119
|
-
|
|
1120
|
-
if (\PHP_VERSION_ID < 8_00_00) {
|
|
1121
|
-
$this->rewind();
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
$this->changed = true;
|
|
1125
|
-
$this->collectionHash = null;
|
|
1126
|
-
self::clearCache($this->codeHash);
|
|
1127
|
-
$this->codeHash = null;
|
|
1128
|
-
$this->namespaceDeclarations = null;
|
|
1129
|
-
$this->blockStartCache = [];
|
|
1130
|
-
$this->blockEndCache = [];
|
|
1131
|
-
|
|
1132
|
-
$this->changeCodeHash(self::calculateHash($code)); // ensure code hash is calculated, so it's registered in cache
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
public function toJson(): string
|
|
1136
|
-
{
|
|
1137
|
-
$output = new \SplFixedArray(\count($this));
|
|
1138
|
-
|
|
1139
|
-
foreach ($this as $index => $token) {
|
|
1140
|
-
$output[$index] = $token->toArray();
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
if (\PHP_VERSION_ID < 8_00_00) {
|
|
1144
|
-
$this->rewind();
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
return json_encode($output, JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT | JSON_NUMERIC_CHECK);
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
/**
|
|
1151
|
-
* Check if all token kinds given as argument are found.
|
|
1152
|
-
*
|
|
1153
|
-
* @param list<int|string> $tokenKinds
|
|
1154
|
-
*/
|
|
1155
|
-
public function isAllTokenKindsFound(array $tokenKinds): bool
|
|
1156
|
-
{
|
|
1157
|
-
foreach ($tokenKinds as $tokenKind) {
|
|
1158
|
-
if (0 === ($this->foundTokenKinds[$tokenKind] ?? 0)) {
|
|
1159
|
-
return false;
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
return true;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
/**
|
|
1167
|
-
* Check if any token kind given as argument is found.
|
|
1168
|
-
*
|
|
1169
|
-
* @param list<int|string> $tokenKinds
|
|
1170
|
-
*/
|
|
1171
|
-
public function isAnyTokenKindsFound(array $tokenKinds): bool
|
|
1172
|
-
{
|
|
1173
|
-
foreach ($tokenKinds as $tokenKind) {
|
|
1174
|
-
if (0 !== ($this->foundTokenKinds[$tokenKind] ?? 0)) {
|
|
1175
|
-
return true;
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
return false;
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
* Check if token kind given as argument is found.
|
|
1184
|
-
*
|
|
1185
|
-
* @param int|string $tokenKind
|
|
1186
|
-
*/
|
|
1187
|
-
public function isTokenKindFound($tokenKind): bool
|
|
1188
|
-
{
|
|
1189
|
-
return 0 !== ($this->foundTokenKinds[$tokenKind] ?? 0);
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
/**
|
|
1193
|
-
* @param int|string $tokenKind
|
|
1194
|
-
*/
|
|
1195
|
-
public function countTokenKind($tokenKind): int
|
|
1196
|
-
{
|
|
1197
|
-
return $this->foundTokenKinds[$tokenKind] ?? 0;
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
/**
|
|
1201
|
-
* Clear tokens in the given range.
|
|
1202
|
-
*/
|
|
1203
|
-
public function clearRange(int $indexStart, int $indexEnd): void
|
|
1204
|
-
{
|
|
1205
|
-
for ($i = $indexStart; $i <= $indexEnd; ++$i) {
|
|
1206
|
-
$this->clearAt($i);
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
/**
|
|
1211
|
-
* Checks for monolithic PHP code.
|
|
1212
|
-
*
|
|
1213
|
-
* Checks that the code is pure PHP code, in a single code block, starting
|
|
1214
|
-
* with an open tag.
|
|
1215
|
-
*/
|
|
1216
|
-
public function isMonolithicPhp(): bool
|
|
1217
|
-
{
|
|
1218
|
-
if (1 !== ($this->countTokenKind(T_OPEN_TAG) + $this->countTokenKind(T_OPEN_TAG_WITH_ECHO))) {
|
|
1219
|
-
return false;
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
return 0 === $this->countTokenKind(T_INLINE_HTML)
|
|
1223
|
-
|| (1 === $this->countTokenKind(T_INLINE_HTML) && Preg::match('/^#!.+$/', $this[0]->getContent()));
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
/**
|
|
1227
|
-
* @param int $start start index
|
|
1228
|
-
* @param int $end end index
|
|
1229
|
-
*/
|
|
1230
|
-
public function isPartialCodeMultiline(int $start, int $end): bool
|
|
1231
|
-
{
|
|
1232
|
-
for ($i = $start; $i <= $end; ++$i) {
|
|
1233
|
-
if (str_contains($this[$i]->getContent(), "\n")) {
|
|
1234
|
-
return true;
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
return false;
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
public function hasAlternativeSyntax(): bool
|
|
1242
|
-
{
|
|
1243
|
-
return $this->isAnyTokenKindsFound([
|
|
1244
|
-
T_ENDDECLARE,
|
|
1245
|
-
T_ENDFOR,
|
|
1246
|
-
T_ENDFOREACH,
|
|
1247
|
-
T_ENDIF,
|
|
1248
|
-
T_ENDSWITCH,
|
|
1249
|
-
T_ENDWHILE,
|
|
1250
|
-
]);
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
public function clearTokenAndMergeSurroundingWhitespace(int $index): void
|
|
1254
|
-
{
|
|
1255
|
-
$count = \count($this);
|
|
1256
|
-
$this->clearAt($index);
|
|
1257
|
-
|
|
1258
|
-
if ($index === $count - 1) {
|
|
1259
|
-
return;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
$nextIndex = $this->getNonEmptySibling($index, 1);
|
|
1263
|
-
|
|
1264
|
-
if (null === $nextIndex || !$this[$nextIndex]->isWhitespace()) {
|
|
1265
|
-
return;
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
$prevIndex = $this->getNonEmptySibling($index, -1);
|
|
1269
|
-
|
|
1270
|
-
if ($this[$prevIndex]->isWhitespace()) {
|
|
1271
|
-
$this[$prevIndex] = new Token([T_WHITESPACE, $this[$prevIndex]->getContent().$this[$nextIndex]->getContent()]);
|
|
1272
|
-
} elseif ($this->isEmptyAt($prevIndex + 1)) {
|
|
1273
|
-
$this[$prevIndex + 1] = new Token([T_WHITESPACE, $this[$nextIndex]->getContent()]);
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
$this->clearAt($nextIndex);
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
/**
|
|
1280
|
-
* @internal This is performance-related workaround for lack of proper DI, may be removed at some point
|
|
1281
|
-
*
|
|
1282
|
-
* @return list<NamespaceAnalysis>
|
|
1283
|
-
*/
|
|
1284
|
-
public function getNamespaceDeclarations(): array
|
|
1285
|
-
{
|
|
1286
|
-
if (null === $this->namespaceDeclarations) {
|
|
1287
|
-
$this->namespaceDeclarations = (new NamespacesAnalyzer())->getDeclarations($this);
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
return $this->namespaceDeclarations;
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
/**
|
|
1294
|
-
* @internal
|
|
1295
|
-
*/
|
|
1296
|
-
protected function applyTransformers(): void
|
|
1297
|
-
{
|
|
1298
|
-
$transformers = Transformers::createSingleton();
|
|
1299
|
-
$transformers->transform($this);
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
private function updateSizeByIncreasingToNewSize(int $size): void
|
|
1303
|
-
{
|
|
1304
|
-
$currentSize = \count($this);
|
|
1305
|
-
if ($currentSize >= $size) {
|
|
1306
|
-
throw new \LogicException(\sprintf('Cannot use called method to decrease collection size (%d -> %d).', $currentSize, $size));
|
|
1307
|
-
}
|
|
1308
|
-
parent::setSize($size);
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
private function updateSizeToZero(): void
|
|
1312
|
-
{
|
|
1313
|
-
$currentSize = \count($this);
|
|
1314
|
-
if (0 === $currentSize) {
|
|
1315
|
-
return;
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
$this->changed = true;
|
|
1319
|
-
$this->collectionHash = null;
|
|
1320
|
-
self::clearCache($this->codeHash);
|
|
1321
|
-
$this->codeHash = null;
|
|
1322
|
-
$this->namespaceDeclarations = null;
|
|
1323
|
-
$this->blockStartCache = [];
|
|
1324
|
-
$this->blockEndCache = [];
|
|
1325
|
-
|
|
1326
|
-
parent::setSize(0);
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
private function updateSizeByTrimmingTrailingEmptyTokens(): void
|
|
1330
|
-
{
|
|
1331
|
-
$currentSize = \count($this);
|
|
1332
|
-
|
|
1333
|
-
if (0 === $currentSize) {
|
|
1334
|
-
return;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
$lastIndex = $currentSize - 1;
|
|
1338
|
-
|
|
1339
|
-
while ($lastIndex >= 0 && $this->isEmptyAt($lastIndex)) {
|
|
1340
|
-
--$lastIndex;
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
parent::setSize($lastIndex + 1);
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
/**
|
|
1347
|
-
* @param -1|1 $direction
|
|
1348
|
-
*/
|
|
1349
|
-
private function removeWhitespaceSafely(int $index, int $direction, ?string $whitespaces = null): void
|
|
1350
|
-
{
|
|
1351
|
-
$whitespaceIndex = $this->getNonEmptySibling($index, $direction);
|
|
1352
|
-
if (isset($this[$whitespaceIndex]) && $this[$whitespaceIndex]->isWhitespace()) {
|
|
1353
|
-
$newContent = '';
|
|
1354
|
-
$tokenToCheck = $this[$whitespaceIndex];
|
|
1355
|
-
|
|
1356
|
-
// if the token candidate to remove is preceded by single line comment we do not consider the new line after this comment as part of T_WHITESPACE
|
|
1357
|
-
if (isset($this[$whitespaceIndex - 1]) && $this[$whitespaceIndex - 1]->isComment() && !str_starts_with($this[$whitespaceIndex - 1]->getContent(), '/*')) {
|
|
1358
|
-
[, $newContent, $whitespacesToCheck] = Preg::split('/^(\R)/', $this[$whitespaceIndex]->getContent(), -1, PREG_SPLIT_DELIM_CAPTURE);
|
|
1359
|
-
|
|
1360
|
-
if ('' === $whitespacesToCheck) {
|
|
1361
|
-
return;
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
$tokenToCheck = new Token([T_WHITESPACE, $whitespacesToCheck]);
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
if (!$tokenToCheck->isWhitespace($whitespaces)) {
|
|
1368
|
-
return;
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
if ('' === $newContent) {
|
|
1372
|
-
$this->clearAt($whitespaceIndex);
|
|
1373
|
-
} else {
|
|
1374
|
-
$this[$whitespaceIndex] = new Token([T_WHITESPACE, $newContent]);
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
/**
|
|
1380
|
-
* @param self::BLOCK_TYPE_* $type type of block
|
|
1381
|
-
* @param int $searchIndex index of starting brace
|
|
1382
|
-
* @param bool $findEnd if method should find block's end or start
|
|
1383
|
-
*
|
|
1384
|
-
* @return int<0, max> index of opposite brace
|
|
1385
|
-
*/
|
|
1386
|
-
private function findOppositeBlockEdge(int $type, int $searchIndex, bool $findEnd): int
|
|
1387
|
-
{
|
|
1388
|
-
$blockEdgeDefinitions = self::getBlockEdgeDefinitions();
|
|
1389
|
-
|
|
1390
|
-
if (!isset($blockEdgeDefinitions[$type])) {
|
|
1391
|
-
throw new \InvalidArgumentException(\sprintf('Invalid param type: "%s".', $type));
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
if ($findEnd && isset($this->blockStartCache[$searchIndex])) {
|
|
1395
|
-
return $this->blockStartCache[$searchIndex];
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
if (!$findEnd && isset($this->blockEndCache[$searchIndex])) {
|
|
1399
|
-
return $this->blockEndCache[$searchIndex];
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
$startEdge = $blockEdgeDefinitions[$type]['start'];
|
|
1403
|
-
$endEdge = $blockEdgeDefinitions[$type]['end'];
|
|
1404
|
-
$startIndex = $searchIndex;
|
|
1405
|
-
$endIndex = \count($this) - 1;
|
|
1406
|
-
$indexOffset = 1;
|
|
1407
|
-
|
|
1408
|
-
if (!$findEnd) {
|
|
1409
|
-
[$startEdge, $endEdge] = [$endEdge, $startEdge];
|
|
1410
|
-
$indexOffset = -1;
|
|
1411
|
-
$endIndex = 0;
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
if (!$this[$startIndex]->equals($startEdge)) {
|
|
1415
|
-
throw new \InvalidArgumentException(\sprintf('Invalid param $startIndex - not a proper block "%s".', $findEnd ? 'start' : 'end'));
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
$blockLevel = 0;
|
|
1419
|
-
|
|
1420
|
-
for ($index = $startIndex; $index !== $endIndex; $index += $indexOffset) {
|
|
1421
|
-
$token = $this[$index];
|
|
1422
|
-
|
|
1423
|
-
if ($token->equals($startEdge)) {
|
|
1424
|
-
++$blockLevel;
|
|
1425
|
-
|
|
1426
|
-
continue;
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
if ($token->equals($endEdge)) {
|
|
1430
|
-
--$blockLevel;
|
|
1431
|
-
|
|
1432
|
-
if (0 === $blockLevel) {
|
|
1433
|
-
break;
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
if (!$this[$index]->equals($endEdge)) {
|
|
1439
|
-
throw new \UnexpectedValueException(\sprintf('Missing block "%s".', $findEnd ? 'end' : 'start'));
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
if ($startIndex < $index) {
|
|
1443
|
-
$this->blockStartCache[$startIndex] = $index;
|
|
1444
|
-
$this->blockEndCache[$index] = $startIndex;
|
|
1445
|
-
} else {
|
|
1446
|
-
$this->blockStartCache[$index] = $startIndex;
|
|
1447
|
-
$this->blockEndCache[$startIndex] = $index;
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
return $index;
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
/**
|
|
1454
|
-
* @return non-empty-string
|
|
1455
|
-
*/
|
|
1456
|
-
private static function calculateHash(string $code): string
|
|
1457
|
-
{
|
|
1458
|
-
return Hasher::calculate($code);
|
|
1459
|
-
}
|
|
1460
|
-
|
|
1461
|
-
/**
|
|
1462
|
-
* Get cache value for given key.
|
|
1463
|
-
*
|
|
1464
|
-
* @param non-empty-string $key item key
|
|
1465
|
-
*/
|
|
1466
|
-
private static function getCache(string $key): self
|
|
1467
|
-
{
|
|
1468
|
-
if (!self::hasCache($key)) {
|
|
1469
|
-
throw new \OutOfBoundsException(\sprintf('Unknown cache key: "%s".', $key));
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
return self::$cache[$key];
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
/**
|
|
1476
|
-
* Check if given key exists in cache.
|
|
1477
|
-
*
|
|
1478
|
-
* @param non-empty-string $key item key
|
|
1479
|
-
*/
|
|
1480
|
-
private static function hasCache(string $key): bool
|
|
1481
|
-
{
|
|
1482
|
-
return isset(self::$cache[$key]);
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
/**
|
|
1486
|
-
* @param non-empty-string $key item key
|
|
1487
|
-
* @param Tokens $value item value
|
|
1488
|
-
*/
|
|
1489
|
-
private static function setCache(string $key, self $value): void
|
|
1490
|
-
{
|
|
1491
|
-
self::$cache[$key] = $value;
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
/**
|
|
1495
|
-
* Change code hash.
|
|
1496
|
-
*
|
|
1497
|
-
* Remove old cache and set new one.
|
|
1498
|
-
*
|
|
1499
|
-
* @param non-empty-string $codeHash new code hash
|
|
1500
|
-
*/
|
|
1501
|
-
private function changeCodeHash(string $codeHash): void
|
|
1502
|
-
{
|
|
1503
|
-
if (null !== $this->codeHash) {
|
|
1504
|
-
self::clearCache($this->codeHash);
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
$this->codeHash = $codeHash;
|
|
1508
|
-
self::setCache($this->codeHash, $this);
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
/**
|
|
1512
|
-
* Register token as found.
|
|
1513
|
-
*/
|
|
1514
|
-
private function registerFoundToken(Token $token): void
|
|
1515
|
-
{
|
|
1516
|
-
// inlined extractTokenKind() call on the hot path
|
|
1517
|
-
$tokenKind = $token->isArray() ? $token->getId() : $token->getContent();
|
|
1518
|
-
|
|
1519
|
-
$this->foundTokenKinds[$tokenKind] ??= 0;
|
|
1520
|
-
++$this->foundTokenKinds[$tokenKind];
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
/**
|
|
1524
|
-
* Unregister token as not found.
|
|
1525
|
-
*/
|
|
1526
|
-
private function unregisterFoundToken(Token $token): void
|
|
1527
|
-
{
|
|
1528
|
-
// inlined extractTokenKind() call on the hot path
|
|
1529
|
-
$tokenKind = $token->isArray() ? $token->getId() : $token->getContent();
|
|
1530
|
-
|
|
1531
|
-
\assert(($this->foundTokenKinds[$tokenKind] ?? 0) > 0);
|
|
1532
|
-
--$this->foundTokenKinds[$tokenKind];
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
/**
|
|
1536
|
-
* @param array{int}|string|Token $token token prototype
|
|
1537
|
-
*
|
|
1538
|
-
* @return int|string
|
|
1539
|
-
*/
|
|
1540
|
-
private function extractTokenKind($token)
|
|
1541
|
-
{
|
|
1542
|
-
return $token instanceof Token
|
|
1543
|
-
? ($token->isArray() ? $token->getId() : $token->getContent())
|
|
1544
|
-
: (\is_array($token) ? $token[0] : $token);
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
/**
|
|
1548
|
-
* @param int $index token index
|
|
1549
|
-
* @param -1|1 $direction
|
|
1550
|
-
* @param callable(int): bool $filter
|
|
1551
|
-
*/
|
|
1552
|
-
private function getTokenNotOfKind(int $index, int $direction, callable $filter): ?int
|
|
1553
|
-
{
|
|
1554
|
-
while (true) {
|
|
1555
|
-
$index += $direction;
|
|
1556
|
-
if (!$this->offsetExists($index)) {
|
|
1557
|
-
return null;
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
if ($this->isEmptyAt($index) || $filter($index)) {
|
|
1561
|
-
continue;
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
return $index;
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
/**
|
|
1569
|
-
* A helper method used to find out whether a certain input token has to be case-sensitively matched.
|
|
1570
|
-
*
|
|
1571
|
-
* @param array<int, bool>|bool $caseSensitive global case sensitiveness or an array of booleans, whose keys should match
|
|
1572
|
-
* the ones used in $sequence. If any is missing, the default case-sensitive
|
|
1573
|
-
* comparison is used
|
|
1574
|
-
* @param int $key the key of the token that has to be looked up
|
|
1575
|
-
*/
|
|
1576
|
-
private static function isKeyCaseSensitive($caseSensitive, int $key): bool
|
|
1577
|
-
{
|
|
1578
|
-
if (\is_array($caseSensitive)) {
|
|
1579
|
-
return $caseSensitive[$key] ?? true;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
return $caseSensitive;
|
|
1583
|
-
}
|
|
1584
|
-
}
|