@averay/codeformat 0.2.1 → 0.2.3
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 -0
- package/.php-cs-fixer.php +9 -0
- package/.prettierrc.json +3 -1
- package/.stylelintignore +2 -0
- package/README.md +16 -0
- package/bin/codeformat.ts +26 -0
- package/bin/tools/eslint.ts +16 -0
- package/bin/tools/index.ts +5 -0
- package/bin/tools/phpCsFixer.ts +17 -0
- package/bin/tools/prettier.ts +20 -0
- package/bin/tools/stylelint.ts +16 -0
- package/bin/tools/tsc.ts +12 -0
- package/bin/utils/Cli.ts +77 -0
- package/bin/utils/Output.ts +30 -0
- package/bin/utils/ToolRunner.ts +60 -0
- package/bin/utils/filesystem.ts +16 -0
- package/bin/utils/runners.ts +10 -0
- package/bin/utils/types.ts +22 -0
- package/composer.json +6 -0
- package/composer.lock +3231 -0
- package/dist/bin/codeformat.d.ts +2 -0
- package/dist/bin/codeformat.js +22 -0
- package/dist/bin/codeformat.js.map +1 -0
- package/dist/bin/tools/eslint.d.ts +13 -0
- package/dist/bin/tools/eslint.js +15 -0
- package/dist/bin/tools/eslint.js.map +1 -0
- package/dist/bin/tools/index.d.ts +5 -0
- package/dist/bin/tools/index.js +6 -0
- package/dist/bin/tools/index.js.map +1 -0
- package/dist/bin/tools/phpCsFixer.d.ts +16 -0
- package/dist/bin/tools/phpCsFixer.js +16 -0
- package/dist/bin/tools/phpCsFixer.js.map +1 -0
- package/dist/bin/tools/prettier.d.ts +13 -0
- package/dist/bin/tools/prettier.js +19 -0
- package/dist/bin/tools/prettier.js.map +1 -0
- package/dist/bin/tools/stylelint.d.ts +13 -0
- package/dist/bin/tools/stylelint.js +15 -0
- package/dist/bin/tools/stylelint.js.map +1 -0
- package/dist/bin/tools/tsc.d.ts +10 -0
- package/dist/bin/tools/tsc.js +11 -0
- package/dist/bin/tools/tsc.js.map +1 -0
- package/dist/bin/utils/Cli.d.ts +20 -0
- package/dist/bin/utils/Cli.js +58 -0
- package/dist/bin/utils/Cli.js.map +1 -0
- package/dist/bin/utils/Output.d.ts +9 -0
- package/dist/bin/utils/Output.js +29 -0
- package/dist/bin/utils/Output.js.map +1 -0
- package/dist/bin/utils/ToolRunner.d.ts +10 -0
- package/dist/bin/utils/ToolRunner.js +49 -0
- package/dist/bin/utils/ToolRunner.js.map +1 -0
- package/dist/bin/utils/filesystem.d.ts +2 -0
- package/dist/bin/utils/filesystem.js +15 -0
- package/dist/bin/utils/filesystem.js.map +1 -0
- package/dist/bin/utils/runners.d.ts +5 -0
- package/dist/bin/utils/runners.js +9 -0
- package/dist/bin/utils/runners.js.map +1 -0
- package/dist/bin/utils/types.d.ts +18 -0
- package/dist/bin/utils/types.js +2 -0
- package/dist/bin/utils/types.js.map +1 -0
- package/dist/lib/convertWarnsToErrors.d.ts +22 -0
- package/dist/lib/convertWarnsToErrors.js +34 -0
- package/dist/lib/convertWarnsToErrors.js.map +1 -0
- package/dist/lib/cssPatterns.d.ts +8 -0
- package/dist/lib/cssPatterns.js +17 -0
- package/dist/lib/cssPatterns.js.map +1 -0
- package/dist/rulesets/eslint/ruleset-shared.d.ts +356 -0
- package/dist/rulesets/eslint/ruleset-shared.js +340 -0
- package/dist/rulesets/eslint/ruleset-shared.js.map +1 -0
- package/dist/rulesets/eslint/ruleset-typescript.d.ts +5 -0
- package/dist/rulesets/eslint/ruleset-typescript.js +232 -0
- package/dist/rulesets/eslint/ruleset-typescript.js.map +1 -0
- package/dist/rulesets/stylelint/ruleset-css.d.ts +20 -0
- package/dist/rulesets/stylelint/ruleset-css.js +34 -0
- package/dist/rulesets/stylelint/ruleset-css.js.map +1 -0
- package/dist/rulesets/stylelint/ruleset-scss.d.ts +27 -0
- package/dist/rulesets/stylelint/ruleset-scss.js +42 -0
- package/dist/rulesets/stylelint/ruleset-scss.js.map +1 -0
- package/dist/src/extensions.d.ts +7 -0
- package/dist/src/extensions.js +7 -0
- package/dist/src/extensions.js.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +5 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/makeEslintConfig.d.ts +13 -0
- package/dist/src/makeEslintConfig.js +80 -0
- package/dist/src/makeEslintConfig.js.map +1 -0
- package/dist/src/makeStylelintConfig.d.ts +64 -0
- package/dist/src/makeStylelintConfig.js +39 -0
- package/dist/src/makeStylelintConfig.js.map +1 -0
- package/eslint.config.js +3 -1
- package/lib/cssPatterns.ts +15 -2
- package/package.json +19 -12
- package/rulesets/eslint/ruleset-typescript.ts +1 -1
- package/rulesets/php/ruleset-php-cs-fixer.php +93 -0
- package/rulesets/stylelint/ruleset-css.ts +1 -0
- package/rulesets/stylelint/ruleset-scss.ts +20 -5
- package/src/makeStylelintConfig.ts +2 -1
- package/src/php/PhpCsFixerConfig.php +27 -0
- package/tsconfig.build.json +13 -0
- package/tsconfig.json +1 -0
- package/types.d.ts +6 -0
- package/vendor/autoload.php +22 -0
- package/vendor/bin/php-cs-fixer +119 -0
- package/vendor/clue/ndjson-react/.github/FUNDING.yml +2 -0
- package/vendor/clue/ndjson-react/CHANGELOG.md +75 -0
- package/vendor/clue/ndjson-react/LICENSE +21 -0
- package/vendor/clue/ndjson-react/README.md +365 -0
- package/vendor/clue/ndjson-react/composer.json +31 -0
- package/vendor/clue/ndjson-react/src/Decoder.php +166 -0
- package/vendor/clue/ndjson-react/src/Encoder.php +144 -0
- package/vendor/composer/ClassLoader.php +579 -0
- package/vendor/composer/InstalledVersions.php +396 -0
- package/vendor/composer/LICENSE +21 -0
- package/vendor/composer/autoload_classmap.php +34 -0
- package/vendor/composer/autoload_files.php +18 -0
- package/vendor/composer/autoload_namespaces.php +9 -0
- package/vendor/composer/autoload_psr4.php +42 -0
- package/vendor/composer/autoload_real.php +48 -0
- package/vendor/composer/autoload_static.php +247 -0
- package/vendor/composer/installed.json +3634 -0
- package/vendor/composer/installed.php +367 -0
- package/vendor/composer/pcre/LICENSE +19 -0
- package/vendor/composer/pcre/README.md +189 -0
- package/vendor/composer/pcre/composer.json +54 -0
- package/vendor/composer/pcre/extension.neon +22 -0
- package/vendor/composer/pcre/src/MatchAllResult.php +46 -0
- package/vendor/composer/pcre/src/MatchAllStrictGroupsResult.php +46 -0
- package/vendor/composer/pcre/src/MatchAllWithOffsetsResult.php +48 -0
- package/vendor/composer/pcre/src/MatchResult.php +39 -0
- package/vendor/composer/pcre/src/MatchStrictGroupsResult.php +39 -0
- package/vendor/composer/pcre/src/MatchWithOffsetsResult.php +41 -0
- package/vendor/composer/pcre/src/PHPStan/InvalidRegexPatternRule.php +142 -0
- package/vendor/composer/pcre/src/PHPStan/PregMatchFlags.php +70 -0
- package/vendor/composer/pcre/src/PHPStan/PregMatchParameterOutTypeExtension.php +65 -0
- package/vendor/composer/pcre/src/PHPStan/PregMatchTypeSpecifyingExtension.php +119 -0
- package/vendor/composer/pcre/src/PHPStan/PregReplaceCallbackClosureTypeExtension.php +91 -0
- package/vendor/composer/pcre/src/PHPStan/UnsafeStrictGroupsCallRule.php +112 -0
- package/vendor/composer/pcre/src/PcreException.php +55 -0
- package/vendor/composer/pcre/src/Preg.php +430 -0
- package/vendor/composer/pcre/src/Regex.php +176 -0
- package/vendor/composer/pcre/src/ReplaceResult.php +43 -0
- package/vendor/composer/pcre/src/UnexpectedNullMatchException.php +20 -0
- package/vendor/composer/semver/CHANGELOG.md +229 -0
- package/vendor/composer/semver/LICENSE +19 -0
- package/vendor/composer/semver/README.md +99 -0
- package/vendor/composer/semver/composer.json +59 -0
- package/vendor/composer/semver/src/Comparator.php +113 -0
- package/vendor/composer/semver/src/CompilingMatcher.php +94 -0
- package/vendor/composer/semver/src/Constraint/Bound.php +122 -0
- package/vendor/composer/semver/src/Constraint/Constraint.php +435 -0
- package/vendor/composer/semver/src/Constraint/ConstraintInterface.php +75 -0
- package/vendor/composer/semver/src/Constraint/MatchAllConstraint.php +85 -0
- package/vendor/composer/semver/src/Constraint/MatchNoneConstraint.php +83 -0
- package/vendor/composer/semver/src/Constraint/MultiConstraint.php +325 -0
- package/vendor/composer/semver/src/Interval.php +98 -0
- package/vendor/composer/semver/src/Intervals.php +478 -0
- package/vendor/composer/semver/src/Semver.php +129 -0
- package/vendor/composer/semver/src/VersionParser.php +591 -0
- package/vendor/composer/xdebug-handler/CHANGELOG.md +143 -0
- package/vendor/composer/xdebug-handler/LICENSE +21 -0
- package/vendor/composer/xdebug-handler/README.md +305 -0
- package/vendor/composer/xdebug-handler/composer.json +44 -0
- package/vendor/composer/xdebug-handler/src/PhpConfig.php +91 -0
- package/vendor/composer/xdebug-handler/src/Process.php +119 -0
- package/vendor/composer/xdebug-handler/src/Status.php +222 -0
- package/vendor/composer/xdebug-handler/src/XdebugHandler.php +722 -0
- package/vendor/evenement/evenement/.gitattributes +7 -0
- package/vendor/evenement/evenement/LICENSE +19 -0
- package/vendor/evenement/evenement/README.md +64 -0
- package/vendor/evenement/evenement/composer.json +29 -0
- package/vendor/evenement/evenement/src/EventEmitter.php +17 -0
- package/vendor/evenement/evenement/src/EventEmitterInterface.php +22 -0
- package/vendor/evenement/evenement/src/EventEmitterTrait.php +154 -0
- package/vendor/fidry/cpu-core-counter/.envrc +5 -0
- package/vendor/fidry/cpu-core-counter/LICENSE.md +16 -0
- package/vendor/fidry/cpu-core-counter/README.md +138 -0
- package/vendor/fidry/cpu-core-counter/bin/diagnose.php +27 -0
- package/vendor/fidry/cpu-core-counter/bin/execute.php +21 -0
- package/vendor/fidry/cpu-core-counter/bin/trace.php +32 -0
- package/vendor/fidry/cpu-core-counter/composer.json +48 -0
- package/vendor/fidry/cpu-core-counter/src/CpuCoreCounter.php +268 -0
- package/vendor/fidry/cpu-core-counter/src/Diagnoser.php +101 -0
- package/vendor/fidry/cpu-core-counter/src/Executor/ProcOpenExecutor.php +56 -0
- package/vendor/fidry/cpu-core-counter/src/Executor/ProcessExecutor.php +22 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/CmiCmdletLogicalFinder.php +46 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/CmiCmdletPhysicalFinder.php +47 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/CpuCoreFinder.php +37 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/CpuInfoFinder.php +100 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/DummyCpuCoreFinder.php +57 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/EnvVariableFinder.php +69 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/FinderRegistry.php +91 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/HwLogicalFinder.php +33 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/HwPhysicalFinder.php +33 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/LscpuLogicalFinder.php +52 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/LscpuPhysicalFinder.php +66 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/NProcFinder.php +59 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/NProcessorFinder.php +32 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/NullCpuCoreFinder.php +35 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/OnlyInPowerShellFinder.php +62 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/OnlyOnOSFamilyFinder.php +113 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/ProcOpenBasedFinder.php +107 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/SkipOnOSFamilyFinder.php +113 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/WindowsRegistryLogicalFinder.php +51 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/WmicLogicalFinder.php +47 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/WmicPhysicalFinder.php +47 -0
- package/vendor/fidry/cpu-core-counter/src/Finder/_NProcessorFinder.php +32 -0
- package/vendor/fidry/cpu-core-counter/src/NumberOfCpuCoreNotFound.php +26 -0
- package/vendor/fidry/cpu-core-counter/src/ParallelisationResult.php +87 -0
- package/vendor/friendsofphp/php-cs-fixer/CHANGELOG.md +5983 -0
- package/vendor/friendsofphp/php-cs-fixer/CONTRIBUTING.md +103 -0
- package/vendor/friendsofphp/php-cs-fixer/LICENSE +19 -0
- package/vendor/friendsofphp/php-cs-fixer/README.md +88 -0
- package/vendor/friendsofphp/php-cs-fixer/UPGRADE-v3.md +162 -0
- package/vendor/friendsofphp/php-cs-fixer/ci-integration.sh +8 -0
- package/vendor/friendsofphp/php-cs-fixer/composer.json +210 -0
- package/vendor/friendsofphp/php-cs-fixer/feature-or-bug.rst +24 -0
- package/vendor/friendsofphp/php-cs-fixer/logo.md +3 -0
- package/vendor/friendsofphp/php-cs-fixer/logo.png +0 -0
- package/vendor/friendsofphp/php-cs-fixer/php-cs-fixer +110 -0
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractDoctrineAnnotationFixer.php +241 -0
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractFixer.php +102 -0
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractFopenFlagFixer.php +116 -0
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractFunctionReferenceFixer.php +71 -0
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractNoUselessElseFixer.php +204 -0
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractPhpdocToTypeDeclarationFixer.php +314 -0
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractPhpdocTypesFixer.php +105 -0
- package/vendor/friendsofphp/php-cs-fixer/src/AbstractProxyFixer.php +106 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/Cache.php +151 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/CacheInterface.php +35 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/CacheManagerInterface.php +29 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/Directory.php +51 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/DirectoryInterface.php +23 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/FileCacheManager.php +143 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/FileHandler.php +184 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/FileHandlerInterface.php +29 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/NullCacheManager.php +33 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/Signature.php +100 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Cache/SignatureInterface.php +38 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Config.php +267 -0
- package/vendor/friendsofphp/php-cs-fixer/src/ConfigInterface.php +162 -0
- package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidConfigurationException.php +36 -0
- package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidFixerConfigurationException.php +45 -0
- package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidForEnvFixerConfigurationException.php +22 -0
- package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/RequiredFixerConfigurationException.php +22 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Application.php +212 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/CheckCommand.php +64 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DescribeCommand.php +476 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DescribeNameNotFoundException.php +46 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DocumentationCommand.php +123 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommand.php +397 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommandExitStatusCalculator.php +56 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/HelpCommand.php +76 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/ListFilesCommand.php +91 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/ListSetsCommand.php +87 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/SelfUpdateCommand.php +176 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/WorkerCommand.php +243 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/ConfigurationResolver.php +961 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/ErrorOutput.php +155 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/OutputContext.php +54 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/DotsOutput.php +124 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/NullOutput.php +29 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/PercentageBarOutput.php +78 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/ProgressOutputFactory.php +63 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/ProgressOutputInterface.php +27 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/ProgressOutputType.php +37 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/CheckstyleReporter.php +71 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/GitlabReporter.php +96 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/JsonReporter.php +65 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/JunitReporter.php +145 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/ReportSummary.php +103 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/ReporterFactory.php +90 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/ReporterInterface.php +30 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/TextReporter.php +104 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/XmlReporter.php +136 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/JsonReporter.php +52 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/ReportSummary.php +48 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/ReporterFactory.php +89 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/ReporterInterface.php +30 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/TextReporter.php +51 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/GithubClient.php +69 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/GithubClientInterface.php +26 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/NewVersionChecker.php +102 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/NewVersionCheckerInterface.php +37 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Console/WarningsDetector.php +76 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Differ/DiffConsoleFormatter.php +85 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Differ/DifferInterface.php +26 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Differ/FullDiffer.php +46 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Differ/NullDiffer.php +26 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Differ/UnifiedDiffer.php +47 -0
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Annotation.php +319 -0
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/DocBlock.php +250 -0
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Line.php +128 -0
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/ShortDescription.php +65 -0
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Tag.php +102 -0
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/TagComparator.php +66 -0
- package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/TypeExpression.php +857 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/DocLexer.php +171 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/Token.php +87 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/Tokens.php +303 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Documentation/DocumentationLocator.php +82 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Documentation/FixerDocumentGenerator.php +415 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Documentation/RstUtils.php +45 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Documentation/RuleSetDocumentationGenerator.php +174 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Error/Error.php +125 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Error/ErrorsManager.php +83 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Error/SourceExceptionFactory.php +62 -0
- package/vendor/friendsofphp/php-cs-fixer/src/ExecutorWithoutErrorHandler.php +58 -0
- package/vendor/friendsofphp/php-cs-fixer/src/ExecutorWithoutErrorHandlerException.php +22 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FileReader.php +70 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FileRemoval.php +100 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Finder.php +35 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AbstractIncrementOperatorFixer.php +58 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AbstractPhpUnitFixer.php +278 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AbstractShortOperatorFixer.php +264 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/ArrayPushFixer.php +207 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/BacktickToShellExecFixer.php +149 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/EregToPregFixer.php +193 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/MbStrFunctionsFixer.php +180 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/ModernizeStrposFixer.php +338 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoAliasFunctionsFixer.php +337 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoAliasLanguageConstructCallFixer.php +59 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoMixedEchoPrintFixer.php +142 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/PowToExponentiationFixer.php +219 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/RandomApiMigrationFixer.php +153 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/SetTypeToCastFixer.php +240 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/ArraySyntaxFixer.php +138 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoMultilineWhitespaceAroundDoubleArrowFixer.php +80 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoTrailingCommaInSinglelineArrayFixer.php +52 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoWhitespaceBeforeCommaInArrayFixer.php +153 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NormalizeIndexBraceFixer.php +57 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/ReturnToYieldFromFixer.php +105 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/TrimArraySpacesFixer.php +97 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/WhitespaceAfterCommaInArrayFixer.php +150 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/YieldFromArrayToYieldsFixer.php +189 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AttributeNotation/AttributeEmptyParenthesesFixer.php +136 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AttributeNotation/GeneralAttributeRemoveFixer.php +142 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AttributeNotation/OrderedAttributesFixer.php +274 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/BracesFixer.php +268 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/BracesPositionFixer.php +449 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/CurlyBracesPositionFixer.php +126 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/EncodingFixer.php +80 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NoMultipleStatementsPerLineFixer.php +111 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NoTrailingCommaInSinglelineFixer.php +162 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NonPrintableCharacterFixer.php +191 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NumericLiteralSeparatorFixer.php +232 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/OctalNotationFixer.php +64 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/PsrAutoloadingFixer.php +291 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/SingleLineEmptyBodyFixer.php +83 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/ClassReferenceNameCasingFixer.php +168 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/ConstantCaseFixer.php +130 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/IntegerLiteralCaseFixer.php +62 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/LowercaseKeywordsFixer.php +67 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/LowercaseStaticReferenceFixer.php +107 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/MagicConstantCasingFixer.php +92 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/MagicMethodCasingFixer.php +202 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeFunctionCasingFixer.php +89 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeFunctionTypeDeclarationCasingFixer.php +58 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeTypeDeclarationCasingFixer.php +151 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/CastSpacesFixer.php +131 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/LowercaseCastFixer.php +66 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/ModernizeTypesCastingFixer.php +164 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/NoShortBoolCastFixer.php +88 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/NoUnsetCastFixer.php +88 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/ShortScalarCastFixer.php +71 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php +605 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ClassDefinitionFixer.php +572 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalClassFixer.php +67 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalInternalClassFixer.php +374 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalPublicMethodForAbstractClassFixer.php +160 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoBlankLinesAfterClassOpeningFixer.php +93 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoNullPropertyInitializationFixer.php +141 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoPhp4ConstructorFixer.php +408 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoUnneededFinalMethodFixer.php +215 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedClassElementsFixer.php +610 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedInterfacesFixer.php +272 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedTraitsFixer.php +226 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedTypesFixer.php +453 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/PhpdocReadonlyClassCommentToKeywordFixer.php +129 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ProtectedToPrivateFixer.php +168 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SelfAccessorFixer.php +200 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SelfStaticAccessorFixer.php +224 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SingleClassElementPerStatementFixer.php +241 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SingleTraitInsertPerStatementFixer.php +116 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/VisibilityRequiredFixer.php +214 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassUsage/DateTimeImmutableFixer.php +146 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/CommentToPhpdocFixer.php +230 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/HeaderCommentFixer.php +543 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/MultilineCommentOpeningClosingFixer.php +89 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/NoEmptyCommentFixer.php +162 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/NoTrailingWhitespaceInCommentFixer.php +75 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/SingleLineCommentSpacingFixer.php +110 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/SingleLineCommentStyleFixer.php +178 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConfigurableFixerInterface.php +50 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConfigurableFixerTrait.php +124 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConstantNotation/NativeConstantInvocationFixer.php +307 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/ControlStructureBracesFixer.php +256 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/ControlStructureContinuationPositionFixer.php +157 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/ElseifFixer.php +98 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/EmptyLoopBodyFixer.php +139 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/EmptyLoopConditionFixer.php +202 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/IncludeFixer.php +153 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoAlternativeSyntaxFixer.php +244 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoBreakCommentFixer.php +366 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoSuperfluousElseifFixer.php +100 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoTrailingCommaInListCallFixer.php +51 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededBracesFixer.php +182 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededControlParenthesesFixer.php +758 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededCurlyBracesFixer.php +106 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUselessElseFixer.php +120 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SimplifiedIfReturnFixer.php +138 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchCaseSemicolonToColonFixer.php +87 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchCaseSpaceFixer.php +85 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchContinueToBreakFixer.php +240 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/TrailingCommaInMultilineFixer.php +237 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/YodaStyleFixer.php +758 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DeprecatedFixerInterface.php +28 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationArrayAssignmentFixer.php +114 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationBracesFixer.php +132 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationIndentationFixer.php +199 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationSpacesFixer.php +320 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ExperimentalFixerInterface.php +20 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FixerInterface.php +79 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/CombineNestedDirnameFixer.php +224 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/DateTimeCreateFromFormatCallFixer.php +164 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FopenFlagOrderFixer.php +123 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FopenFlagsFixer.php +120 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FunctionDeclarationFixer.php +263 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FunctionTypehintSpaceFixer.php +60 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/ImplodeCallFixer.php +139 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/LambdaNotUsedImportFixer.php +350 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/MethodArgumentSpaceFixer.php +510 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php +420 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoSpacesAfterFunctionNameFixer.php +176 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoTrailingCommaInSinglelineFunctionCallFixer.php +59 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoUnreachableDefaultArgumentValueFixer.php +197 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoUselessSprintfFixer.php +109 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NullableTypeDeclarationForDefaultNullValueFixer.php +247 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/PhpdocToParamTypeFixer.php +244 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/PhpdocToPropertyTypeFixer.php +296 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/PhpdocToReturnTypeFixer.php +249 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/RegularCallableCallFixer.php +256 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/ReturnTypeDeclarationFixer.php +132 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/SingleLineThrowFixer.php +159 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/StaticLambdaFixer.php +130 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/UseArrowFunctionsFixer.php +181 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/VoidReturnFixer.php +256 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/FullyQualifiedStrictTypesFixer.php +987 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/GlobalNamespaceImportFixer.php +726 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/GroupImportFixer.php +369 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoLeadingImportSlashFixer.php +90 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoUnneededImportAliasFixer.php +88 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoUnusedImportsFixer.php +455 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/OrderedImportsFixer.php +626 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/SingleImportPerStatementFixer.php +274 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/SingleLineAfterImportsFixer.php +152 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Indentation.php +92 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/InternalFixerInterface.php +20 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ClassKeywordFixer.php +100 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ClassKeywordRemoveFixer.php +234 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/CombineConsecutiveIssetsFixer.php +163 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/CombineConsecutiveUnsetsFixer.php +179 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DeclareEqualNormalizeFixer.php +137 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DeclareParenthesesFixer.php +56 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DirConstantFixer.php +129 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ErrorSuppressionFixer.php +186 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ExplicitIndirectVariableFixer.php +82 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/FunctionToConstantFixer.php +311 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/GetClassToClassKeywordFixer.php +158 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/IsNullFixer.php +169 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php +220 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/NullableTypeDeclarationFixer.php +348 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/SingleSpaceAfterConstructFixer.php +209 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/SingleSpaceAroundConstructFixer.php +516 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ListNotation/ListSyntaxFixer.php +133 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/BlankLineAfterNamespaceFixer.php +127 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/BlankLinesBeforeNamespaceFixer.php +242 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/CleanNamespaceFixer.php +108 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/NoBlankLinesBeforeNamespaceFixer.php +76 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/NoLeadingNamespaceWhitespaceFixer.php +95 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/SingleBlankLineBeforeNamespaceFixer.php +75 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Naming/NoHomoglyphNamesFixer.php +230 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/AssignNullCoalescingToCoalesceEqualFixer.php +71 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/BinaryOperatorSpacesFixer.php +961 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/ConcatSpaceFixer.php +160 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/IncrementStyleFixer.php +179 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/LogicalOperatorsFixer.php +67 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/LongToShorthandOperatorFixer.php +140 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NewWithBracesFixer.php +103 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NewWithParenthesesFixer.php +216 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NoSpaceAroundDoubleColonFixer.php +73 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NoUselessConcatOperatorFixer.php +375 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NoUselessNullsafeOperatorFixer.php +73 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NotOperatorWithSpaceFixer.php +75 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NotOperatorWithSuccessorSpaceFixer.php +68 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/ObjectOperatorWithoutWhitespaceFixer.php +62 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/OperatorLinebreakFixer.php +292 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/StandardizeIncrementFixer.php +122 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/StandardizeNotEqualsFixer.php +60 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryOperatorSpacesFixer.php +131 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryToElvisOperatorFixer.php +217 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryToNullCoalescingFixer.php +224 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/UnaryOperatorSpacesFixer.php +118 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/BlankLineAfterOpeningTagFixer.php +92 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/EchoTagSyntaxFixer.php +273 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/FullOpeningTagFixer.php +123 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/LinebreakAfterOpeningTagFixer.php +68 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/NoClosingTagFixer.php +59 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitAssertNewNamesFixer.php +107 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitAttributesFixer.php +620 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitConstructFixer.php +210 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderMethodOrderFixer.php +288 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderNameFixer.php +199 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderReturnTypeFixer.php +120 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderStaticFixer.php +156 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php +590 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDedicateAssertInternalTypeFixer.php +204 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitExpectationFixer.php +289 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitFqcnAnnotationFixer.php +86 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitInternalClassFixer.php +117 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMethodCasingFixer.php +238 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMockFixer.php +135 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMockShortWillReturnFixer.php +123 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitNamespacedFixer.php +235 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitNoExpectationAnnotationFixer.php +278 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitSetUpTearDownVisibilityFixer.php +111 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitSizeClassFixer.php +107 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitStrictFixer.php +154 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTargetVersion.php +57 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestAnnotationFixer.php +416 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixer.php +564 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestClassRequiresCoversFixer.php +88 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/AlignMultilineCommentFixer.php +178 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/GeneralPhpdocAnnotationRemoveFixer.php +177 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/GeneralPhpdocTagRenameFixer.php +213 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoBlankLinesAfterPhpdocFixer.php +110 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoEmptyPhpdocFixer.php +84 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoSuperfluousPhpdocTagsFixer.php +756 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAddMissingParamAnnotationFixer.php +289 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAlignFixer.php +506 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAnnotationWithoutDotFixer.php +123 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocArrayTypeFixer.php +92 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocIndentFixer.php +141 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocInlineTagNormalizerFixer.php +121 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocLineSpanFixer.php +173 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocListTypeFixer.php +70 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoAccessFixer.php +71 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoAliasTagFixer.php +137 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoEmptyReturnFixer.php +117 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoPackageFixer.php +70 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoUselessInheritdocFixer.php +151 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocOrderByValueFixer.php +225 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocOrderFixer.php +223 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocParamOrderFixer.php +273 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocReturnSelfReferenceFixer.php +234 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocScalarFixer.php +139 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSeparationFixer.php +333 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSingleLineVarSpacingFixer.php +89 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSummaryFixer.php +99 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTagCasingFixer.php +109 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTagTypeFixer.php +214 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocToCommentFixer.php +185 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTrimConsecutiveBlankLineSeparationFixer.php +191 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTrimFixer.php +115 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTypesFixer.php +173 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTypesOrderFixer.php +218 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocVarAnnotationCorrectOrderFixer.php +81 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocVarWithoutNameFixer.php +150 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/NoUselessReturnFixer.php +103 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/ReturnAssignmentFixer.php +527 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/SimplifiedNullReturnFixer.php +171 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/MultilineWhitespaceBeforeSemicolonsFixer.php +244 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/NoEmptyStatementFixer.php +186 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/NoSinglelineWhitespaceBeforeSemicolonsFixer.php +66 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/SemicolonAfterInstructionFixer.php +64 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/SpaceAfterSemicolonFixer.php +148 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/DeclareStrictTypesFixer.php +132 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/StrictComparisonFixer.php +80 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/StrictParamFixer.php +168 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/EscapeImplicitBackslashesFixer.php +153 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/ExplicitStringVariableFixer.php +166 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/HeredocClosingMarkerFixer.php +205 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/HeredocToNowdocFixer.php +107 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/MultilineStringToHeredocFixer.php +166 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/NoBinaryStringFixer.php +75 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/NoTrailingWhitespaceInStringFixer.php +100 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/SimpleToComplexStringVariableFixer.php +96 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/SingleQuoteFixer.php +122 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/StringImplicitBackslashesFixer.php +193 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/StringLengthToEmptyFixer.php +322 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/StringLineEndingFixer.php +76 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/ArrayIndentationFixer.php +197 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/BlankLineBeforeStatementFixer.php +379 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/BlankLineBetweenImportGroupsFixer.php +180 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/CompactNullableTypeDeclarationFixer.php +72 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/CompactNullableTypehintFixer.php +63 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/HeredocIndentationFixer.php +180 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/IndentationTypeFixer.php +139 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/LineEndingFixer.php +85 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/MethodChainingIndentationFixer.php +229 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoExtraBlankLinesFixer.php +496 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoSpacesAroundOffsetFixer.php +112 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoSpacesInsideParenthesisFixer.php +75 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoTrailingWhitespaceFixer.php +104 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoWhitespaceInBlankLineFixer.php +89 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/SingleBlankLineAtEofFixer.php +64 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/SpacesInsideParenthesesFixer.php +223 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/StatementIndentationFixer.php +836 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/TypeDeclarationSpacesFixer.php +254 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/TypesSpacesFixer.php +173 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Fixer/WhitespacesAwareFixerInterface.php +25 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AliasedFixerOption.php +75 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AliasedFixerOptionBuilder.php +78 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AllowedValueSubset.php +65 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/DeprecatedFixerOption.php +74 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/DeprecatedFixerOptionInterface.php +20 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolver.php +152 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolverInterface.php +30 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOption.php +146 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionBuilder.php +126 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionInterface.php +43 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionSorter.php +37 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/InvalidOptionsForEnvException.php +24 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/CodeSample.php +49 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/CodeSampleInterface.php +28 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FileSpecificCodeSample.php +56 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FileSpecificCodeSampleInterface.php +25 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FixerDefinition.php +76 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FixerDefinitionInterface.php +37 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificCodeSample.php +54 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificCodeSampleInterface.php +23 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecification.php +76 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificationInterface.php +23 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerFactory.php +248 -0
- package/vendor/friendsofphp/php-cs-fixer/src/FixerNameValidator.php +32 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Hasher.php +38 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Indicator/PhpUnitTestCaseIndicator.php +90 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/CachingLinter.php +56 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/Linter.php +49 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/LinterInterface.php +35 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/LintingException.php +24 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/LintingResultInterface.php +26 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLinter.php +149 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLinterProcessBuilder.php +46 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLintingResult.php +86 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/TokenizerLinter.php +58 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/TokenizerLintingResult.php +48 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Linter/UnavailableLinterException.php +26 -0
- package/vendor/friendsofphp/php-cs-fixer/src/ParallelAwareConfigInterface.php +29 -0
- package/vendor/friendsofphp/php-cs-fixer/src/PharChecker.php +38 -0
- package/vendor/friendsofphp/php-cs-fixer/src/PharCheckerInterface.php +26 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Preg.php +215 -0
- package/vendor/friendsofphp/php-cs-fixer/src/PregException.php +24 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/AbstractMigrationSetDescription.php +38 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/AbstractRuleSetDescription.php +35 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/DeprecatedRuleSetDescriptionInterface.php +28 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSet.php +159 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSetDescriptionInterface.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSetInterface.php +49 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSets.php +72 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/DoctrineAnnotationSet.php +42 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS1x0RiskySet.php +44 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS1x0Set.php +44 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS2x0RiskySet.php +44 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS2x0Set.php +112 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCSRiskySet.php +40 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCSSet.php +40 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERRiskySet.php +52 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERSet.php +47 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP54MigrationSet.php +30 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP56MigrationRiskySet.php +30 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP70MigrationRiskySet.php +39 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP70MigrationSet.php +31 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP71MigrationRiskySet.php +31 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP71MigrationSet.php +32 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP73MigrationSet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP74MigrationRiskySet.php +33 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP74MigrationSet.php +33 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP80MigrationRiskySet.php +40 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP80MigrationSet.php +32 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP81MigrationSet.php +31 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP82MigrationRiskySet.php +31 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP82MigrationSet.php +31 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP83MigrationSet.php +30 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP84MigrationSet.php +31 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit100MigrationRiskySet.php +31 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit30MigrationRiskySet.php +33 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit32MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit35MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit43MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit48MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit50MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit52MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit54MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit55MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit56MigrationRiskySet.php +37 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit57MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit60MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit75MigrationRiskySet.php +34 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit84MigrationRiskySet.php +35 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit91MigrationRiskySet.php +31 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR12RiskySet.php +36 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR12Set.php +123 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR1Set.php +36 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR2Set.php +104 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PhpCsFixerRiskySet.php +67 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PhpCsFixerSet.php +134 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/SymfonyRiskySet.php +78 -0
- package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/SymfonySet.php +241 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Event/AnalysisStarted.php +54 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Event/FileProcessed.php +75 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/FileCachingLintingFileIterator.php +76 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/FileFilterIterator.php +108 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/LintingFileIterator.php +66 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/LintingResultAwareFileIteratorInterface.php +29 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelAction.php +35 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelConfig.php +67 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelConfigFactory.php +61 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelisationException.php +30 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/Process.php +189 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ProcessFactory.php +111 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ProcessIdentifier.php +55 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ProcessPool.php +99 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/WorkerException.php +66 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/Runner.php +587 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Runner/RunnerConfig.php +64 -0
- package/vendor/friendsofphp/php-cs-fixer/src/StdinFileInfo.php +173 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/AbstractTransformer.php +40 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/AbstractTypeTransformer.php +89 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/AlternativeSyntaxAnalyzer.php +121 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/AbstractControlCaseStructuresAnalysis.php +51 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/ArgumentAnalysis.php +81 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/AttributeAnalysis.php +76 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/CaseAnalysis.php +45 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/DataProviderAnalysis.php +68 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/DefaultAnalysis.php +43 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/EnumAnalysis.php +46 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/MatchAnalysis.php +37 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/NamespaceAnalysis.php +98 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/NamespaceUseAnalysis.php +189 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/StartEndTokenAwareAnalysis.php +33 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/SwitchAnalysis.php +54 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/TypeAnalysis.php +116 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ArgumentsAnalyzer.php +161 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/AttributeAnalyzer.php +211 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/BlocksAnalyzer.php +59 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ClassyAnalyzer.php +87 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/CommentsAnalyzer.php +370 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ControlCaseStructuresAnalyzer.php +312 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/DataProviderAnalyzer.php +115 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/FullyQualifiedNameAnalyzer.php +103 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/FunctionsAnalyzer.php +281 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/GotoLabelAnalyzer.php +40 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/NamespaceUsesAnalyzer.php +216 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/NamespacesAnalyzer.php +116 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/RangeAnalyzer.php +90 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ReferenceAnalyzer.php +49 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/SwitchAnalyzer.php +71 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/WhitespacesAnalyzer.php +52 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/CT.php +112 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Processor/ImportProcessor.php +103 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Token.php +541 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Tokens.php +1584 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/TokensAnalyzer.php +894 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ArrayTypehintTransformer.php +54 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/AttributeTransformer.php +67 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/BraceClassInstantiationTransformer.php +80 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/BraceTransformer.php +349 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ClassConstantTransformer.php +57 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ConstructorPromotionTransformer.php +71 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/DisjunctiveNormalFormTypeParenthesisTransformer.php +65 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/FirstClassCallableTransformer.php +49 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ImportTransformer.php +72 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NameQualifiedTransformer.php +67 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NamedArgumentTransformer.php +73 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NamespaceOperatorTransformer.php +53 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NullableTypeTransformer.php +83 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ReturnRefTransformer.php +47 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/SquareBraceTransformer.php +187 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeAlternationTransformer.php +57 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeColonTransformer.php +83 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeIntersectionTransformer.php +55 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/UseTransformer.php +102 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/WhitespacyCommentTransformer.php +64 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/TransformerInterface.php +68 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformers.php +109 -0
- package/vendor/friendsofphp/php-cs-fixer/src/ToolInfo.php +120 -0
- package/vendor/friendsofphp/php-cs-fixer/src/ToolInfoInterface.php +38 -0
- package/vendor/friendsofphp/php-cs-fixer/src/Utils.php +250 -0
- package/vendor/friendsofphp/php-cs-fixer/src/WhitespacesFixerConfig.php +63 -0
- package/vendor/friendsofphp/php-cs-fixer/src/WordMatcher.php +55 -0
- package/vendor/psr/container/LICENSE +21 -0
- package/vendor/psr/container/README.md +13 -0
- package/vendor/psr/container/composer.json +27 -0
- package/vendor/psr/container/src/ContainerExceptionInterface.php +12 -0
- package/vendor/psr/container/src/ContainerInterface.php +36 -0
- package/vendor/psr/container/src/NotFoundExceptionInterface.php +10 -0
- package/vendor/psr/event-dispatcher/.editorconfig +15 -0
- package/vendor/psr/event-dispatcher/LICENSE +21 -0
- package/vendor/psr/event-dispatcher/README.md +6 -0
- package/vendor/psr/event-dispatcher/composer.json +26 -0
- package/vendor/psr/event-dispatcher/src/EventDispatcherInterface.php +21 -0
- package/vendor/psr/event-dispatcher/src/ListenerProviderInterface.php +19 -0
- package/vendor/psr/event-dispatcher/src/StoppableEventInterface.php +26 -0
- package/vendor/psr/log/LICENSE +19 -0
- package/vendor/psr/log/README.md +58 -0
- package/vendor/psr/log/composer.json +26 -0
- package/vendor/psr/log/src/AbstractLogger.php +15 -0
- package/vendor/psr/log/src/InvalidArgumentException.php +7 -0
- package/vendor/psr/log/src/LogLevel.php +18 -0
- package/vendor/psr/log/src/LoggerAwareInterface.php +14 -0
- package/vendor/psr/log/src/LoggerAwareTrait.php +22 -0
- package/vendor/psr/log/src/LoggerInterface.php +98 -0
- package/vendor/psr/log/src/LoggerTrait.php +98 -0
- package/vendor/psr/log/src/NullLogger.php +26 -0
- package/vendor/react/cache/CHANGELOG.md +96 -0
- package/vendor/react/cache/LICENSE +21 -0
- package/vendor/react/cache/README.md +367 -0
- package/vendor/react/cache/composer.json +45 -0
- package/vendor/react/cache/src/ArrayCache.php +181 -0
- package/vendor/react/cache/src/CacheInterface.php +194 -0
- package/vendor/react/child-process/CHANGELOG.md +176 -0
- package/vendor/react/child-process/LICENSE +21 -0
- package/vendor/react/child-process/README.md +619 -0
- package/vendor/react/child-process/composer.json +49 -0
- package/vendor/react/child-process/src/Process.php +585 -0
- package/vendor/react/dns/CHANGELOG.md +452 -0
- package/vendor/react/dns/LICENSE +21 -0
- package/vendor/react/dns/README.md +453 -0
- package/vendor/react/dns/composer.json +49 -0
- package/vendor/react/dns/src/BadServerException.php +7 -0
- package/vendor/react/dns/src/Config/Config.php +137 -0
- package/vendor/react/dns/src/Config/HostsFile.php +153 -0
- package/vendor/react/dns/src/Model/Message.php +230 -0
- package/vendor/react/dns/src/Model/Record.php +153 -0
- package/vendor/react/dns/src/Protocol/BinaryDumper.php +199 -0
- package/vendor/react/dns/src/Protocol/Parser.php +356 -0
- package/vendor/react/dns/src/Query/CachingExecutor.php +88 -0
- package/vendor/react/dns/src/Query/CancellationException.php +7 -0
- package/vendor/react/dns/src/Query/CoopExecutor.php +91 -0
- package/vendor/react/dns/src/Query/ExecutorInterface.php +43 -0
- package/vendor/react/dns/src/Query/FallbackExecutor.php +49 -0
- package/vendor/react/dns/src/Query/HostsFileExecutor.php +89 -0
- package/vendor/react/dns/src/Query/Query.php +69 -0
- package/vendor/react/dns/src/Query/RetryExecutor.php +85 -0
- package/vendor/react/dns/src/Query/SelectiveTransportExecutor.php +85 -0
- package/vendor/react/dns/src/Query/TcpTransportExecutor.php +382 -0
- package/vendor/react/dns/src/Query/TimeoutException.php +7 -0
- package/vendor/react/dns/src/Query/TimeoutExecutor.php +78 -0
- package/vendor/react/dns/src/Query/UdpTransportExecutor.php +221 -0
- package/vendor/react/dns/src/RecordNotFoundException.php +7 -0
- package/vendor/react/dns/src/Resolver/Factory.php +226 -0
- package/vendor/react/dns/src/Resolver/Resolver.php +147 -0
- package/vendor/react/dns/src/Resolver/ResolverInterface.php +94 -0
- package/vendor/react/event-loop/CHANGELOG.md +468 -0
- package/vendor/react/event-loop/LICENSE +21 -0
- package/vendor/react/event-loop/README.md +930 -0
- package/vendor/react/event-loop/composer.json +47 -0
- package/vendor/react/event-loop/src/ExtEvLoop.php +253 -0
- package/vendor/react/event-loop/src/ExtEventLoop.php +275 -0
- package/vendor/react/event-loop/src/ExtLibevLoop.php +201 -0
- package/vendor/react/event-loop/src/ExtLibeventLoop.php +285 -0
- package/vendor/react/event-loop/src/ExtUvLoop.php +342 -0
- package/vendor/react/event-loop/src/Factory.php +75 -0
- package/vendor/react/event-loop/src/Loop.php +266 -0
- package/vendor/react/event-loop/src/LoopInterface.php +472 -0
- package/vendor/react/event-loop/src/SignalsHandler.php +63 -0
- package/vendor/react/event-loop/src/StreamSelectLoop.php +330 -0
- package/vendor/react/event-loop/src/Tick/FutureTickQueue.php +60 -0
- package/vendor/react/event-loop/src/Timer/Timer.php +55 -0
- package/vendor/react/event-loop/src/Timer/Timers.php +113 -0
- package/vendor/react/event-loop/src/TimerInterface.php +27 -0
- package/vendor/react/promise/CHANGELOG.md +156 -0
- package/vendor/react/promise/LICENSE +24 -0
- package/vendor/react/promise/README.md +722 -0
- package/vendor/react/promise/composer.json +57 -0
- package/vendor/react/promise/src/Deferred.php +52 -0
- package/vendor/react/promise/src/Exception/CompositeException.php +32 -0
- package/vendor/react/promise/src/Exception/LengthException.php +7 -0
- package/vendor/react/promise/src/Internal/CancellationQueue.php +64 -0
- package/vendor/react/promise/src/Internal/FulfilledPromise.php +89 -0
- package/vendor/react/promise/src/Internal/RejectedPromise.php +128 -0
- package/vendor/react/promise/src/Promise.php +303 -0
- package/vendor/react/promise/src/PromiseInterface.php +152 -0
- package/vendor/react/promise/src/functions.php +345 -0
- package/vendor/react/promise/src/functions_include.php +5 -0
- package/vendor/react/socket/CHANGELOG.md +785 -0
- package/vendor/react/socket/LICENSE +21 -0
- package/vendor/react/socket/README.md +1564 -0
- package/vendor/react/socket/composer.json +52 -0
- package/vendor/react/socket/src/Connection.php +183 -0
- package/vendor/react/socket/src/ConnectionInterface.php +119 -0
- package/vendor/react/socket/src/Connector.php +236 -0
- package/vendor/react/socket/src/ConnectorInterface.php +59 -0
- package/vendor/react/socket/src/DnsConnector.php +117 -0
- package/vendor/react/socket/src/FdServer.php +222 -0
- package/vendor/react/socket/src/FixedUriConnector.php +41 -0
- package/vendor/react/socket/src/HappyEyeBallsConnectionBuilder.php +334 -0
- package/vendor/react/socket/src/HappyEyeBallsConnector.php +80 -0
- package/vendor/react/socket/src/LimitingServer.php +203 -0
- package/vendor/react/socket/src/SecureConnector.php +132 -0
- package/vendor/react/socket/src/SecureServer.php +210 -0
- package/vendor/react/socket/src/Server.php +118 -0
- package/vendor/react/socket/src/ServerInterface.php +151 -0
- package/vendor/react/socket/src/SocketServer.php +215 -0
- package/vendor/react/socket/src/StreamEncryption.php +158 -0
- package/vendor/react/socket/src/TcpConnector.php +173 -0
- package/vendor/react/socket/src/TcpServer.php +262 -0
- package/vendor/react/socket/src/TimeoutConnector.php +79 -0
- package/vendor/react/socket/src/UnixConnector.php +58 -0
- package/vendor/react/socket/src/UnixServer.php +162 -0
- package/vendor/react/stream/CHANGELOG.md +460 -0
- package/vendor/react/stream/LICENSE +21 -0
- package/vendor/react/stream/README.md +1249 -0
- package/vendor/react/stream/composer.json +47 -0
- package/vendor/react/stream/src/CompositeStream.php +83 -0
- package/vendor/react/stream/src/DuplexResourceStream.php +240 -0
- package/vendor/react/stream/src/DuplexStreamInterface.php +39 -0
- package/vendor/react/stream/src/ReadableResourceStream.php +188 -0
- package/vendor/react/stream/src/ReadableStreamInterface.php +362 -0
- package/vendor/react/stream/src/ThroughStream.php +195 -0
- package/vendor/react/stream/src/Util.php +75 -0
- package/vendor/react/stream/src/WritableResourceStream.php +178 -0
- package/vendor/react/stream/src/WritableStreamInterface.php +347 -0
- package/vendor/sebastian/diff/ChangeLog.md +179 -0
- package/vendor/sebastian/diff/LICENSE +29 -0
- package/vendor/sebastian/diff/README.md +151 -0
- package/vendor/sebastian/diff/SECURITY.md +30 -0
- package/vendor/sebastian/diff/composer.json +51 -0
- package/vendor/sebastian/diff/src/Chunk.php +83 -0
- package/vendor/sebastian/diff/src/Diff.php +84 -0
- package/vendor/sebastian/diff/src/Differ.php +247 -0
- package/vendor/sebastian/diff/src/Exception/ConfigurationException.php +32 -0
- package/vendor/sebastian/diff/src/Exception/Exception.php +16 -0
- package/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php +14 -0
- package/vendor/sebastian/diff/src/Line.php +50 -0
- package/vendor/sebastian/diff/src/LongestCommonSubsequenceCalculator.php +18 -0
- package/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php +96 -0
- package/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php +54 -0
- package/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php +74 -0
- package/vendor/sebastian/diff/src/Output/DiffOutputBuilderInterface.php +19 -0
- package/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php +331 -0
- package/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php +261 -0
- package/vendor/sebastian/diff/src/Parser.php +116 -0
- package/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php +81 -0
- package/vendor/symfony/console/Application.php +1328 -0
- package/vendor/symfony/console/Attribute/Argument.php +110 -0
- package/vendor/symfony/console/Attribute/AsCommand.php +49 -0
- package/vendor/symfony/console/Attribute/Option.php +181 -0
- package/vendor/symfony/console/CHANGELOG.md +299 -0
- package/vendor/symfony/console/CI/GithubActionReporter.php +97 -0
- package/vendor/symfony/console/Color.php +133 -0
- package/vendor/symfony/console/Command/Command.php +700 -0
- package/vendor/symfony/console/Command/CompleteCommand.php +212 -0
- package/vendor/symfony/console/Command/DumpCompletionCommand.php +151 -0
- package/vendor/symfony/console/Command/HelpCommand.php +76 -0
- package/vendor/symfony/console/Command/InvokableCommand.php +157 -0
- package/vendor/symfony/console/Command/LazyCommand.php +206 -0
- package/vendor/symfony/console/Command/ListCommand.php +72 -0
- package/vendor/symfony/console/Command/LockableTrait.php +85 -0
- package/vendor/symfony/console/Command/SignalableCommandInterface.php +32 -0
- package/vendor/symfony/console/Command/TraceableCommand.php +365 -0
- package/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php +38 -0
- package/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php +52 -0
- package/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php +52 -0
- package/vendor/symfony/console/Completion/CompletionInput.php +248 -0
- package/vendor/symfony/console/Completion/CompletionSuggestions.php +97 -0
- package/vendor/symfony/console/Completion/Output/BashCompletionOutput.php +33 -0
- package/vendor/symfony/console/Completion/Output/CompletionOutputInterface.php +25 -0
- package/vendor/symfony/console/Completion/Output/FishCompletionOutput.php +36 -0
- package/vendor/symfony/console/Completion/Output/ZshCompletionOutput.php +36 -0
- package/vendor/symfony/console/Completion/Suggestion.php +41 -0
- package/vendor/symfony/console/ConsoleEvents.php +72 -0
- package/vendor/symfony/console/Cursor.php +204 -0
- package/vendor/symfony/console/DataCollector/CommandDataCollector.php +238 -0
- package/vendor/symfony/console/Debug/CliRequest.php +70 -0
- package/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php +155 -0
- package/vendor/symfony/console/Descriptor/ApplicationDescription.php +136 -0
- package/vendor/symfony/console/Descriptor/Descriptor.php +74 -0
- package/vendor/symfony/console/Descriptor/DescriptorInterface.php +24 -0
- package/vendor/symfony/console/Descriptor/JsonDescriptor.php +166 -0
- package/vendor/symfony/console/Descriptor/MarkdownDescriptor.php +173 -0
- package/vendor/symfony/console/Descriptor/ReStructuredTextDescriptor.php +273 -0
- package/vendor/symfony/console/Descriptor/TextDescriptor.php +317 -0
- package/vendor/symfony/console/Descriptor/XmlDescriptor.php +230 -0
- package/vendor/symfony/console/Event/ConsoleAlarmEvent.php +47 -0
- package/vendor/symfony/console/Event/ConsoleCommandEvent.php +54 -0
- package/vendor/symfony/console/Event/ConsoleErrorEvent.php +58 -0
- package/vendor/symfony/console/Event/ConsoleEvent.php +56 -0
- package/vendor/symfony/console/Event/ConsoleSignalEvent.php +56 -0
- package/vendor/symfony/console/Event/ConsoleTerminateEvent.php +50 -0
- package/vendor/symfony/console/EventListener/ErrorListener.php +89 -0
- package/vendor/symfony/console/Exception/CommandNotFoundException.php +43 -0
- package/vendor/symfony/console/Exception/ExceptionInterface.php +21 -0
- package/vendor/symfony/console/Exception/InvalidArgumentException.php +19 -0
- package/vendor/symfony/console/Exception/InvalidOptionException.php +21 -0
- package/vendor/symfony/console/Exception/LogicException.php +19 -0
- package/vendor/symfony/console/Exception/MissingInputException.php +21 -0
- package/vendor/symfony/console/Exception/NamespaceNotFoundException.php +21 -0
- package/vendor/symfony/console/Exception/RunCommandFailedException.php +29 -0
- package/vendor/symfony/console/Exception/RuntimeException.php +19 -0
- package/vendor/symfony/console/Formatter/NullOutputFormatter.php +51 -0
- package/vendor/symfony/console/Formatter/NullOutputFormatterStyle.php +48 -0
- package/vendor/symfony/console/Formatter/OutputFormatter.php +267 -0
- package/vendor/symfony/console/Formatter/OutputFormatterInterface.php +52 -0
- package/vendor/symfony/console/Formatter/OutputFormatterStyle.php +89 -0
- package/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php +50 -0
- package/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php +103 -0
- package/vendor/symfony/console/Formatter/WrappableOutputFormatterInterface.php +25 -0
- package/vendor/symfony/console/Helper/DebugFormatterHelper.php +98 -0
- package/vendor/symfony/console/Helper/DescriptorHelper.php +91 -0
- package/vendor/symfony/console/Helper/Dumper.php +53 -0
- package/vendor/symfony/console/Helper/FormatterHelper.php +81 -0
- package/vendor/symfony/console/Helper/Helper.php +161 -0
- package/vendor/symfony/console/Helper/HelperInterface.php +35 -0
- package/vendor/symfony/console/Helper/HelperSet.php +74 -0
- package/vendor/symfony/console/Helper/InputAwareHelper.php +30 -0
- package/vendor/symfony/console/Helper/OutputWrapper.php +76 -0
- package/vendor/symfony/console/Helper/ProcessHelper.php +137 -0
- package/vendor/symfony/console/Helper/ProgressBar.php +654 -0
- package/vendor/symfony/console/Helper/ProgressIndicator.php +242 -0
- package/vendor/symfony/console/Helper/QuestionHelper.php +589 -0
- package/vendor/symfony/console/Helper/SymfonyQuestionHelper.php +103 -0
- package/vendor/symfony/console/Helper/Table.php +934 -0
- package/vendor/symfony/console/Helper/TableCell.php +71 -0
- package/vendor/symfony/console/Helper/TableCellStyle.php +84 -0
- package/vendor/symfony/console/Helper/TableRows.php +28 -0
- package/vendor/symfony/console/Helper/TableSeparator.php +25 -0
- package/vendor/symfony/console/Helper/TableStyle.php +375 -0
- package/vendor/symfony/console/Helper/TreeHelper.php +111 -0
- package/vendor/symfony/console/Helper/TreeNode.php +105 -0
- package/vendor/symfony/console/Helper/TreeStyle.php +78 -0
- package/vendor/symfony/console/Input/ArgvInput.php +402 -0
- package/vendor/symfony/console/Input/ArrayInput.php +191 -0
- package/vendor/symfony/console/Input/Input.php +174 -0
- package/vendor/symfony/console/Input/InputArgument.php +160 -0
- package/vendor/symfony/console/Input/InputAwareInterface.php +26 -0
- package/vendor/symfony/console/Input/InputDefinition.php +402 -0
- package/vendor/symfony/console/Input/InputInterface.php +138 -0
- package/vendor/symfony/console/Input/InputOption.php +262 -0
- package/vendor/symfony/console/Input/StreamableInputInterface.php +37 -0
- package/vendor/symfony/console/Input/StringInput.php +85 -0
- package/vendor/symfony/console/LICENSE +19 -0
- package/vendor/symfony/console/Logger/ConsoleLogger.php +120 -0
- package/vendor/symfony/console/Messenger/RunCommandContext.php +25 -0
- package/vendor/symfony/console/Messenger/RunCommandMessage.php +36 -0
- package/vendor/symfony/console/Messenger/RunCommandMessageHandler.php +49 -0
- package/vendor/symfony/console/Output/AnsiColorMode.php +106 -0
- package/vendor/symfony/console/Output/BufferedOutput.php +40 -0
- package/vendor/symfony/console/Output/ConsoleOutput.php +153 -0
- package/vendor/symfony/console/Output/ConsoleOutputInterface.php +30 -0
- package/vendor/symfony/console/Output/ConsoleSectionOutput.php +237 -0
- package/vendor/symfony/console/Output/NullOutput.php +94 -0
- package/vendor/symfony/console/Output/Output.php +144 -0
- package/vendor/symfony/console/Output/OutputInterface.php +103 -0
- package/vendor/symfony/console/Output/StreamOutput.php +127 -0
- package/vendor/symfony/console/Output/TrimmedBufferOutput.php +58 -0
- package/vendor/symfony/console/Question/ChoiceQuestion.php +178 -0
- package/vendor/symfony/console/Question/ConfirmationQuestion.php +57 -0
- package/vendor/symfony/console/Question/Question.php +280 -0
- package/vendor/symfony/console/README.md +27 -0
- package/vendor/symfony/console/Resources/bin/hiddeninput.exe +0 -0
- package/vendor/symfony/console/Resources/completion.bash +94 -0
- package/vendor/symfony/console/Resources/completion.fish +25 -0
- package/vendor/symfony/console/Resources/completion.zsh +82 -0
- package/vendor/symfony/console/SignalRegistry/SignalMap.php +36 -0
- package/vendor/symfony/console/SignalRegistry/SignalRegistry.php +65 -0
- package/vendor/symfony/console/SingleCommandApplication.php +72 -0
- package/vendor/symfony/console/Style/OutputStyle.php +115 -0
- package/vendor/symfony/console/Style/StyleInterface.php +110 -0
- package/vendor/symfony/console/Style/SymfonyStyle.php +476 -0
- package/vendor/symfony/console/Terminal.php +227 -0
- package/vendor/symfony/console/Tester/ApplicationTester.php +83 -0
- package/vendor/symfony/console/Tester/CommandCompletionTester.php +54 -0
- package/vendor/symfony/console/Tester/CommandTester.php +74 -0
- package/vendor/symfony/console/Tester/Constraint/CommandIsSuccessful.php +43 -0
- package/vendor/symfony/console/Tester/TesterTrait.php +178 -0
- package/vendor/symfony/console/composer.json +55 -0
- package/vendor/symfony/deprecation-contracts/CHANGELOG.md +5 -0
- package/vendor/symfony/deprecation-contracts/LICENSE +19 -0
- package/vendor/symfony/deprecation-contracts/README.md +26 -0
- package/vendor/symfony/deprecation-contracts/composer.json +35 -0
- package/vendor/symfony/deprecation-contracts/function.php +27 -0
- package/vendor/symfony/event-dispatcher/Attribute/AsEventListener.php +35 -0
- package/vendor/symfony/event-dispatcher/CHANGELOG.md +96 -0
- package/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php +355 -0
- package/vendor/symfony/event-dispatcher/Debug/WrappedListener.php +143 -0
- package/vendor/symfony/event-dispatcher/DependencyInjection/AddEventAliasesPass.php +38 -0
- package/vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php +213 -0
- package/vendor/symfony/event-dispatcher/EventDispatcher.php +256 -0
- package/vendor/symfony/event-dispatcher/EventDispatcherInterface.php +66 -0
- package/vendor/symfony/event-dispatcher/EventSubscriberInterface.php +49 -0
- package/vendor/symfony/event-dispatcher/GenericEvent.php +155 -0
- package/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php +65 -0
- package/vendor/symfony/event-dispatcher/LICENSE +19 -0
- package/vendor/symfony/event-dispatcher/README.md +15 -0
- package/vendor/symfony/event-dispatcher/composer.json +47 -0
- package/vendor/symfony/event-dispatcher-contracts/CHANGELOG.md +5 -0
- package/vendor/symfony/event-dispatcher-contracts/Event.php +51 -0
- package/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php +33 -0
- package/vendor/symfony/event-dispatcher-contracts/LICENSE +19 -0
- package/vendor/symfony/event-dispatcher-contracts/README.md +9 -0
- package/vendor/symfony/event-dispatcher-contracts/composer.json +35 -0
- package/vendor/symfony/filesystem/CHANGELOG.md +92 -0
- package/vendor/symfony/filesystem/Exception/ExceptionInterface.php +21 -0
- package/vendor/symfony/filesystem/Exception/FileNotFoundException.php +34 -0
- package/vendor/symfony/filesystem/Exception/IOException.php +36 -0
- package/vendor/symfony/filesystem/Exception/IOExceptionInterface.php +25 -0
- package/vendor/symfony/filesystem/Exception/InvalidArgumentException.php +19 -0
- package/vendor/symfony/filesystem/Exception/RuntimeException.php +19 -0
- package/vendor/symfony/filesystem/Filesystem.php +773 -0
- package/vendor/symfony/filesystem/LICENSE +19 -0
- package/vendor/symfony/filesystem/Path.php +816 -0
- package/vendor/symfony/filesystem/README.md +13 -0
- package/vendor/symfony/filesystem/composer.json +33 -0
- package/vendor/symfony/finder/CHANGELOG.md +103 -0
- package/vendor/symfony/finder/Comparator/Comparator.php +62 -0
- package/vendor/symfony/finder/Comparator/DateComparator.php +50 -0
- package/vendor/symfony/finder/Comparator/NumberComparator.php +78 -0
- package/vendor/symfony/finder/Exception/AccessDeniedException.php +19 -0
- package/vendor/symfony/finder/Exception/DirectoryNotFoundException.php +19 -0
- package/vendor/symfony/finder/Finder.php +852 -0
- package/vendor/symfony/finder/Gitignore.php +91 -0
- package/vendor/symfony/finder/Glob.php +109 -0
- package/vendor/symfony/finder/Iterator/CustomFilterIterator.php +61 -0
- package/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php +58 -0
- package/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php +48 -0
- package/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php +110 -0
- package/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php +51 -0
- package/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php +58 -0
- package/vendor/symfony/finder/Iterator/FilenameFilterIterator.php +45 -0
- package/vendor/symfony/finder/Iterator/LazyIterator.php +32 -0
- package/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php +107 -0
- package/vendor/symfony/finder/Iterator/PathFilterIterator.php +56 -0
- package/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php +134 -0
- package/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php +57 -0
- package/vendor/symfony/finder/Iterator/SortableIterator.php +103 -0
- package/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php +173 -0
- package/vendor/symfony/finder/LICENSE +19 -0
- package/vendor/symfony/finder/README.md +14 -0
- package/vendor/symfony/finder/SplFileInfo.php +80 -0
- package/vendor/symfony/finder/composer.json +31 -0
- package/vendor/symfony/options-resolver/CHANGELOG.md +103 -0
- package/vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php +114 -0
- package/vendor/symfony/options-resolver/Exception/AccessException.php +22 -0
- package/vendor/symfony/options-resolver/Exception/ExceptionInterface.php +21 -0
- package/vendor/symfony/options-resolver/Exception/InvalidArgumentException.php +21 -0
- package/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php +23 -0
- package/vendor/symfony/options-resolver/Exception/MissingOptionsException.php +23 -0
- package/vendor/symfony/options-resolver/Exception/NoConfigurationException.php +26 -0
- package/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php +26 -0
- package/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php +21 -0
- package/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php +24 -0
- package/vendor/symfony/options-resolver/LICENSE +19 -0
- package/vendor/symfony/options-resolver/OptionConfigurator.php +160 -0
- package/vendor/symfony/options-resolver/Options.php +22 -0
- package/vendor/symfony/options-resolver/OptionsResolver.php +1396 -0
- package/vendor/symfony/options-resolver/README.md +15 -0
- package/vendor/symfony/options-resolver/composer.json +29 -0
- package/vendor/symfony/polyfill-ctype/Ctype.php +232 -0
- package/vendor/symfony/polyfill-ctype/LICENSE +19 -0
- package/vendor/symfony/polyfill-ctype/README.md +12 -0
- package/vendor/symfony/polyfill-ctype/bootstrap.php +50 -0
- package/vendor/symfony/polyfill-ctype/bootstrap80.php +46 -0
- package/vendor/symfony/polyfill-ctype/composer.json +38 -0
- package/vendor/symfony/polyfill-intl-grapheme/Grapheme.php +247 -0
- package/vendor/symfony/polyfill-intl-grapheme/LICENSE +19 -0
- package/vendor/symfony/polyfill-intl-grapheme/README.md +31 -0
- package/vendor/symfony/polyfill-intl-grapheme/bootstrap.php +58 -0
- package/vendor/symfony/polyfill-intl-grapheme/bootstrap80.php +50 -0
- package/vendor/symfony/polyfill-intl-grapheme/composer.json +35 -0
- package/vendor/symfony/polyfill-intl-normalizer/LICENSE +19 -0
- package/vendor/symfony/polyfill-intl-normalizer/Normalizer.php +310 -0
- package/vendor/symfony/polyfill-intl-normalizer/README.md +14 -0
- package/vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php +17 -0
- package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/canonicalComposition.php +945 -0
- package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/canonicalDecomposition.php +2065 -0
- package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/combiningClass.php +876 -0
- package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/compatibilityDecomposition.php +3695 -0
- package/vendor/symfony/polyfill-intl-normalizer/bootstrap.php +23 -0
- package/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php +19 -0
- package/vendor/symfony/polyfill-intl-normalizer/composer.json +36 -0
- package/vendor/symfony/polyfill-mbstring/LICENSE +19 -0
- package/vendor/symfony/polyfill-mbstring/Mbstring.php +1045 -0
- package/vendor/symfony/polyfill-mbstring/README.md +13 -0
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +119 -0
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1397 -0
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +5 -0
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +1489 -0
- package/vendor/symfony/polyfill-mbstring/bootstrap.php +172 -0
- package/vendor/symfony/polyfill-mbstring/bootstrap80.php +167 -0
- package/vendor/symfony/polyfill-mbstring/composer.json +39 -0
- package/vendor/symfony/polyfill-php80/LICENSE +19 -0
- package/vendor/symfony/polyfill-php80/Php80.php +115 -0
- package/vendor/symfony/polyfill-php80/PhpToken.php +106 -0
- package/vendor/symfony/polyfill-php80/README.md +25 -0
- package/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +31 -0
- package/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +16 -0
- package/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +20 -0
- package/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +16 -0
- package/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +16 -0
- package/vendor/symfony/polyfill-php80/bootstrap.php +42 -0
- package/vendor/symfony/polyfill-php80/composer.json +37 -0
- package/vendor/symfony/polyfill-php81/LICENSE +19 -0
- package/vendor/symfony/polyfill-php81/Php81.php +37 -0
- package/vendor/symfony/polyfill-php81/README.md +18 -0
- package/vendor/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php +51 -0
- package/vendor/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php +20 -0
- package/vendor/symfony/polyfill-php81/bootstrap.php +28 -0
- package/vendor/symfony/polyfill-php81/composer.json +33 -0
- package/vendor/symfony/process/CHANGELOG.md +134 -0
- package/vendor/symfony/process/Exception/ExceptionInterface.php +21 -0
- package/vendor/symfony/process/Exception/InvalidArgumentException.php +21 -0
- package/vendor/symfony/process/Exception/LogicException.php +21 -0
- package/vendor/symfony/process/Exception/ProcessFailedException.php +53 -0
- package/vendor/symfony/process/Exception/ProcessSignaledException.php +38 -0
- package/vendor/symfony/process/Exception/ProcessStartFailedException.php +43 -0
- package/vendor/symfony/process/Exception/ProcessTimedOutException.php +60 -0
- package/vendor/symfony/process/Exception/RunProcessFailedException.php +25 -0
- package/vendor/symfony/process/Exception/RuntimeException.php +21 -0
- package/vendor/symfony/process/ExecutableFinder.php +103 -0
- package/vendor/symfony/process/InputStream.php +91 -0
- package/vendor/symfony/process/LICENSE +19 -0
- package/vendor/symfony/process/Messenger/RunProcessContext.php +33 -0
- package/vendor/symfony/process/Messenger/RunProcessMessage.php +47 -0
- package/vendor/symfony/process/Messenger/RunProcessMessageHandler.php +36 -0
- package/vendor/symfony/process/PhpExecutableFinder.php +98 -0
- package/vendor/symfony/process/PhpProcess.php +66 -0
- package/vendor/symfony/process/PhpSubprocess.php +164 -0
- package/vendor/symfony/process/Pipes/AbstractPipes.php +176 -0
- package/vendor/symfony/process/Pipes/PipesInterface.php +61 -0
- package/vendor/symfony/process/Pipes/UnixPipes.php +144 -0
- package/vendor/symfony/process/Pipes/WindowsPipes.php +185 -0
- package/vendor/symfony/process/Process.php +1662 -0
- package/vendor/symfony/process/ProcessUtils.php +64 -0
- package/vendor/symfony/process/README.md +13 -0
- package/vendor/symfony/process/composer.json +28 -0
- package/vendor/symfony/service-contracts/Attribute/Required.php +25 -0
- package/vendor/symfony/service-contracts/Attribute/SubscribedService.php +47 -0
- package/vendor/symfony/service-contracts/CHANGELOG.md +5 -0
- package/vendor/symfony/service-contracts/LICENSE +19 -0
- package/vendor/symfony/service-contracts/README.md +9 -0
- package/vendor/symfony/service-contracts/ResetInterface.php +33 -0
- package/vendor/symfony/service-contracts/ServiceCollectionInterface.php +26 -0
- package/vendor/symfony/service-contracts/ServiceLocatorTrait.php +114 -0
- package/vendor/symfony/service-contracts/ServiceMethodsSubscriberTrait.php +80 -0
- package/vendor/symfony/service-contracts/ServiceProviderInterface.php +45 -0
- package/vendor/symfony/service-contracts/ServiceSubscriberInterface.php +62 -0
- package/vendor/symfony/service-contracts/ServiceSubscriberTrait.php +84 -0
- package/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php +23 -0
- package/vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php +97 -0
- package/vendor/symfony/service-contracts/composer.json +42 -0
- package/vendor/symfony/stopwatch/CHANGELOG.md +30 -0
- package/vendor/symfony/stopwatch/LICENSE +19 -0
- package/vendor/symfony/stopwatch/README.md +42 -0
- package/vendor/symfony/stopwatch/Section.php +155 -0
- package/vendor/symfony/stopwatch/Stopwatch.php +163 -0
- package/vendor/symfony/stopwatch/StopwatchEvent.php +238 -0
- package/vendor/symfony/stopwatch/StopwatchPeriod.php +73 -0
- package/vendor/symfony/stopwatch/composer.json +29 -0
- package/vendor/symfony/string/AbstractString.php +723 -0
- package/vendor/symfony/string/AbstractUnicodeString.php +670 -0
- package/vendor/symfony/string/ByteString.php +490 -0
- package/vendor/symfony/string/CHANGELOG.md +56 -0
- package/vendor/symfony/string/CodePointString.php +260 -0
- package/vendor/symfony/string/Exception/ExceptionInterface.php +16 -0
- package/vendor/symfony/string/Exception/InvalidArgumentException.php +16 -0
- package/vendor/symfony/string/Exception/RuntimeException.php +16 -0
- package/vendor/symfony/string/Inflector/EnglishInflector.php +589 -0
- package/vendor/symfony/string/Inflector/FrenchInflector.php +151 -0
- package/vendor/symfony/string/Inflector/InflectorInterface.php +33 -0
- package/vendor/symfony/string/Inflector/SpanishInflector.php +126 -0
- package/vendor/symfony/string/LICENSE +19 -0
- package/vendor/symfony/string/LazyString.php +145 -0
- package/vendor/symfony/string/README.md +14 -0
- package/vendor/symfony/string/Resources/data/wcswidth_table_wide.php +1182 -0
- package/vendor/symfony/string/Resources/data/wcswidth_table_zero.php +1466 -0
- package/vendor/symfony/string/Resources/functions.php +38 -0
- package/vendor/symfony/string/Slugger/AsciiSlugger.php +207 -0
- package/vendor/symfony/string/Slugger/SluggerInterface.php +27 -0
- package/vendor/symfony/string/TruncateMode.php +42 -0
- package/vendor/symfony/string/UnicodeString.php +382 -0
- package/vendor/symfony/string/composer.json +44 -0
- package/bin-codeformat.ts +0 -179
|
@@ -0,0 +1,1328 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Console;
|
|
13
|
+
|
|
14
|
+
use Symfony\Component\Console\Command\Command;
|
|
15
|
+
use Symfony\Component\Console\Command\CompleteCommand;
|
|
16
|
+
use Symfony\Component\Console\Command\DumpCompletionCommand;
|
|
17
|
+
use Symfony\Component\Console\Command\HelpCommand;
|
|
18
|
+
use Symfony\Component\Console\Command\LazyCommand;
|
|
19
|
+
use Symfony\Component\Console\Command\ListCommand;
|
|
20
|
+
use Symfony\Component\Console\CommandLoader\CommandLoaderInterface;
|
|
21
|
+
use Symfony\Component\Console\Completion\CompletionInput;
|
|
22
|
+
use Symfony\Component\Console\Completion\CompletionSuggestions;
|
|
23
|
+
use Symfony\Component\Console\Completion\Suggestion;
|
|
24
|
+
use Symfony\Component\Console\Event\ConsoleAlarmEvent;
|
|
25
|
+
use Symfony\Component\Console\Event\ConsoleCommandEvent;
|
|
26
|
+
use Symfony\Component\Console\Event\ConsoleErrorEvent;
|
|
27
|
+
use Symfony\Component\Console\Event\ConsoleSignalEvent;
|
|
28
|
+
use Symfony\Component\Console\Event\ConsoleTerminateEvent;
|
|
29
|
+
use Symfony\Component\Console\Exception\CommandNotFoundException;
|
|
30
|
+
use Symfony\Component\Console\Exception\ExceptionInterface;
|
|
31
|
+
use Symfony\Component\Console\Exception\LogicException;
|
|
32
|
+
use Symfony\Component\Console\Exception\NamespaceNotFoundException;
|
|
33
|
+
use Symfony\Component\Console\Exception\RuntimeException;
|
|
34
|
+
use Symfony\Component\Console\Formatter\OutputFormatter;
|
|
35
|
+
use Symfony\Component\Console\Helper\DebugFormatterHelper;
|
|
36
|
+
use Symfony\Component\Console\Helper\DescriptorHelper;
|
|
37
|
+
use Symfony\Component\Console\Helper\FormatterHelper;
|
|
38
|
+
use Symfony\Component\Console\Helper\Helper;
|
|
39
|
+
use Symfony\Component\Console\Helper\HelperSet;
|
|
40
|
+
use Symfony\Component\Console\Helper\ProcessHelper;
|
|
41
|
+
use Symfony\Component\Console\Helper\QuestionHelper;
|
|
42
|
+
use Symfony\Component\Console\Input\ArgvInput;
|
|
43
|
+
use Symfony\Component\Console\Input\ArrayInput;
|
|
44
|
+
use Symfony\Component\Console\Input\InputArgument;
|
|
45
|
+
use Symfony\Component\Console\Input\InputAwareInterface;
|
|
46
|
+
use Symfony\Component\Console\Input\InputDefinition;
|
|
47
|
+
use Symfony\Component\Console\Input\InputInterface;
|
|
48
|
+
use Symfony\Component\Console\Input\InputOption;
|
|
49
|
+
use Symfony\Component\Console\Output\ConsoleOutput;
|
|
50
|
+
use Symfony\Component\Console\Output\ConsoleOutputInterface;
|
|
51
|
+
use Symfony\Component\Console\Output\OutputInterface;
|
|
52
|
+
use Symfony\Component\Console\SignalRegistry\SignalRegistry;
|
|
53
|
+
use Symfony\Component\Console\Style\SymfonyStyle;
|
|
54
|
+
use Symfony\Component\ErrorHandler\ErrorHandler;
|
|
55
|
+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
|
|
56
|
+
use Symfony\Contracts\Service\ResetInterface;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* An Application is the container for a collection of commands.
|
|
60
|
+
*
|
|
61
|
+
* It is the main entry point of a Console application.
|
|
62
|
+
*
|
|
63
|
+
* This class is optimized for a standard CLI environment.
|
|
64
|
+
*
|
|
65
|
+
* Usage:
|
|
66
|
+
*
|
|
67
|
+
* $app = new Application('myapp', '1.0 (stable)');
|
|
68
|
+
* $app->add(new SimpleCommand());
|
|
69
|
+
* $app->run();
|
|
70
|
+
*
|
|
71
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
|
72
|
+
*/
|
|
73
|
+
class Application implements ResetInterface
|
|
74
|
+
{
|
|
75
|
+
private array $commands = [];
|
|
76
|
+
private bool $wantHelps = false;
|
|
77
|
+
private ?Command $runningCommand = null;
|
|
78
|
+
private ?CommandLoaderInterface $commandLoader = null;
|
|
79
|
+
private bool $catchExceptions = true;
|
|
80
|
+
private bool $catchErrors = false;
|
|
81
|
+
private bool $autoExit = true;
|
|
82
|
+
private InputDefinition $definition;
|
|
83
|
+
private HelperSet $helperSet;
|
|
84
|
+
private ?EventDispatcherInterface $dispatcher = null;
|
|
85
|
+
private Terminal $terminal;
|
|
86
|
+
private string $defaultCommand;
|
|
87
|
+
private bool $singleCommand = false;
|
|
88
|
+
private bool $initialized = false;
|
|
89
|
+
private ?SignalRegistry $signalRegistry = null;
|
|
90
|
+
private array $signalsToDispatchEvent = [];
|
|
91
|
+
private ?int $alarmInterval = null;
|
|
92
|
+
|
|
93
|
+
public function __construct(
|
|
94
|
+
private string $name = 'UNKNOWN',
|
|
95
|
+
private string $version = 'UNKNOWN',
|
|
96
|
+
) {
|
|
97
|
+
$this->terminal = new Terminal();
|
|
98
|
+
$this->defaultCommand = 'list';
|
|
99
|
+
if (\defined('SIGINT') && SignalRegistry::isSupported()) {
|
|
100
|
+
$this->signalRegistry = new SignalRegistry();
|
|
101
|
+
$this->signalsToDispatchEvent = [\SIGINT, \SIGQUIT, \SIGTERM, \SIGUSR1, \SIGUSR2, \SIGALRM];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @final
|
|
107
|
+
*/
|
|
108
|
+
public function setDispatcher(EventDispatcherInterface $dispatcher): void
|
|
109
|
+
{
|
|
110
|
+
$this->dispatcher = $dispatcher;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
public function setCommandLoader(CommandLoaderInterface $commandLoader): void
|
|
114
|
+
{
|
|
115
|
+
$this->commandLoader = $commandLoader;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
public function getSignalRegistry(): SignalRegistry
|
|
119
|
+
{
|
|
120
|
+
if (!$this->signalRegistry) {
|
|
121
|
+
throw new RuntimeException('Signals are not supported. Make sure that the "pcntl" extension is installed and that "pcntl_*" functions are not disabled by your php.ini\'s "disable_functions" directive.');
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return $this->signalRegistry;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
public function setSignalsToDispatchEvent(int ...$signalsToDispatchEvent): void
|
|
128
|
+
{
|
|
129
|
+
$this->signalsToDispatchEvent = $signalsToDispatchEvent;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Sets the interval to schedule a SIGALRM signal in seconds.
|
|
134
|
+
*/
|
|
135
|
+
public function setAlarmInterval(?int $seconds): void
|
|
136
|
+
{
|
|
137
|
+
$this->alarmInterval = $seconds;
|
|
138
|
+
$this->scheduleAlarm();
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Gets the interval in seconds on which a SIGALRM signal is dispatched.
|
|
143
|
+
*/
|
|
144
|
+
public function getAlarmInterval(): ?int
|
|
145
|
+
{
|
|
146
|
+
return $this->alarmInterval;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
private function scheduleAlarm(): void
|
|
150
|
+
{
|
|
151
|
+
if (null !== $this->alarmInterval) {
|
|
152
|
+
$this->getSignalRegistry()->scheduleAlarm($this->alarmInterval);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Runs the current application.
|
|
158
|
+
*
|
|
159
|
+
* @return int 0 if everything went fine, or an error code
|
|
160
|
+
*
|
|
161
|
+
* @throws \Exception When running fails. Bypass this when {@link setCatchExceptions()}.
|
|
162
|
+
*/
|
|
163
|
+
public function run(?InputInterface $input = null, ?OutputInterface $output = null): int
|
|
164
|
+
{
|
|
165
|
+
if (\function_exists('putenv')) {
|
|
166
|
+
@putenv('LINES='.$this->terminal->getHeight());
|
|
167
|
+
@putenv('COLUMNS='.$this->terminal->getWidth());
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
$input ??= new ArgvInput();
|
|
171
|
+
$output ??= new ConsoleOutput();
|
|
172
|
+
|
|
173
|
+
$renderException = function (\Throwable $e) use ($output) {
|
|
174
|
+
if ($output instanceof ConsoleOutputInterface) {
|
|
175
|
+
$this->renderThrowable($e, $output->getErrorOutput());
|
|
176
|
+
} else {
|
|
177
|
+
$this->renderThrowable($e, $output);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
if ($phpHandler = set_exception_handler($renderException)) {
|
|
181
|
+
restore_exception_handler();
|
|
182
|
+
if (!\is_array($phpHandler) || !$phpHandler[0] instanceof ErrorHandler) {
|
|
183
|
+
$errorHandler = true;
|
|
184
|
+
} elseif ($errorHandler = $phpHandler[0]->setExceptionHandler($renderException)) {
|
|
185
|
+
$phpHandler[0]->setExceptionHandler($errorHandler);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
try {
|
|
190
|
+
$this->configureIO($input, $output);
|
|
191
|
+
|
|
192
|
+
$exitCode = $this->doRun($input, $output);
|
|
193
|
+
} catch (\Throwable $e) {
|
|
194
|
+
if ($e instanceof \Exception && !$this->catchExceptions) {
|
|
195
|
+
throw $e;
|
|
196
|
+
}
|
|
197
|
+
if (!$e instanceof \Exception && !$this->catchErrors) {
|
|
198
|
+
throw $e;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
$renderException($e);
|
|
202
|
+
|
|
203
|
+
$exitCode = $e->getCode();
|
|
204
|
+
if (is_numeric($exitCode)) {
|
|
205
|
+
$exitCode = (int) $exitCode;
|
|
206
|
+
if ($exitCode <= 0) {
|
|
207
|
+
$exitCode = 1;
|
|
208
|
+
}
|
|
209
|
+
} else {
|
|
210
|
+
$exitCode = 1;
|
|
211
|
+
}
|
|
212
|
+
} finally {
|
|
213
|
+
// if the exception handler changed, keep it
|
|
214
|
+
// otherwise, unregister $renderException
|
|
215
|
+
if (!$phpHandler) {
|
|
216
|
+
if (set_exception_handler($renderException) === $renderException) {
|
|
217
|
+
restore_exception_handler();
|
|
218
|
+
}
|
|
219
|
+
restore_exception_handler();
|
|
220
|
+
} elseif (!$errorHandler) {
|
|
221
|
+
$finalHandler = $phpHandler[0]->setExceptionHandler(null);
|
|
222
|
+
if ($finalHandler !== $renderException) {
|
|
223
|
+
$phpHandler[0]->setExceptionHandler($finalHandler);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if ($this->autoExit) {
|
|
229
|
+
if ($exitCode > 255) {
|
|
230
|
+
$exitCode = 255;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
exit($exitCode);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
return $exitCode;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Runs the current application.
|
|
241
|
+
*
|
|
242
|
+
* @return int 0 if everything went fine, or an error code
|
|
243
|
+
*/
|
|
244
|
+
public function doRun(InputInterface $input, OutputInterface $output): int
|
|
245
|
+
{
|
|
246
|
+
if (true === $input->hasParameterOption(['--version', '-V'], true)) {
|
|
247
|
+
$output->writeln($this->getLongVersion());
|
|
248
|
+
|
|
249
|
+
return 0;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
try {
|
|
253
|
+
// Makes ArgvInput::getFirstArgument() able to distinguish an option from an argument.
|
|
254
|
+
$input->bind($this->getDefinition());
|
|
255
|
+
} catch (ExceptionInterface) {
|
|
256
|
+
// Errors must be ignored, full binding/validation happens later when the command is known.
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
$name = $this->getCommandName($input);
|
|
260
|
+
if (true === $input->hasParameterOption(['--help', '-h'], true)) {
|
|
261
|
+
if (!$name) {
|
|
262
|
+
$name = 'help';
|
|
263
|
+
$input = new ArrayInput(['command_name' => $this->defaultCommand]);
|
|
264
|
+
} else {
|
|
265
|
+
$this->wantHelps = true;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (!$name) {
|
|
270
|
+
$name = $this->defaultCommand;
|
|
271
|
+
$definition = $this->getDefinition();
|
|
272
|
+
$definition->setArguments(array_merge(
|
|
273
|
+
$definition->getArguments(),
|
|
274
|
+
[
|
|
275
|
+
'command' => new InputArgument('command', InputArgument::OPTIONAL, $definition->getArgument('command')->getDescription(), $name),
|
|
276
|
+
]
|
|
277
|
+
));
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
try {
|
|
281
|
+
$this->runningCommand = null;
|
|
282
|
+
// the command name MUST be the first element of the input
|
|
283
|
+
$command = $this->find($name);
|
|
284
|
+
} catch (\Throwable $e) {
|
|
285
|
+
if (($e instanceof CommandNotFoundException && !$e instanceof NamespaceNotFoundException) && 1 === \count($alternatives = $e->getAlternatives()) && $input->isInteractive()) {
|
|
286
|
+
$alternative = $alternatives[0];
|
|
287
|
+
|
|
288
|
+
$style = new SymfonyStyle($input, $output);
|
|
289
|
+
$output->writeln('');
|
|
290
|
+
$formattedBlock = (new FormatterHelper())->formatBlock(\sprintf('Command "%s" is not defined.', $name), 'error', true);
|
|
291
|
+
$output->writeln($formattedBlock);
|
|
292
|
+
if (!$style->confirm(\sprintf('Do you want to run "%s" instead? ', $alternative), false)) {
|
|
293
|
+
if (null !== $this->dispatcher) {
|
|
294
|
+
$event = new ConsoleErrorEvent($input, $output, $e);
|
|
295
|
+
$this->dispatcher->dispatch($event, ConsoleEvents::ERROR);
|
|
296
|
+
|
|
297
|
+
return $event->getExitCode();
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
return 1;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
$command = $this->find($alternative);
|
|
304
|
+
} else {
|
|
305
|
+
if (null !== $this->dispatcher) {
|
|
306
|
+
$event = new ConsoleErrorEvent($input, $output, $e);
|
|
307
|
+
$this->dispatcher->dispatch($event, ConsoleEvents::ERROR);
|
|
308
|
+
|
|
309
|
+
if (0 === $event->getExitCode()) {
|
|
310
|
+
return 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
$e = $event->getError();
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
try {
|
|
317
|
+
if ($e instanceof CommandNotFoundException && $namespace = $this->findNamespace($name)) {
|
|
318
|
+
$helper = new DescriptorHelper();
|
|
319
|
+
$helper->describe($output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output, $this, [
|
|
320
|
+
'format' => 'txt',
|
|
321
|
+
'raw_text' => false,
|
|
322
|
+
'namespace' => $namespace,
|
|
323
|
+
'short' => false,
|
|
324
|
+
]);
|
|
325
|
+
|
|
326
|
+
return isset($event) ? $event->getExitCode() : 1;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
throw $e;
|
|
330
|
+
} catch (NamespaceNotFoundException) {
|
|
331
|
+
throw $e;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if ($command instanceof LazyCommand) {
|
|
337
|
+
$command = $command->getCommand();
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
$this->runningCommand = $command;
|
|
341
|
+
$exitCode = $this->doRunCommand($command, $input, $output);
|
|
342
|
+
$this->runningCommand = null;
|
|
343
|
+
|
|
344
|
+
return $exitCode;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
public function reset(): void
|
|
348
|
+
{
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
public function setHelperSet(HelperSet $helperSet): void
|
|
352
|
+
{
|
|
353
|
+
$this->helperSet = $helperSet;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Get the helper set associated with the command.
|
|
358
|
+
*/
|
|
359
|
+
public function getHelperSet(): HelperSet
|
|
360
|
+
{
|
|
361
|
+
return $this->helperSet ??= $this->getDefaultHelperSet();
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
public function setDefinition(InputDefinition $definition): void
|
|
365
|
+
{
|
|
366
|
+
$this->definition = $definition;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Gets the InputDefinition related to this Application.
|
|
371
|
+
*/
|
|
372
|
+
public function getDefinition(): InputDefinition
|
|
373
|
+
{
|
|
374
|
+
$this->definition ??= $this->getDefaultInputDefinition();
|
|
375
|
+
|
|
376
|
+
if ($this->singleCommand) {
|
|
377
|
+
$inputDefinition = $this->definition;
|
|
378
|
+
$inputDefinition->setArguments();
|
|
379
|
+
|
|
380
|
+
return $inputDefinition;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
return $this->definition;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Adds suggestions to $suggestions for the current completion input (e.g. option or argument).
|
|
388
|
+
*/
|
|
389
|
+
public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void
|
|
390
|
+
{
|
|
391
|
+
if (
|
|
392
|
+
CompletionInput::TYPE_ARGUMENT_VALUE === $input->getCompletionType()
|
|
393
|
+
&& 'command' === $input->getCompletionName()
|
|
394
|
+
) {
|
|
395
|
+
foreach ($this->all() as $name => $command) {
|
|
396
|
+
// skip hidden commands and aliased commands as they already get added below
|
|
397
|
+
if ($command->isHidden() || $command->getName() !== $name) {
|
|
398
|
+
continue;
|
|
399
|
+
}
|
|
400
|
+
$suggestions->suggestValue(new Suggestion($command->getName(), $command->getDescription()));
|
|
401
|
+
foreach ($command->getAliases() as $name) {
|
|
402
|
+
$suggestions->suggestValue(new Suggestion($name, $command->getDescription()));
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (CompletionInput::TYPE_OPTION_NAME === $input->getCompletionType()) {
|
|
410
|
+
$suggestions->suggestOptions($this->getDefinition()->getOptions());
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Gets the help message.
|
|
416
|
+
*/
|
|
417
|
+
public function getHelp(): string
|
|
418
|
+
{
|
|
419
|
+
return $this->getLongVersion();
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Gets whether to catch exceptions or not during commands execution.
|
|
424
|
+
*/
|
|
425
|
+
public function areExceptionsCaught(): bool
|
|
426
|
+
{
|
|
427
|
+
return $this->catchExceptions;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Sets whether to catch exceptions or not during commands execution.
|
|
432
|
+
*/
|
|
433
|
+
public function setCatchExceptions(bool $boolean): void
|
|
434
|
+
{
|
|
435
|
+
$this->catchExceptions = $boolean;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Sets whether to catch errors or not during commands execution.
|
|
440
|
+
*/
|
|
441
|
+
public function setCatchErrors(bool $catchErrors = true): void
|
|
442
|
+
{
|
|
443
|
+
$this->catchErrors = $catchErrors;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Gets whether to automatically exit after a command execution or not.
|
|
448
|
+
*/
|
|
449
|
+
public function isAutoExitEnabled(): bool
|
|
450
|
+
{
|
|
451
|
+
return $this->autoExit;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Sets whether to automatically exit after a command execution or not.
|
|
456
|
+
*/
|
|
457
|
+
public function setAutoExit(bool $boolean): void
|
|
458
|
+
{
|
|
459
|
+
$this->autoExit = $boolean;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Gets the name of the application.
|
|
464
|
+
*/
|
|
465
|
+
public function getName(): string
|
|
466
|
+
{
|
|
467
|
+
return $this->name;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Sets the application name.
|
|
472
|
+
*/
|
|
473
|
+
public function setName(string $name): void
|
|
474
|
+
{
|
|
475
|
+
$this->name = $name;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Gets the application version.
|
|
480
|
+
*/
|
|
481
|
+
public function getVersion(): string
|
|
482
|
+
{
|
|
483
|
+
return $this->version;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Sets the application version.
|
|
488
|
+
*/
|
|
489
|
+
public function setVersion(string $version): void
|
|
490
|
+
{
|
|
491
|
+
$this->version = $version;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Returns the long version of the application.
|
|
496
|
+
*/
|
|
497
|
+
public function getLongVersion(): string
|
|
498
|
+
{
|
|
499
|
+
if ('UNKNOWN' !== $this->getName()) {
|
|
500
|
+
if ('UNKNOWN' !== $this->getVersion()) {
|
|
501
|
+
return \sprintf('%s <info>%s</info>', $this->getName(), $this->getVersion());
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
return $this->getName();
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
return 'Console Tool';
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Registers a new command.
|
|
512
|
+
*/
|
|
513
|
+
public function register(string $name): Command
|
|
514
|
+
{
|
|
515
|
+
return $this->add(new Command($name));
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Adds an array of command objects.
|
|
520
|
+
*
|
|
521
|
+
* If a Command is not enabled it will not be added.
|
|
522
|
+
*
|
|
523
|
+
* @param Command[] $commands An array of commands
|
|
524
|
+
*/
|
|
525
|
+
public function addCommands(array $commands): void
|
|
526
|
+
{
|
|
527
|
+
foreach ($commands as $command) {
|
|
528
|
+
$this->add($command);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Adds a command object.
|
|
534
|
+
*
|
|
535
|
+
* If a command with the same name already exists, it will be overridden.
|
|
536
|
+
* If the command is not enabled it will not be added.
|
|
537
|
+
*/
|
|
538
|
+
public function add(Command $command): ?Command
|
|
539
|
+
{
|
|
540
|
+
$this->init();
|
|
541
|
+
|
|
542
|
+
$command->setApplication($this);
|
|
543
|
+
|
|
544
|
+
if (!$command->isEnabled()) {
|
|
545
|
+
$command->setApplication(null);
|
|
546
|
+
|
|
547
|
+
return null;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
if (!$command instanceof LazyCommand) {
|
|
551
|
+
// Will throw if the command is not correctly initialized.
|
|
552
|
+
$command->getDefinition();
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
if (!$command->getName()) {
|
|
556
|
+
throw new LogicException(\sprintf('The command defined in "%s" cannot have an empty name.', get_debug_type($command)));
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
$this->commands[$command->getName()] = $command;
|
|
560
|
+
|
|
561
|
+
foreach ($command->getAliases() as $alias) {
|
|
562
|
+
$this->commands[$alias] = $command;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
return $command;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Returns a registered command by name or alias.
|
|
570
|
+
*
|
|
571
|
+
* @throws CommandNotFoundException When given command name does not exist
|
|
572
|
+
*/
|
|
573
|
+
public function get(string $name): Command
|
|
574
|
+
{
|
|
575
|
+
$this->init();
|
|
576
|
+
|
|
577
|
+
if (!$this->has($name)) {
|
|
578
|
+
throw new CommandNotFoundException(\sprintf('The command "%s" does not exist.', $name));
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
// When the command has a different name than the one used at the command loader level
|
|
582
|
+
if (!isset($this->commands[$name])) {
|
|
583
|
+
throw new CommandNotFoundException(\sprintf('The "%s" command cannot be found because it is registered under multiple names. Make sure you don\'t set a different name via constructor or "setName()".', $name));
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
$command = $this->commands[$name];
|
|
587
|
+
|
|
588
|
+
if ($this->wantHelps) {
|
|
589
|
+
$this->wantHelps = false;
|
|
590
|
+
|
|
591
|
+
$helpCommand = $this->get('help');
|
|
592
|
+
$helpCommand->setCommand($command);
|
|
593
|
+
|
|
594
|
+
return $helpCommand;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
return $command;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Returns true if the command exists, false otherwise.
|
|
602
|
+
*/
|
|
603
|
+
public function has(string $name): bool
|
|
604
|
+
{
|
|
605
|
+
$this->init();
|
|
606
|
+
|
|
607
|
+
return isset($this->commands[$name]) || ($this->commandLoader?->has($name) && $this->add($this->commandLoader->get($name)));
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Returns an array of all unique namespaces used by currently registered commands.
|
|
612
|
+
*
|
|
613
|
+
* It does not return the global namespace which always exists.
|
|
614
|
+
*
|
|
615
|
+
* @return string[]
|
|
616
|
+
*/
|
|
617
|
+
public function getNamespaces(): array
|
|
618
|
+
{
|
|
619
|
+
$namespaces = [];
|
|
620
|
+
foreach ($this->all() as $command) {
|
|
621
|
+
if ($command->isHidden()) {
|
|
622
|
+
continue;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
$namespaces[] = $this->extractAllNamespaces($command->getName());
|
|
626
|
+
|
|
627
|
+
foreach ($command->getAliases() as $alias) {
|
|
628
|
+
$namespaces[] = $this->extractAllNamespaces($alias);
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
return array_values(array_unique(array_filter(array_merge([], ...$namespaces))));
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Finds a registered namespace by a name or an abbreviation.
|
|
637
|
+
*
|
|
638
|
+
* @throws NamespaceNotFoundException When namespace is incorrect or ambiguous
|
|
639
|
+
*/
|
|
640
|
+
public function findNamespace(string $namespace): string
|
|
641
|
+
{
|
|
642
|
+
$allNamespaces = $this->getNamespaces();
|
|
643
|
+
$expr = implode('[^:]*:', array_map('preg_quote', explode(':', $namespace))).'[^:]*';
|
|
644
|
+
$namespaces = preg_grep('{^'.$expr.'}', $allNamespaces);
|
|
645
|
+
|
|
646
|
+
if (!$namespaces) {
|
|
647
|
+
$message = \sprintf('There are no commands defined in the "%s" namespace.', $namespace);
|
|
648
|
+
|
|
649
|
+
if ($alternatives = $this->findAlternatives($namespace, $allNamespaces)) {
|
|
650
|
+
if (1 == \count($alternatives)) {
|
|
651
|
+
$message .= "\n\nDid you mean this?\n ";
|
|
652
|
+
} else {
|
|
653
|
+
$message .= "\n\nDid you mean one of these?\n ";
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
$message .= implode("\n ", $alternatives);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
throw new NamespaceNotFoundException($message, $alternatives);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
$exact = \in_array($namespace, $namespaces, true);
|
|
663
|
+
if (\count($namespaces) > 1 && !$exact) {
|
|
664
|
+
throw new NamespaceNotFoundException(\sprintf("The namespace \"%s\" is ambiguous.\nDid you mean one of these?\n%s.", $namespace, $this->getAbbreviationSuggestions(array_values($namespaces))), array_values($namespaces));
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
return $exact ? $namespace : reset($namespaces);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Finds a command by name or alias.
|
|
672
|
+
*
|
|
673
|
+
* Contrary to get, this command tries to find the best
|
|
674
|
+
* match if you give it an abbreviation of a name or alias.
|
|
675
|
+
*
|
|
676
|
+
* @throws CommandNotFoundException When command name is incorrect or ambiguous
|
|
677
|
+
*/
|
|
678
|
+
public function find(string $name): Command
|
|
679
|
+
{
|
|
680
|
+
$this->init();
|
|
681
|
+
|
|
682
|
+
$aliases = [];
|
|
683
|
+
|
|
684
|
+
foreach ($this->commands as $command) {
|
|
685
|
+
foreach ($command->getAliases() as $alias) {
|
|
686
|
+
if (!$this->has($alias)) {
|
|
687
|
+
$this->commands[$alias] = $command;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
if ($this->has($name)) {
|
|
693
|
+
return $this->get($name);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
$allCommands = $this->commandLoader ? array_merge($this->commandLoader->getNames(), array_keys($this->commands)) : array_keys($this->commands);
|
|
697
|
+
$expr = implode('[^:]*:', array_map('preg_quote', explode(':', $name))).'[^:]*';
|
|
698
|
+
$commands = preg_grep('{^'.$expr.'}', $allCommands);
|
|
699
|
+
|
|
700
|
+
if (!$commands) {
|
|
701
|
+
$commands = preg_grep('{^'.$expr.'}i', $allCommands);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
// if no commands matched or we just matched namespaces
|
|
705
|
+
if (!$commands || \count(preg_grep('{^'.$expr.'$}i', $commands)) < 1) {
|
|
706
|
+
if (false !== $pos = strrpos($name, ':')) {
|
|
707
|
+
// check if a namespace exists and contains commands
|
|
708
|
+
$this->findNamespace(substr($name, 0, $pos));
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
$message = \sprintf('Command "%s" is not defined.', $name);
|
|
712
|
+
|
|
713
|
+
if ($alternatives = $this->findAlternatives($name, $allCommands)) {
|
|
714
|
+
// remove hidden commands
|
|
715
|
+
$alternatives = array_filter($alternatives, fn ($name) => !$this->get($name)->isHidden());
|
|
716
|
+
|
|
717
|
+
if (1 == \count($alternatives)) {
|
|
718
|
+
$message .= "\n\nDid you mean this?\n ";
|
|
719
|
+
} else {
|
|
720
|
+
$message .= "\n\nDid you mean one of these?\n ";
|
|
721
|
+
}
|
|
722
|
+
$message .= implode("\n ", $alternatives);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
throw new CommandNotFoundException($message, array_values($alternatives));
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
// filter out aliases for commands which are already on the list
|
|
729
|
+
if (\count($commands) > 1) {
|
|
730
|
+
$commandList = $this->commandLoader ? array_merge(array_flip($this->commandLoader->getNames()), $this->commands) : $this->commands;
|
|
731
|
+
$commands = array_unique(array_filter($commands, function ($nameOrAlias) use (&$commandList, $commands, &$aliases) {
|
|
732
|
+
if (!$commandList[$nameOrAlias] instanceof Command) {
|
|
733
|
+
$commandList[$nameOrAlias] = $this->commandLoader->get($nameOrAlias);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
$commandName = $commandList[$nameOrAlias]->getName();
|
|
737
|
+
|
|
738
|
+
$aliases[$nameOrAlias] = $commandName;
|
|
739
|
+
|
|
740
|
+
return $commandName === $nameOrAlias || !\in_array($commandName, $commands, true);
|
|
741
|
+
}));
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
if (\count($commands) > 1) {
|
|
745
|
+
$usableWidth = $this->terminal->getWidth() - 10;
|
|
746
|
+
$abbrevs = array_values($commands);
|
|
747
|
+
$maxLen = 0;
|
|
748
|
+
foreach ($abbrevs as $abbrev) {
|
|
749
|
+
$maxLen = max(Helper::width($abbrev), $maxLen);
|
|
750
|
+
}
|
|
751
|
+
$abbrevs = array_map(function ($cmd) use ($commandList, $usableWidth, $maxLen, &$commands) {
|
|
752
|
+
if ($commandList[$cmd]->isHidden()) {
|
|
753
|
+
unset($commands[array_search($cmd, $commands)]);
|
|
754
|
+
|
|
755
|
+
return false;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
$abbrev = str_pad($cmd, $maxLen, ' ').' '.$commandList[$cmd]->getDescription();
|
|
759
|
+
|
|
760
|
+
return Helper::width($abbrev) > $usableWidth ? Helper::substr($abbrev, 0, $usableWidth - 3).'...' : $abbrev;
|
|
761
|
+
}, array_values($commands));
|
|
762
|
+
|
|
763
|
+
if (\count($commands) > 1) {
|
|
764
|
+
$suggestions = $this->getAbbreviationSuggestions(array_filter($abbrevs));
|
|
765
|
+
|
|
766
|
+
throw new CommandNotFoundException(\sprintf("Command \"%s\" is ambiguous.\nDid you mean one of these?\n%s.", $name, $suggestions), array_values($commands));
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
$command = $this->get(reset($commands));
|
|
771
|
+
|
|
772
|
+
if ($command->isHidden()) {
|
|
773
|
+
throw new CommandNotFoundException(\sprintf('The command "%s" does not exist.', $name));
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
return $command;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Gets the commands (registered in the given namespace if provided).
|
|
781
|
+
*
|
|
782
|
+
* The array keys are the full names and the values the command instances.
|
|
783
|
+
*
|
|
784
|
+
* @return Command[]
|
|
785
|
+
*/
|
|
786
|
+
public function all(?string $namespace = null): array
|
|
787
|
+
{
|
|
788
|
+
$this->init();
|
|
789
|
+
|
|
790
|
+
if (null === $namespace) {
|
|
791
|
+
if (!$this->commandLoader) {
|
|
792
|
+
return $this->commands;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
$commands = $this->commands;
|
|
796
|
+
foreach ($this->commandLoader->getNames() as $name) {
|
|
797
|
+
if (!isset($commands[$name]) && $this->has($name)) {
|
|
798
|
+
$commands[$name] = $this->get($name);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
return $commands;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
$commands = [];
|
|
806
|
+
foreach ($this->commands as $name => $command) {
|
|
807
|
+
if ($namespace === $this->extractNamespace($name, substr_count($namespace, ':') + 1)) {
|
|
808
|
+
$commands[$name] = $command;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
if ($this->commandLoader) {
|
|
813
|
+
foreach ($this->commandLoader->getNames() as $name) {
|
|
814
|
+
if (!isset($commands[$name]) && $namespace === $this->extractNamespace($name, substr_count($namespace, ':') + 1) && $this->has($name)) {
|
|
815
|
+
$commands[$name] = $this->get($name);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
return $commands;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Returns an array of possible abbreviations given a set of names.
|
|
825
|
+
*
|
|
826
|
+
* @return string[][]
|
|
827
|
+
*/
|
|
828
|
+
public static function getAbbreviations(array $names): array
|
|
829
|
+
{
|
|
830
|
+
$abbrevs = [];
|
|
831
|
+
foreach ($names as $name) {
|
|
832
|
+
for ($len = \strlen($name); $len > 0; --$len) {
|
|
833
|
+
$abbrev = substr($name, 0, $len);
|
|
834
|
+
$abbrevs[$abbrev][] = $name;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
return $abbrevs;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
public function renderThrowable(\Throwable $e, OutputInterface $output): void
|
|
842
|
+
{
|
|
843
|
+
$output->writeln('', OutputInterface::VERBOSITY_QUIET);
|
|
844
|
+
|
|
845
|
+
$this->doRenderThrowable($e, $output);
|
|
846
|
+
|
|
847
|
+
if (null !== $this->runningCommand) {
|
|
848
|
+
$output->writeln(\sprintf('<info>%s</info>', OutputFormatter::escape(\sprintf($this->runningCommand->getSynopsis(), $this->getName()))), OutputInterface::VERBOSITY_QUIET);
|
|
849
|
+
$output->writeln('', OutputInterface::VERBOSITY_QUIET);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
protected function doRenderThrowable(\Throwable $e, OutputInterface $output): void
|
|
854
|
+
{
|
|
855
|
+
do {
|
|
856
|
+
$message = trim($e->getMessage());
|
|
857
|
+
if ('' === $message || OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
|
|
858
|
+
$class = get_debug_type($e);
|
|
859
|
+
$title = \sprintf(' [%s%s] ', $class, 0 !== ($code = $e->getCode()) ? ' ('.$code.')' : '');
|
|
860
|
+
$len = Helper::width($title);
|
|
861
|
+
} else {
|
|
862
|
+
$len = 0;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
if (str_contains($message, "@anonymous\0")) {
|
|
866
|
+
$message = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)?[0-9a-fA-F]++/', fn ($m) => class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class').'@anonymous' : $m[0], $message);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
$width = $this->terminal->getWidth() ? $this->terminal->getWidth() - 1 : \PHP_INT_MAX;
|
|
870
|
+
$lines = [];
|
|
871
|
+
foreach ('' !== $message ? preg_split('/\r?\n/', $message) : [] as $line) {
|
|
872
|
+
foreach ($this->splitStringByWidth($line, $width - 4) as $line) {
|
|
873
|
+
// pre-format lines to get the right string length
|
|
874
|
+
$lineLength = Helper::width($line) + 4;
|
|
875
|
+
$lines[] = [$line, $lineLength];
|
|
876
|
+
|
|
877
|
+
$len = max($lineLength, $len);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
$messages = [];
|
|
882
|
+
if (!$e instanceof ExceptionInterface || OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
|
|
883
|
+
$messages[] = \sprintf('<comment>%s</comment>', OutputFormatter::escape(\sprintf('In %s line %s:', basename($e->getFile()) ?: 'n/a', $e->getLine() ?: 'n/a')));
|
|
884
|
+
}
|
|
885
|
+
$messages[] = $emptyLine = \sprintf('<error>%s</error>', str_repeat(' ', $len));
|
|
886
|
+
if ('' === $message || OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
|
|
887
|
+
$messages[] = \sprintf('<error>%s%s</error>', $title, str_repeat(' ', max(0, $len - Helper::width($title))));
|
|
888
|
+
}
|
|
889
|
+
foreach ($lines as $line) {
|
|
890
|
+
$messages[] = \sprintf('<error> %s %s</error>', OutputFormatter::escape($line[0]), str_repeat(' ', $len - $line[1]));
|
|
891
|
+
}
|
|
892
|
+
$messages[] = $emptyLine;
|
|
893
|
+
$messages[] = '';
|
|
894
|
+
|
|
895
|
+
$output->writeln($messages, OutputInterface::VERBOSITY_QUIET);
|
|
896
|
+
|
|
897
|
+
if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
|
|
898
|
+
$output->writeln('<comment>Exception trace:</comment>', OutputInterface::VERBOSITY_QUIET);
|
|
899
|
+
|
|
900
|
+
// exception related properties
|
|
901
|
+
$trace = $e->getTrace();
|
|
902
|
+
|
|
903
|
+
array_unshift($trace, [
|
|
904
|
+
'function' => '',
|
|
905
|
+
'file' => $e->getFile() ?: 'n/a',
|
|
906
|
+
'line' => $e->getLine() ?: 'n/a',
|
|
907
|
+
'args' => [],
|
|
908
|
+
]);
|
|
909
|
+
|
|
910
|
+
for ($i = 0, $count = \count($trace); $i < $count; ++$i) {
|
|
911
|
+
$class = $trace[$i]['class'] ?? '';
|
|
912
|
+
$type = $trace[$i]['type'] ?? '';
|
|
913
|
+
$function = $trace[$i]['function'] ?? '';
|
|
914
|
+
$file = $trace[$i]['file'] ?? 'n/a';
|
|
915
|
+
$line = $trace[$i]['line'] ?? 'n/a';
|
|
916
|
+
|
|
917
|
+
$output->writeln(\sprintf(' %s%s at <info>%s:%s</info>', $class, $function ? $type.$function.'()' : '', $file, $line), OutputInterface::VERBOSITY_QUIET);
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
$output->writeln('', OutputInterface::VERBOSITY_QUIET);
|
|
921
|
+
}
|
|
922
|
+
} while ($e = $e->getPrevious());
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Configures the input and output instances based on the user arguments and options.
|
|
927
|
+
*/
|
|
928
|
+
protected function configureIO(InputInterface $input, OutputInterface $output): void
|
|
929
|
+
{
|
|
930
|
+
if (true === $input->hasParameterOption(['--ansi'], true)) {
|
|
931
|
+
$output->setDecorated(true);
|
|
932
|
+
} elseif (true === $input->hasParameterOption(['--no-ansi'], true)) {
|
|
933
|
+
$output->setDecorated(false);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
if (true === $input->hasParameterOption(['--no-interaction', '-n'], true)) {
|
|
937
|
+
$input->setInteractive(false);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
switch ($shellVerbosity = (int) getenv('SHELL_VERBOSITY')) {
|
|
941
|
+
case -2:
|
|
942
|
+
$output->setVerbosity(OutputInterface::VERBOSITY_SILENT);
|
|
943
|
+
break;
|
|
944
|
+
case -1:
|
|
945
|
+
$output->setVerbosity(OutputInterface::VERBOSITY_QUIET);
|
|
946
|
+
break;
|
|
947
|
+
case 1:
|
|
948
|
+
$output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
|
|
949
|
+
break;
|
|
950
|
+
case 2:
|
|
951
|
+
$output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE);
|
|
952
|
+
break;
|
|
953
|
+
case 3:
|
|
954
|
+
$output->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
|
|
955
|
+
break;
|
|
956
|
+
default:
|
|
957
|
+
$shellVerbosity = 0;
|
|
958
|
+
break;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
if (true === $input->hasParameterOption(['--silent'], true)) {
|
|
962
|
+
$output->setVerbosity(OutputInterface::VERBOSITY_SILENT);
|
|
963
|
+
$shellVerbosity = -2;
|
|
964
|
+
} elseif (true === $input->hasParameterOption(['--quiet', '-q'], true)) {
|
|
965
|
+
$output->setVerbosity(OutputInterface::VERBOSITY_QUIET);
|
|
966
|
+
$shellVerbosity = -1;
|
|
967
|
+
} else {
|
|
968
|
+
if ($input->hasParameterOption('-vvv', true) || $input->hasParameterOption('--verbose=3', true) || 3 === $input->getParameterOption('--verbose', false, true)) {
|
|
969
|
+
$output->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
|
|
970
|
+
$shellVerbosity = 3;
|
|
971
|
+
} elseif ($input->hasParameterOption('-vv', true) || $input->hasParameterOption('--verbose=2', true) || 2 === $input->getParameterOption('--verbose', false, true)) {
|
|
972
|
+
$output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE);
|
|
973
|
+
$shellVerbosity = 2;
|
|
974
|
+
} elseif ($input->hasParameterOption('-v', true) || $input->hasParameterOption('--verbose=1', true) || $input->hasParameterOption('--verbose', true) || $input->getParameterOption('--verbose', false, true)) {
|
|
975
|
+
$output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
|
|
976
|
+
$shellVerbosity = 1;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
if (0 > $shellVerbosity) {
|
|
981
|
+
$input->setInteractive(false);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
if (\function_exists('putenv')) {
|
|
985
|
+
@putenv('SHELL_VERBOSITY='.$shellVerbosity);
|
|
986
|
+
}
|
|
987
|
+
$_ENV['SHELL_VERBOSITY'] = $shellVerbosity;
|
|
988
|
+
$_SERVER['SHELL_VERBOSITY'] = $shellVerbosity;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Runs the current command.
|
|
993
|
+
*
|
|
994
|
+
* If an event dispatcher has been attached to the application,
|
|
995
|
+
* events are also dispatched during the life-cycle of the command.
|
|
996
|
+
*
|
|
997
|
+
* @return int 0 if everything went fine, or an error code
|
|
998
|
+
*/
|
|
999
|
+
protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output): int
|
|
1000
|
+
{
|
|
1001
|
+
foreach ($command->getHelperSet() as $helper) {
|
|
1002
|
+
if ($helper instanceof InputAwareInterface) {
|
|
1003
|
+
$helper->setInput($input);
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
if (($commandSignals = $command->getSubscribedSignals()) || $this->dispatcher && $this->signalsToDispatchEvent) {
|
|
1008
|
+
$signalRegistry = $this->getSignalRegistry();
|
|
1009
|
+
|
|
1010
|
+
if (Terminal::hasSttyAvailable()) {
|
|
1011
|
+
$sttyMode = shell_exec('stty -g');
|
|
1012
|
+
|
|
1013
|
+
foreach ([\SIGINT, \SIGQUIT, \SIGTERM] as $signal) {
|
|
1014
|
+
$signalRegistry->register($signal, static fn () => shell_exec('stty '.$sttyMode));
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
if ($this->dispatcher) {
|
|
1019
|
+
// We register application signals, so that we can dispatch the event
|
|
1020
|
+
foreach ($this->signalsToDispatchEvent as $signal) {
|
|
1021
|
+
$signalEvent = new ConsoleSignalEvent($command, $input, $output, $signal);
|
|
1022
|
+
$alarmEvent = \SIGALRM === $signal ? new ConsoleAlarmEvent($command, $input, $output) : null;
|
|
1023
|
+
|
|
1024
|
+
$signalRegistry->register($signal, function ($signal) use ($signalEvent, $alarmEvent, $command, $commandSignals, $input, $output) {
|
|
1025
|
+
$this->dispatcher->dispatch($signalEvent, ConsoleEvents::SIGNAL);
|
|
1026
|
+
$exitCode = $signalEvent->getExitCode();
|
|
1027
|
+
|
|
1028
|
+
if (null !== $alarmEvent) {
|
|
1029
|
+
if (false !== $exitCode) {
|
|
1030
|
+
$alarmEvent->setExitCode($exitCode);
|
|
1031
|
+
} else {
|
|
1032
|
+
$alarmEvent->abortExit();
|
|
1033
|
+
}
|
|
1034
|
+
$this->dispatcher->dispatch($alarmEvent);
|
|
1035
|
+
$exitCode = $alarmEvent->getExitCode();
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
// If the command is signalable, we call the handleSignal() method
|
|
1039
|
+
if (\in_array($signal, $commandSignals, true)) {
|
|
1040
|
+
$exitCode = $command->handleSignal($signal, $exitCode);
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
if (\SIGALRM === $signal) {
|
|
1044
|
+
$this->scheduleAlarm();
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
if (false !== $exitCode) {
|
|
1048
|
+
$event = new ConsoleTerminateEvent($command, $input, $output, $exitCode, $signal);
|
|
1049
|
+
$this->dispatcher->dispatch($event, ConsoleEvents::TERMINATE);
|
|
1050
|
+
|
|
1051
|
+
exit($event->getExitCode());
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
// then we register command signals, but not if already handled after the dispatcher
|
|
1057
|
+
$commandSignals = array_diff($commandSignals, $this->signalsToDispatchEvent);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
foreach ($commandSignals as $signal) {
|
|
1061
|
+
$signalRegistry->register($signal, function (int $signal) use ($command): void {
|
|
1062
|
+
if (\SIGALRM === $signal) {
|
|
1063
|
+
$this->scheduleAlarm();
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
if (false !== $exitCode = $command->handleSignal($signal)) {
|
|
1067
|
+
exit($exitCode);
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
if (null === $this->dispatcher) {
|
|
1074
|
+
return $command->run($input, $output);
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
// bind before the console.command event, so the listeners have access to input options/arguments
|
|
1078
|
+
try {
|
|
1079
|
+
$command->mergeApplicationDefinition();
|
|
1080
|
+
$input->bind($command->getDefinition());
|
|
1081
|
+
} catch (ExceptionInterface) {
|
|
1082
|
+
// ignore invalid options/arguments for now, to allow the event listeners to customize the InputDefinition
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
$event = new ConsoleCommandEvent($command, $input, $output);
|
|
1086
|
+
$e = null;
|
|
1087
|
+
|
|
1088
|
+
try {
|
|
1089
|
+
$this->dispatcher->dispatch($event, ConsoleEvents::COMMAND);
|
|
1090
|
+
|
|
1091
|
+
if ($event->commandShouldRun()) {
|
|
1092
|
+
$exitCode = $command->run($input, $output);
|
|
1093
|
+
} else {
|
|
1094
|
+
$exitCode = ConsoleCommandEvent::RETURN_CODE_DISABLED;
|
|
1095
|
+
}
|
|
1096
|
+
} catch (\Throwable $e) {
|
|
1097
|
+
$event = new ConsoleErrorEvent($input, $output, $e, $command);
|
|
1098
|
+
$this->dispatcher->dispatch($event, ConsoleEvents::ERROR);
|
|
1099
|
+
$e = $event->getError();
|
|
1100
|
+
|
|
1101
|
+
if (0 === $exitCode = $event->getExitCode()) {
|
|
1102
|
+
$e = null;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
$event = new ConsoleTerminateEvent($command, $input, $output, $exitCode);
|
|
1107
|
+
$this->dispatcher->dispatch($event, ConsoleEvents::TERMINATE);
|
|
1108
|
+
|
|
1109
|
+
if (null !== $e) {
|
|
1110
|
+
throw $e;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
return $event->getExitCode();
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Gets the name of the command based on input.
|
|
1118
|
+
*/
|
|
1119
|
+
protected function getCommandName(InputInterface $input): ?string
|
|
1120
|
+
{
|
|
1121
|
+
return $this->singleCommand ? $this->defaultCommand : $input->getFirstArgument();
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Gets the default input definition.
|
|
1126
|
+
*/
|
|
1127
|
+
protected function getDefaultInputDefinition(): InputDefinition
|
|
1128
|
+
{
|
|
1129
|
+
return new InputDefinition([
|
|
1130
|
+
new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),
|
|
1131
|
+
new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display help for the given command. When no command is given display help for the <info>'.$this->defaultCommand.'</info> command'),
|
|
1132
|
+
new InputOption('--silent', null, InputOption::VALUE_NONE, 'Do not output any message'),
|
|
1133
|
+
new InputOption('--quiet', '-q', InputOption::VALUE_NONE, 'Only errors are displayed. All other output is suppressed'),
|
|
1134
|
+
new InputOption('--verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug'),
|
|
1135
|
+
new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this application version'),
|
|
1136
|
+
new InputOption('--ansi', '', InputOption::VALUE_NEGATABLE, 'Force (or disable --no-ansi) ANSI output', null),
|
|
1137
|
+
new InputOption('--no-interaction', '-n', InputOption::VALUE_NONE, 'Do not ask any interactive question'),
|
|
1138
|
+
]);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Gets the default commands that should always be available.
|
|
1143
|
+
*
|
|
1144
|
+
* @return Command[]
|
|
1145
|
+
*/
|
|
1146
|
+
protected function getDefaultCommands(): array
|
|
1147
|
+
{
|
|
1148
|
+
return [new HelpCommand(), new ListCommand(), new CompleteCommand(), new DumpCompletionCommand()];
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* Gets the default helper set with the helpers that should always be available.
|
|
1153
|
+
*/
|
|
1154
|
+
protected function getDefaultHelperSet(): HelperSet
|
|
1155
|
+
{
|
|
1156
|
+
return new HelperSet([
|
|
1157
|
+
new FormatterHelper(),
|
|
1158
|
+
new DebugFormatterHelper(),
|
|
1159
|
+
new ProcessHelper(),
|
|
1160
|
+
new QuestionHelper(),
|
|
1161
|
+
]);
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* Returns abbreviated suggestions in string format.
|
|
1166
|
+
*/
|
|
1167
|
+
private function getAbbreviationSuggestions(array $abbrevs): string
|
|
1168
|
+
{
|
|
1169
|
+
return ' '.implode("\n ", $abbrevs);
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Returns the namespace part of the command name.
|
|
1174
|
+
*
|
|
1175
|
+
* This method is not part of public API and should not be used directly.
|
|
1176
|
+
*/
|
|
1177
|
+
public function extractNamespace(string $name, ?int $limit = null): string
|
|
1178
|
+
{
|
|
1179
|
+
$parts = explode(':', $name, -1);
|
|
1180
|
+
|
|
1181
|
+
return implode(':', null === $limit ? $parts : \array_slice($parts, 0, $limit));
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* Finds alternative of $name among $collection,
|
|
1186
|
+
* if nothing is found in $collection, try in $abbrevs.
|
|
1187
|
+
*
|
|
1188
|
+
* @return string[]
|
|
1189
|
+
*/
|
|
1190
|
+
private function findAlternatives(string $name, iterable $collection): array
|
|
1191
|
+
{
|
|
1192
|
+
$threshold = 1e3;
|
|
1193
|
+
$alternatives = [];
|
|
1194
|
+
|
|
1195
|
+
$collectionParts = [];
|
|
1196
|
+
foreach ($collection as $item) {
|
|
1197
|
+
$collectionParts[$item] = explode(':', $item);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
foreach (explode(':', $name) as $i => $subname) {
|
|
1201
|
+
foreach ($collectionParts as $collectionName => $parts) {
|
|
1202
|
+
$exists = isset($alternatives[$collectionName]);
|
|
1203
|
+
if (!isset($parts[$i]) && $exists) {
|
|
1204
|
+
$alternatives[$collectionName] += $threshold;
|
|
1205
|
+
continue;
|
|
1206
|
+
} elseif (!isset($parts[$i])) {
|
|
1207
|
+
continue;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
$lev = levenshtein($subname, $parts[$i]);
|
|
1211
|
+
if ($lev <= \strlen($subname) / 3 || '' !== $subname && str_contains($parts[$i], $subname)) {
|
|
1212
|
+
$alternatives[$collectionName] = $exists ? $alternatives[$collectionName] + $lev : $lev;
|
|
1213
|
+
} elseif ($exists) {
|
|
1214
|
+
$alternatives[$collectionName] += $threshold;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
foreach ($collection as $item) {
|
|
1220
|
+
$lev = levenshtein($name, $item);
|
|
1221
|
+
if ($lev <= \strlen($name) / 3 || str_contains($item, $name)) {
|
|
1222
|
+
$alternatives[$item] = isset($alternatives[$item]) ? $alternatives[$item] - $lev : $lev;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
$alternatives = array_filter($alternatives, fn ($lev) => $lev < 2 * $threshold);
|
|
1227
|
+
ksort($alternatives, \SORT_NATURAL | \SORT_FLAG_CASE);
|
|
1228
|
+
|
|
1229
|
+
return array_keys($alternatives);
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Sets the default Command name.
|
|
1234
|
+
*
|
|
1235
|
+
* @return $this
|
|
1236
|
+
*/
|
|
1237
|
+
public function setDefaultCommand(string $commandName, bool $isSingleCommand = false): static
|
|
1238
|
+
{
|
|
1239
|
+
$this->defaultCommand = explode('|', ltrim($commandName, '|'))[0];
|
|
1240
|
+
|
|
1241
|
+
if ($isSingleCommand) {
|
|
1242
|
+
// Ensure the command exist
|
|
1243
|
+
$this->find($commandName);
|
|
1244
|
+
|
|
1245
|
+
$this->singleCommand = true;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
return $this;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* @internal
|
|
1253
|
+
*/
|
|
1254
|
+
public function isSingleCommand(): bool
|
|
1255
|
+
{
|
|
1256
|
+
return $this->singleCommand;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
private function splitStringByWidth(string $string, int $width): array
|
|
1260
|
+
{
|
|
1261
|
+
// str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly.
|
|
1262
|
+
// additionally, array_slice() is not enough as some character has doubled width.
|
|
1263
|
+
// we need a function to split string not by character count but by string width
|
|
1264
|
+
if (false === $encoding = mb_detect_encoding($string, null, true)) {
|
|
1265
|
+
return str_split($string, $width);
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
$utf8String = mb_convert_encoding($string, 'utf8', $encoding);
|
|
1269
|
+
$lines = [];
|
|
1270
|
+
$line = '';
|
|
1271
|
+
|
|
1272
|
+
$offset = 0;
|
|
1273
|
+
while (preg_match('/.{1,10000}/u', $utf8String, $m, 0, $offset)) {
|
|
1274
|
+
$offset += \strlen($m[0]);
|
|
1275
|
+
|
|
1276
|
+
foreach (preg_split('//u', $m[0]) as $char) {
|
|
1277
|
+
// test if $char could be appended to current line
|
|
1278
|
+
if (mb_strwidth($line.$char, 'utf8') <= $width) {
|
|
1279
|
+
$line .= $char;
|
|
1280
|
+
continue;
|
|
1281
|
+
}
|
|
1282
|
+
// if not, push current line to array and make new line
|
|
1283
|
+
$lines[] = str_pad($line, $width);
|
|
1284
|
+
$line = $char;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
$lines[] = \count($lines) ? str_pad($line, $width) : $line;
|
|
1289
|
+
|
|
1290
|
+
mb_convert_variables($encoding, 'utf8', $lines);
|
|
1291
|
+
|
|
1292
|
+
return $lines;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Returns all namespaces of the command name.
|
|
1297
|
+
*
|
|
1298
|
+
* @return string[]
|
|
1299
|
+
*/
|
|
1300
|
+
private function extractAllNamespaces(string $name): array
|
|
1301
|
+
{
|
|
1302
|
+
// -1 as third argument is needed to skip the command short name when exploding
|
|
1303
|
+
$parts = explode(':', $name, -1);
|
|
1304
|
+
$namespaces = [];
|
|
1305
|
+
|
|
1306
|
+
foreach ($parts as $part) {
|
|
1307
|
+
if (\count($namespaces)) {
|
|
1308
|
+
$namespaces[] = end($namespaces).':'.$part;
|
|
1309
|
+
} else {
|
|
1310
|
+
$namespaces[] = $part;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
return $namespaces;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
private function init(): void
|
|
1318
|
+
{
|
|
1319
|
+
if ($this->initialized) {
|
|
1320
|
+
return;
|
|
1321
|
+
}
|
|
1322
|
+
$this->initialized = true;
|
|
1323
|
+
|
|
1324
|
+
foreach ($this->getDefaultCommands() as $command) {
|
|
1325
|
+
$this->add($command);
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|