dependabot-composer 0.113.18 → 0.113.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/.php_cs.cache +1 -0
- data/helpers/composer.lock +48 -48
- data/helpers/vendor/autoload.php +7 -0
- data/helpers/vendor/bin/composer +1 -0
- data/helpers/vendor/bin/jsonlint +1 -0
- data/helpers/vendor/bin/php-cs-fixer +1 -0
- data/helpers/vendor/bin/php-parse +1 -0
- data/helpers/vendor/bin/phpstan +1 -0
- data/helpers/vendor/bin/validate-json +1 -0
- data/helpers/vendor/composer/ClassLoader.php +445 -0
- data/helpers/vendor/composer/LICENSE +21 -0
- data/helpers/vendor/composer/autoload_classmap.php +180 -0
- data/helpers/vendor/composer/autoload_files.php +14 -0
- data/helpers/vendor/composer/autoload_namespaces.php +9 -0
- data/helpers/vendor/composer/autoload_psr4.php +39 -0
- data/helpers/vendor/composer/autoload_real.php +70 -0
- data/helpers/vendor/composer/autoload_static.php +371 -0
- data/helpers/vendor/composer/ca-bundle/LICENSE +19 -0
- data/helpers/vendor/composer/ca-bundle/README.md +85 -0
- data/helpers/vendor/composer/ca-bundle/composer.json +54 -0
- data/helpers/vendor/composer/ca-bundle/res/cacert.pem +3507 -0
- data/helpers/vendor/composer/ca-bundle/src/CaBundle.php +310 -0
- data/helpers/vendor/composer/composer/.editorconfig +11 -0
- data/helpers/vendor/composer/composer/.gitattributes +17 -0
- data/helpers/vendor/composer/composer/.gitignore +11 -0
- data/helpers/vendor/composer/composer/CHANGELOG.md +828 -0
- data/helpers/vendor/composer/composer/LICENSE +19 -0
- data/helpers/vendor/composer/composer/PORTING_INFO +39 -0
- data/helpers/vendor/composer/composer/README.md +62 -0
- data/helpers/vendor/composer/composer/bin/compile +31 -0
- data/helpers/vendor/composer/composer/bin/composer +62 -0
- data/helpers/vendor/composer/composer/composer.json +86 -0
- data/helpers/vendor/composer/composer/composer.lock +1800 -0
- data/helpers/vendor/composer/composer/doc/00-intro.md +156 -0
- data/helpers/vendor/composer/composer/doc/01-basic-usage.md +266 -0
- data/helpers/vendor/composer/composer/doc/02-libraries.md +153 -0
- data/helpers/vendor/composer/composer/doc/03-cli.md +941 -0
- data/helpers/vendor/composer/composer/doc/04-schema.md +924 -0
- data/helpers/vendor/composer/composer/doc/05-repositories.md +717 -0
- data/helpers/vendor/composer/composer/doc/06-config.md +299 -0
- data/helpers/vendor/composer/composer/doc/07-community.md +35 -0
- data/helpers/vendor/composer/composer/doc/articles/aliases.md +111 -0
- data/helpers/vendor/composer/composer/doc/articles/autoloader-optimization.md +111 -0
- data/helpers/vendor/composer/composer/doc/articles/custom-installers.md +204 -0
- data/helpers/vendor/composer/composer/doc/articles/handling-private-packages-with-satis.md +356 -0
- data/helpers/vendor/composer/composer/doc/articles/http-basic-authentication.md +59 -0
- data/helpers/vendor/composer/composer/doc/articles/plugins.md +290 -0
- data/helpers/vendor/composer/composer/doc/articles/scripts.md +357 -0
- data/helpers/vendor/composer/composer/doc/articles/troubleshooting.md +309 -0
- data/helpers/vendor/composer/composer/doc/articles/vendor-binaries.md +110 -0
- data/helpers/vendor/composer/composer/doc/articles/versions.md +230 -0
- data/helpers/vendor/composer/composer/doc/dev/DefaultPolicy.md +55 -0
- data/helpers/vendor/composer/composer/doc/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md +50 -0
- data/helpers/vendor/composer/composer/doc/faqs/how-to-install-composer-programmatically.md +42 -0
- data/helpers/vendor/composer/composer/doc/faqs/how-to-install-untrusted-packages-safely.md +19 -0
- data/helpers/vendor/composer/composer/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md +32 -0
- data/helpers/vendor/composer/composer/doc/faqs/which-version-numbering-system-does-composer-itself-use.md +4 -0
- data/helpers/vendor/composer/composer/doc/faqs/why-are-unbound-version-constraints-a-bad-idea.md +21 -0
- data/helpers/vendor/composer/composer/doc/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md +21 -0
- data/helpers/vendor/composer/composer/doc/faqs/why-can't-composer-load-repositories-recursively.md +35 -0
- data/helpers/vendor/composer/composer/doc/fixtures/fixtures.md +22 -0
- data/helpers/vendor/composer/composer/doc/fixtures/repo-composer-plain/packages.json +158 -0
- data/helpers/vendor/composer/composer/doc/fixtures/repo-composer-with-providers/p/bar/baz$923363b3c22e73abb2e3fd891c8156dd4d0821a97fd3e428bc910833e3e46dbe.json +50 -0
- data/helpers/vendor/composer/composer/doc/fixtures/repo-composer-with-providers/p/foo/bar$4baabb3303afa3e34a4d3af18fb138e5f3b79029c1f8d9ab5b477ea15776ba0a.json +77 -0
- data/helpers/vendor/composer/composer/doc/fixtures/repo-composer-with-providers/p/gar/nix$5d210670cb46c8364c8e3fb449967b9bea558b971e5b082f330ae4f1d484c321.json +50 -0
- data/helpers/vendor/composer/composer/doc/fixtures/repo-composer-with-providers/p/provider-active$1893a061e579543822389ecd12d791c612db0c05e22d90e9286e233cacd86ed8.json +16 -0
- data/helpers/vendor/composer/composer/doc/fixtures/repo-composer-with-providers/p/qux/quux$c142d1a07ca354be46b613f59f1d601923a5a00ccc5fcce50a77ecdd461eb72d.json +22 -0
- data/helpers/vendor/composer/composer/doc/fixtures/repo-composer-with-providers/packages.json +9 -0
- data/helpers/vendor/composer/composer/res/composer-repository-schema.json +110 -0
- data/helpers/vendor/composer/composer/res/composer-schema.json +847 -0
- data/helpers/vendor/composer/composer/src/Composer/Autoload/AutoloadGenerator.php +1013 -0
- data/helpers/vendor/composer/composer/src/Composer/Autoload/ClassLoader.php +445 -0
- data/helpers/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php +222 -0
- data/helpers/vendor/composer/composer/src/Composer/Cache.php +257 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/AboutCommand.php +46 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/ArchiveCommand.php +166 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/BaseCommand.php +181 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/BaseDependencyCommand.php +255 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/CheckPlatformReqsCommand.php +162 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/ClearCacheCommand.php +74 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/ConfigCommand.php +722 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/CreateProjectCommand.php +387 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/DependsCommand.php +57 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/DiagnoseCommand.php +729 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/DumpAutoloadCommand.php +88 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/ExecCommand.php +97 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/GlobalCommand.php +111 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/HomeCommand.php +168 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/InitCommand.php +820 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/InstallCommand.php +124 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/LicensesCommand.php +159 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/OutdatedCommand.php +95 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/ProhibitsCommand.php +57 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/RemoveCommand.php +163 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/RequireCommand.php +267 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/RunScriptCommand.php +142 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/ScriptAliasCommand.php +66 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/SearchCommand.php +83 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/SelfUpdateCommand.php +405 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/ShowCommand.php +1015 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/StatusCommand.php +214 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/SuggestsCommand.php +152 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/UpdateCommand.php +228 -0
- data/helpers/vendor/composer/composer/src/Composer/Command/ValidateCommand.php +172 -0
- data/helpers/vendor/composer/composer/src/Composer/Compiler.php +284 -0
- data/helpers/vendor/composer/composer/src/Composer/Composer.php +283 -0
- data/helpers/vendor/composer/composer/src/Composer/Config.php +479 -0
- data/helpers/vendor/composer/composer/src/Composer/Config/ConfigSourceInterface.php +91 -0
- data/helpers/vendor/composer/composer/src/Composer/Config/JsonConfigSource.php +271 -0
- data/helpers/vendor/composer/composer/src/Composer/Console/Application.php +494 -0
- data/helpers/vendor/composer/composer/src/Composer/Console/HtmlOutputFormatter.php +90 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Decisions.php +211 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/DefaultPolicy.php +285 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/GenericRule.php +91 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Operation/InstallOperation.php +66 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Operation/MarkAliasInstalledOperation.php +67 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Operation/MarkAliasUninstalledOperation.php +67 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Operation/OperationInterface.php +42 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Operation/SolverOperation.php +50 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Operation/UninstallOperation.php +66 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Operation/UpdateOperation.php +80 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/PolicyInterface.php +27 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Pool.php +378 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Problem.php +257 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Request.php +78 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Rule.php +268 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Rule2Literals.php +113 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/RuleSet.php +176 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/RuleSetGenerator.php +376 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/RuleSetIterator.php +94 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/RuleWatchChain.php +52 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/RuleWatchGraph.php +144 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/RuleWatchNode.php +113 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Solver.php +874 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/SolverBugException.php +27 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/SolverProblemsException.php +88 -0
- data/helpers/vendor/composer/composer/src/Composer/DependencyResolver/Transaction.php +244 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/ArchiveDownloader.php +135 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/ChangeReportInterface.php +32 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/DownloadManager.php +325 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/DownloaderInterface.php +64 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/DvcsDownloaderInterface.php +32 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/FileDownloader.php +322 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/FilesystemException.php +26 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/FossilDownloader.php +116 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/GitDownloader.php +517 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/GzipDownloader.php +84 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/HgDownloader.php +100 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/PathDownloader.php +224 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/PearPackageExtractor.php +266 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/PerforceDownloader.php +112 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/PharDownloader.php +36 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/RarDownloader.php +91 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/SvnDownloader.php +225 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/TarDownloader.php +31 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/TransportException.php +53 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/VcsCapableDownloaderInterface.php +32 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/VcsDownloader.php +293 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/XzDownloader.php +60 -0
- data/helpers/vendor/composer/composer/src/Composer/Downloader/ZipDownloader.php +230 -0
- data/helpers/vendor/composer/composer/src/Composer/EventDispatcher/Event.php +103 -0
- data/helpers/vendor/composer/composer/src/Composer/EventDispatcher/EventDispatcher.php +544 -0
- data/helpers/vendor/composer/composer/src/Composer/EventDispatcher/EventSubscriberInterface.php +48 -0
- data/helpers/vendor/composer/composer/src/Composer/EventDispatcher/ScriptExecutionException.php +20 -0
- data/helpers/vendor/composer/composer/src/Composer/Exception/NoSslException.php +20 -0
- data/helpers/vendor/composer/composer/src/Composer/Factory.php +653 -0
- data/helpers/vendor/composer/composer/src/Composer/IO/BaseIO.php +263 -0
- data/helpers/vendor/composer/composer/src/Composer/IO/BufferIO.php +86 -0
- data/helpers/vendor/composer/composer/src/Composer/IO/ConsoleIO.php +322 -0
- data/helpers/vendor/composer/composer/src/Composer/IO/IOInterface.php +207 -0
- data/helpers/vendor/composer/composer/src/Composer/IO/NullIO.php +129 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer.php +1803 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/BinaryInstaller.php +214 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/BinaryPresenceInterface.php +30 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/InstallationManager.php +326 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/InstallerEvent.php +161 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/InstallerEvents.php +43 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/InstallerInterface.php +79 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php +232 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/MetapackageInstaller.php +100 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/NoopInstaller.php +88 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/PackageEvent.php +65 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/PackageEvents.php +75 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/PearBinaryInstaller.php +144 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/PearInstaller.php +84 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/PluginInstaller.php +84 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/ProjectInstaller.php +99 -0
- data/helpers/vendor/composer/composer/src/Composer/Installer/SuggestedPackagesReporter.php +151 -0
- data/helpers/vendor/composer/composer/src/Composer/Json/JsonFile.php +306 -0
- data/helpers/vendor/composer/composer/src/Composer/Json/JsonFormatter.php +134 -0
- data/helpers/vendor/composer/composer/src/Composer/Json/JsonManipulator.php +522 -0
- data/helpers/vendor/composer/composer/src/Composer/Json/JsonValidationException.php +34 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/AliasPackage.php +414 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Archiver/ArchivableFilesFilter.php +44 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Archiver/ArchivableFilesFinder.php +105 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Archiver/ArchiveManager.php +183 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Archiver/ArchiverInterface.php +43 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Archiver/BaseExcludeFilter.php +148 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Archiver/ComposerExcludeFilter.php +31 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Archiver/GitExcludeFilter.php +79 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Archiver/HgExcludeFilter.php +107 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Archiver/PharArchiver.php +97 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Archiver/ZipArchiver.php +74 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/BasePackage.php +251 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Comparer/Comparer.php +129 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/CompletePackage.php +199 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/CompletePackageInterface.php +95 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Dumper/ArrayDumper.php +151 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Link.php +128 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/LinkConstraint/EmptyConstraint.php +24 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php +24 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/LinkConstraint/MultiConstraint.php +24 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/LinkConstraint/SpecificConstraint.php +24 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/LinkConstraint/VersionConstraint.php +24 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Loader/ArrayLoader.php +290 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Loader/InvalidPackageException.php +46 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Loader/JsonLoader.php +45 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Loader/LoaderInterface.php +30 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Loader/RootPackageLoader.php +264 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Loader/ValidatingArrayLoader.php +499 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Locker.php +438 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Package.php +612 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/PackageInterface.php +389 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/RootAliasPackage.php +173 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/RootPackage.php +136 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/RootPackageInterface.php +142 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Version/VersionGuesser.php +302 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Version/VersionParser.php +81 -0
- data/helpers/vendor/composer/composer/src/Composer/Package/Version/VersionSelector.php +176 -0
- data/helpers/vendor/composer/composer/src/Composer/Plugin/Capability/Capability.php +23 -0
- data/helpers/vendor/composer/composer/src/Composer/Plugin/Capability/CommandProvider.php +33 -0
- data/helpers/vendor/composer/composer/src/Composer/Plugin/Capable.php +43 -0
- data/helpers/vendor/composer/composer/src/Composer/Plugin/CommandEvent.php +88 -0
- data/helpers/vendor/composer/composer/src/Composer/Plugin/PluginEvents.php +61 -0
- data/helpers/vendor/composer/composer/src/Composer/Plugin/PluginInterface.php +39 -0
- data/helpers/vendor/composer/composer/src/Composer/Plugin/PluginManager.php +406 -0
- data/helpers/vendor/composer/composer/src/Composer/Plugin/PreCommandRunEvent.php +68 -0
- data/helpers/vendor/composer/composer/src/Composer/Plugin/PreFileDownloadEvent.php +78 -0
- data/helpers/vendor/composer/composer/src/Composer/Question/StrictConfirmationQuestion.php +94 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php +208 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/ArtifactRepository.php +107 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/BaseRepository.php +157 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/ComposerRepository.php +833 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/CompositeRepository.php +164 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/ConfigurableRepositoryInterface.php +23 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/FilesystemRepository.php +97 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/InstalledArrayRepository.php +24 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/InstalledFilesystemRepository.php +22 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/InstalledRepositoryInterface.php +24 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/InvalidRepositoryException.php +22 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/PackageRepository.php +61 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/PathRepository.php +190 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Pear/BaseChannelReader.php +82 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Pear/ChannelInfo.php +67 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Pear/ChannelReader.php +101 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Pear/ChannelRest10Reader.php +164 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Pear/ChannelRest11Reader.php +139 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Pear/DependencyConstraint.php +60 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Pear/DependencyInfo.php +50 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Pear/PackageDependencyParser.php +317 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Pear/PackageInfo.php +94 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Pear/ReleaseInfo.php +50 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/PearRepository.php +198 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/PlatformRepository.php +342 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/RepositoryFactory.php +169 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/RepositoryInterface.php +74 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/RepositoryManager.php +177 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/RepositorySecurityException.php +22 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/BitbucketDriver.php +452 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/FossilDriver.php +243 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php +91 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/GitDriver.php +226 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php +476 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php +518 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/HgBitbucketDriver.php +91 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/HgDriver.php +236 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/PerforceDriver.php +186 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/SvnDriver.php +397 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/VcsDriver.php +175 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/Vcs/VcsDriverInterface.php +117 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/VcsRepository.php +410 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/VersionCacheInterface.php +23 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/WritableArrayRepository.php +66 -0
- data/helpers/vendor/composer/composer/src/Composer/Repository/WritableRepositoryInterface.php +54 -0
- data/helpers/vendor/composer/composer/src/Composer/Script/CommandEvent.php +22 -0
- data/helpers/vendor/composer/composer/src/Composer/Script/Event.php +133 -0
- data/helpers/vendor/composer/composer/src/Composer/Script/PackageEvent.php +24 -0
- data/helpers/vendor/composer/composer/src/Composer/Script/ScriptEvents.php +193 -0
- data/helpers/vendor/composer/composer/src/Composer/SelfUpdate/Keys.php +36 -0
- data/helpers/vendor/composer/composer/src/Composer/SelfUpdate/Versions.php +75 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/AuthHelper.php +63 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/Bitbucket.php +245 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/ComposerMirror.php +57 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/ConfigValidator.php +191 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/ErrorHandler.php +82 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/Filesystem.php +715 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/Git.php +374 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/GitHub.php +180 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/GitLab.php +172 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/Hg.php +94 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/IniHelper.php +64 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/NoProxyPattern.php +147 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/PackageSorter.php +92 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/Perforce.php +579 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/Platform.php +92 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/ProcessExecutor.php +193 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/RemoteFilesystem.php +1126 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/Silencer.php +78 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/SpdxLicense.php +24 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/StreamContextFactory.php +177 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/Svn.php +381 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/TlsHelper.php +202 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/Url.php +55 -0
- data/helpers/vendor/composer/composer/src/Composer/Util/Zip.php +108 -0
- data/helpers/vendor/composer/composer/src/Composer/XdebugHandler.php +31 -0
- data/helpers/vendor/composer/composer/src/bootstrap.php +24 -0
- data/helpers/vendor/composer/installed.json +2375 -0
- data/helpers/vendor/composer/semver/CHANGELOG.md +72 -0
- data/helpers/vendor/composer/semver/LICENSE +19 -0
- data/helpers/vendor/composer/semver/README.md +70 -0
- data/helpers/vendor/composer/semver/composer.json +58 -0
- data/helpers/vendor/composer/semver/src/Comparator.php +111 -0
- data/helpers/vendor/composer/semver/src/Constraint/AbstractConstraint.php +63 -0
- data/helpers/vendor/composer/semver/src/Constraint/Constraint.php +219 -0
- data/helpers/vendor/composer/semver/src/Constraint/ConstraintInterface.php +32 -0
- data/helpers/vendor/composer/semver/src/Constraint/EmptyConstraint.php +59 -0
- data/helpers/vendor/composer/semver/src/Constraint/MultiConstraint.php +120 -0
- data/helpers/vendor/composer/semver/src/Semver.php +127 -0
- data/helpers/vendor/composer/semver/src/VersionParser.php +540 -0
- data/helpers/vendor/composer/spdx-licenses/.php_cs.dist +59 -0
- data/helpers/vendor/composer/spdx-licenses/CHANGELOG.md +94 -0
- data/helpers/vendor/composer/spdx-licenses/LICENSE +19 -0
- data/helpers/vendor/composer/spdx-licenses/README.md +69 -0
- data/helpers/vendor/composer/spdx-licenses/composer.json +56 -0
- data/helpers/vendor/composer/spdx-licenses/res/spdx-exceptions.json +110 -0
- data/helpers/vendor/composer/spdx-licenses/res/spdx-licenses.json +1982 -0
- data/helpers/vendor/composer/spdx-licenses/src/SpdxLicenses.php +343 -0
- data/helpers/vendor/composer/xdebug-handler/CHANGELOG.md +59 -0
- data/helpers/vendor/composer/xdebug-handler/LICENSE +21 -0
- data/helpers/vendor/composer/xdebug-handler/README.md +288 -0
- data/helpers/vendor/composer/xdebug-handler/composer.json +40 -0
- data/helpers/vendor/composer/xdebug-handler/src/PhpConfig.php +73 -0
- data/helpers/vendor/composer/xdebug-handler/src/Process.php +170 -0
- data/helpers/vendor/composer/xdebug-handler/src/Status.php +163 -0
- data/helpers/vendor/composer/xdebug-handler/src/XdebugHandler.php +565 -0
- data/helpers/vendor/doctrine/annotations/CHANGELOG.md +162 -0
- data/helpers/vendor/doctrine/annotations/LICENSE +19 -0
- data/helpers/vendor/doctrine/annotations/README.md +17 -0
- data/helpers/vendor/doctrine/annotations/composer.json +43 -0
- data/helpers/vendor/doctrine/annotations/docs/en/annotations.rst +223 -0
- data/helpers/vendor/doctrine/annotations/docs/en/custom.rst +341 -0
- data/helpers/vendor/doctrine/annotations/docs/en/index.rst +90 -0
- data/helpers/vendor/doctrine/annotations/docs/en/sidebar.rst +6 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation.php +79 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attribute.php +47 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attributes.php +37 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Enum.php +84 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php +54 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Required.php +33 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Target.php +107 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php +197 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php +409 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php +174 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php +262 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php +147 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php +1197 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php +290 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php +119 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PhpParser.php +91 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Reader.php +89 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php +127 -0
- data/helpers/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php +194 -0
- data/helpers/vendor/doctrine/annotations/phpbench.json.dist +4 -0
- data/helpers/vendor/doctrine/annotations/phpstan.neon +14 -0
- data/helpers/vendor/doctrine/lexer/.doctrine-project.json +17 -0
- data/helpers/vendor/doctrine/lexer/.github/FUNDING.yml +3 -0
- data/helpers/vendor/doctrine/lexer/.gitignore +2 -0
- data/helpers/vendor/doctrine/lexer/LICENSE +19 -0
- data/helpers/vendor/doctrine/lexer/README.md +7 -0
- data/helpers/vendor/doctrine/lexer/composer.json +36 -0
- data/helpers/vendor/doctrine/lexer/docs/en/dql-parser.rst +294 -0
- data/helpers/vendor/doctrine/lexer/docs/en/index.rst +53 -0
- data/helpers/vendor/doctrine/lexer/docs/en/sidebar.rst +6 -0
- data/helpers/vendor/doctrine/lexer/docs/en/simple-parser-example.rst +102 -0
- data/helpers/vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php +332 -0
- data/helpers/vendor/doctrine/lexer/phpunit.xml.dist +26 -0
- data/helpers/vendor/doctrine/lexer/tests/Doctrine/Common/Lexer/AbstractLexerTest.php +268 -0
- data/helpers/vendor/doctrine/lexer/tests/Doctrine/Common/Lexer/ConcreteLexer.php +49 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/.php_cs.dist +48 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/CHANGELOG.md +2844 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/CONTRIBUTING.md +41 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/LICENSE +20 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/README.rst +2079 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/UPGRADE.md +184 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/box.json.dist +34 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/composer.json +81 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/dev-tools/bin-download.sh +23 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/dev-tools/build.sh +22 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/dev-tools/check-shell-scripts.sh +21 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/dev-tools/ci-integration.sh +8 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/dev-tools/composer.json +19 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/dev-tools/info-extractor.php +14 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/dev-tools/trigger-website.sh +28 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/doc/COOKBOOK-FIXERS.md +523 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/doc/checkstyle.xsd +44 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/doc/junit-10.xsd +135 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/doc/schema.json +47 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/doc/xml.xsd +83 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/php-cs-fixer +79 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/AbstractAlignFixerHelper.php +125 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/AbstractDoctrineAnnotationFixer.php +224 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/AbstractFixer.php +227 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/AbstractFopenFlagFixer.php +127 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/AbstractFunctionReferenceFixer.php +68 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/AbstractLinesBeforeNamespaceFixer.php +110 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/AbstractNoUselessElseFixer.php +211 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/AbstractPhpdocTypesFixer.php +137 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/AbstractProxyFixer.php +122 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/AbstractPsrAutoloadingFixer.php +87 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/Cache.php +145 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/CacheInterface.php +56 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/CacheManagerInterface.php +35 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/Directory.php +53 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/DirectoryInterface.php +26 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/FileCacheManager.php +125 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/FileHandler.php +99 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/FileHandlerInterface.php +36 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/NullCacheManager.php +30 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/Signature.php +111 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Cache/SignatureInterface.php +53 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Config.php +280 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/ConfigInterface.php +196 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidConfigurationException.php +40 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidFixerConfigurationException.php +54 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidForEnvFixerConfigurationException.php +22 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/RequiredFixerConfigurationException.php +22 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Application.php +114 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DescribeCommand.php +408 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DescribeNameNotFoundException.php +57 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommand.php +270 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommandExitStatusCalculator.php +57 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Command/HelpCommand.php +622 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Command/ReadmeCommand.php +294 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Command/SelfUpdateCommand.php +176 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/ConfigurationResolver.php +936 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Output/ErrorOutput.php +154 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Output/NullOutput.php +23 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Output/ProcessOutput.php +147 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/Output/ProcessOutputInterface.php +21 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/GithubClient.php +52 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/GithubClientInterface.php +24 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/NewVersionChecker.php +117 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/NewVersionCheckerInterface.php +46 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Console/WarningsDetector.php +74 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Differ/DiffConsoleFormatter.php +102 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Differ/DifferInterface.php +31 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Differ/FullDiffer.php +48 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Differ/NullDiffer.php +27 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Differ/SebastianBergmannDiffer.php +39 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Differ/SebastianBergmannShortDiffer.php +39 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Differ/UnifiedDiffer.php +43 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Annotation.php +307 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/DocBlock/DocBlock.php +187 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Line.php +144 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/DocBlock/ShortDescription.php +63 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Tag.php +113 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/DocBlock/TagComparator.php +60 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/Token.php +99 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/Tokens.php +379 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Error/Error.php +119 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Error/ErrorsManager.php +82 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FileReader.php +87 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FileRemoval.php +80 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Finder.php +36 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/BacktickToShellExecFixer.php +147 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/EregToPregFixer.php +184 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/MbStrFunctionsFixer.php +112 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoAliasFunctionsFixer.php +217 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoMixedEchoPrintFixer.php +163 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/PowToExponentiationFixer.php +214 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/RandomApiMigrationFixer.php +167 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/SetTypeToCastFixer.php +255 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/ArraySyntaxFixer.php +150 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoMultilineWhitespaceAroundDoubleArrowFixer.php +86 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoTrailingCommaInSinglelineArrayFixer.php +90 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoWhitespaceBeforeCommaInArrayFixer.php +154 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NormalizeIndexBraceFixer.php +59 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/TrailingCommaInMultilineArrayFixer.php +138 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/TrimArraySpacesFixer.php +104 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/WhitespaceAfterCommaInArrayFixer.php +106 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/BracesFixer.php +1057 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/EncodingFixer.php +93 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NonPrintableCharacterFixer.php +171 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/Psr0Fixer.php +169 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/Psr4Fixer.php +100 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/LowercaseConstantsFixer.php +102 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/LowercaseKeywordsFixer.php +75 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/LowercaseStaticReferenceFixer.php +105 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/MagicConstantCasingFixer.php +98 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/MagicMethodCasingFixer.php +232 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeFunctionCasingFixer.php +107 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeFunctionTypeDeclarationCasingFixer.php +179 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/CastSpacesFixer.php +128 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/LowercaseCastFixer.php +76 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/ModernizeTypesCastingFixer.php +159 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/NoShortBoolCastFixer.php +107 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/NoUnsetCastFixer.php +91 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/ShortScalarCastFixer.php +76 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php +394 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ClassDefinitionFixer.php +448 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalClassFixer.php +60 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalInternalClassFixer.php +198 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/MethodSeparationFixer.php +73 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoBlankLinesAfterClassOpeningFixer.php +92 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoNullPropertyInitializationFixer.php +98 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoPhp4ConstructorFixer.php +389 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoUnneededFinalMethodFixer.php +139 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedClassElementsFixer.php +502 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedInterfacesFixer.php +231 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ProtectedToPrivateFixer.php +137 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SelfAccessorFixer.php +194 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SingleClassElementPerStatementFixer.php +226 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SingleTraitInsertPerStatementFixer.php +104 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/VisibilityRequiredFixer.php +193 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassUsage/DateTimeImmutableFixer.php +164 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/CommentToPhpdocFixer.php +191 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/HashToSlashCommentFixer.php +58 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/HeaderCommentFixer.php +356 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/MultilineCommentOpeningClosingFixer.php +95 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/NoEmptyCommentFixer.php +168 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/NoTrailingWhitespaceInCommentFixer.php +75 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/SingleLineCommentStyleFixer.php +168 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConfigurableFixerInterface.php +51 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConfigurationDefinitionFixerInterface.php +28 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConstantNotation/NativeConstantInvocationFixer.php +275 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/ElseifFixer.php +91 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/IncludeFixer.php +151 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoAlternativeSyntaxFixer.php +226 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoBreakCommentFixer.php +366 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoSuperfluousElseifFixer.php +101 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoTrailingCommaInListCallFixer.php +74 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededControlParenthesesFixer.php +189 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededCurlyBracesFixer.php +110 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUselessElseFixer.php +118 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchCaseSemicolonToColonFixer.php +104 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchCaseSpaceFixer.php +92 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/YodaStyleFixer.php +731 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/DefinedFixerInterface.php +29 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/DeprecatedFixerInterface.php +26 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationArrayAssignmentFixer.php +103 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationBracesFixer.php +129 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationIndentationFixer.php +202 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationSpacesFixer.php +347 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FixerInterface.php +81 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/CombineNestedDirnameFixer.php +240 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FopenFlagOrderFixer.php +131 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FopenFlagsFixer.php +112 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FunctionDeclarationFixer.php +200 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FunctionTypehintSpaceFixer.php +87 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/ImplodeCallFixer.php +150 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/MethodArgumentSpaceFixer.php +512 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php +415 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoSpacesAfterFunctionNameFixer.php +182 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoUnreachableDefaultArgumentValueFixer.php +205 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/PhpdocToReturnTypeFixer.php +326 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/ReturnTypeDeclarationFixer.php +123 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/StaticLambdaFixer.php +134 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/VoidReturnFixer.php +263 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/FullyQualifiedStrictTypesFixer.php +178 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoLeadingImportSlashFixer.php +98 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoUnusedImportsFixer.php +255 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/OrderedImportsFixer.php +527 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/SingleImportPerStatementFixer.php +252 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/SingleLineAfterImportsFixer.php +145 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ClassKeywordRemoveFixer.php +252 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/CombineConsecutiveIssetsFixer.php +164 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/CombineConsecutiveUnsetsFixer.php +192 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DeclareEqualNormalizeFixer.php +132 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DirConstantFixer.php +130 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ErrorSuppressionFixer.php +176 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ExplicitIndirectVariableFixer.php +91 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/FunctionToConstantFixer.php +238 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/IsNullFixer.php +202 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php +232 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/SilencedDeprecationErrorFixer.php +55 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ListNotation/ListSyntaxFixer.php +150 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/BlankLineAfterNamespaceFixer.php +144 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/NoBlankLinesBeforeNamespaceFixer.php +63 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/NoLeadingNamespaceWhitespaceFixer.php +101 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/SingleBlankLineBeforeNamespaceFixer.php +69 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Naming/NoHomoglyphNamesFixer.php +244 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/AlignDoubleArrowFixerHelper.php +152 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/AlignEqualsFixerHelper.php +78 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/BinaryOperatorSpacesFixer.php +839 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/ConcatSpaceFixer.php +154 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/IncrementStyleFixer.php +208 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/LogicalOperatorsFixer.php +76 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NewWithBracesFixer.php +151 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NotOperatorWithSpaceFixer.php +80 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NotOperatorWithSuccessorSpaceFixer.php +78 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/ObjectOperatorWithoutWhitespaceFixer.php +67 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/PreIncrementFixer.php +56 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/StandardizeIncrementFixer.php +169 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/StandardizeNotEqualsFixer.php +56 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryOperatorSpacesFixer.php +112 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryToNullCoalescingFixer.php +218 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/UnaryOperatorSpacesFixer.php +68 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/BlankLineAfterOpeningTagFixer.php +96 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/FullOpeningTagFixer.php +134 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/LinebreakAfterOpeningTagFixer.php +73 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/NoClosingTagFixer.php +73 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/NoShortEchoTagFixer.php +70 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitConstructFixer.php +223 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php +454 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDedicateAssertInternalTypeFixer.php +200 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitExpectationFixer.php +273 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitFqcnAnnotationFixer.php +104 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitInternalClassFixer.php +280 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMethodCasingFixer.php +274 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMockFixer.php +150 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMockShortWillReturnFixer.php +146 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitNamespacedFixer.php +220 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitNoExpectationAnnotationFixer.php +300 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitOrderedCoversFixer.php +106 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitSetUpTearDownVisibilityFixer.php +142 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitSizeClassFixer.php +279 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitStrictFixer.php +158 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTargetVersion.php +61 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestAnnotationFixer.php +561 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixer.php +474 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestClassRequiresCoversFixer.php +152 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/AlignMultilineCommentFixer.php +170 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/GeneralPhpdocAnnotationRemoveFixer.php +117 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoBlankLinesAfterPhpdocFixer.php +112 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoEmptyPhpdocFixer.php +70 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoSuperfluousPhpdocTagsFixer.php +330 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAddMissingParamAnnotationFixer.php +286 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAlignFixer.php +431 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAnnotationWithoutDotFixer.php +117 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocIndentFixer.php +144 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocInlineTagFixer.php +96 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoAccessFixer.php +59 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoAliasTagFixer.php +176 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoEmptyReturnFixer.php +125 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoPackageFixer.php +59 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoUselessInheritdocFixer.php +195 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocOrderFixer.php +175 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocReturnSelfReferenceFixer.php +227 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocScalarFixer.php +103 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSeparationFixer.php +181 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSingleLineVarSpacingFixer.php +106 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSummaryFixer.php +93 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocToCommentFixer.php +94 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTrimConsecutiveBlankLineSeparationFixer.php +215 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTrimFixer.php +131 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTypesFixer.php +147 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTypesOrderFixer.php +212 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocVarAnnotationCorrectOrderFixer.php +67 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocVarWithoutNameFixer.php +101 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/BlankLineBeforeReturnFixer.php +61 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/NoUselessReturnFixer.php +111 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/ReturnAssignmentFixer.php +362 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/SimplifiedNullReturnFixer.php +173 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/MultilineWhitespaceBeforeSemicolonsFixer.php +293 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/NoEmptyStatementFixer.php +163 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/NoMultilineWhitespaceBeforeSemicolonsFixer.php +68 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/NoSinglelineWhitespaceBeforeSemicolonsFixer.php +65 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/SemicolonAfterInstructionFixer.php +63 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/SpaceAfterSemicolonFixer.php +143 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/DeclareStrictTypesFixer.php +166 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/StrictComparisonFixer.php +76 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/StrictParamFixer.php +154 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/EscapeImplicitBackslashesFixer.php +166 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/ExplicitStringVariableFixer.php +159 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/HeredocToNowdocFixer.php +107 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/NoBinaryStringFixer.php +65 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/SimpleToComplexStringVariableFixer.php +112 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/SingleQuoteFixer.php +106 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/StringLineEndingFixer.php +85 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/ArrayIndentationFixer.php +376 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/BlankLineBeforeStatementFixer.php +330 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/CompactNullableTypehintFixer.php +79 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/HeredocIndentationFixer.php +150 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/IndentationTypeFixer.php +147 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/LineEndingFixer.php +92 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/MethodChainingIndentationFixer.php +205 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoExtraBlankLinesFixer.php +465 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoExtraConsecutiveBlankLinesFixer.php +73 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoSpacesAroundOffsetFixer.php +107 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoSpacesInsideParenthesisFixer.php +109 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoTrailingWhitespaceFixer.php +113 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoWhitespaceInBlankLineFixer.php +103 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/SingleBlankLineAtEofFixer.php +70 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Fixer/WhitespacesAwareFixerInterface.php +23 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AliasedFixerOption.php +103 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AliasedFixerOptionBuilder.php +98 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AllowedValueSubset.php +53 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/DeprecatedFixerOption.php +100 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/DeprecatedFixerOptionInterface.php +21 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolver.php +129 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolverInterface.php +28 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolverRootless.php +99 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOption.php +176 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionBuilder.php +149 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionInterface.php +53 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/InvalidOptionsForEnvException.php +24 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/CodeSample.php +55 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/CodeSampleInterface.php +29 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FileSpecificCodeSample.php +69 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FileSpecificCodeSampleInterface.php +26 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FixerDefinition.php +93 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FixerDefinitionInterface.php +55 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificCodeSample.php +67 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificCodeSampleInterface.php +26 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecification.php +75 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificationInterface.php +26 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerFactory.php +259 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerFileProcessedEvent.php +59 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/FixerNameValidator.php +36 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Indicator/PhpUnitTestCaseIndicator.php +76 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/CachingLinter.php +75 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/Linter.php +64 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/LinterInterface.php +44 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/LintingException.php +20 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/LintingResultInterface.php +24 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLinter.php +149 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLinterProcessBuilder.php +50 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLintingResult.php +59 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/TokenizerLinter.php +70 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/TokenizerLintingResult.php +48 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Linter/UnavailableLinterException.php +22 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/PharChecker.php +39 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/PharCheckerInterface.php +26 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Preg.php +189 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/PregException.php +24 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Report/CheckstyleReporter.php +75 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Report/GitlabReporter.php +56 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Report/JsonReporter.php +71 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Report/JunitReporter.php +148 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Report/ReportSummary.php +123 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Report/ReporterFactory.php +102 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Report/ReporterInterface.php +33 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Report/TextReporter.php +110 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Report/XmlReporter.php +146 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/RuleSet.php +531 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/RuleSetInterface.php +59 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Runner/FileCachingLintingIterator.php +80 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Runner/FileFilterIterator.php +119 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Runner/FileLintingIterator.php +68 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Runner/Runner.php +308 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/StdinFileInfo.php +172 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Test/AbstractFixerTestCase.php +36 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Test/AbstractIntegrationTestCase.php +36 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Test/AccessibleObject.php +93 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Test/IntegrationCase.php +140 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/AbstractTransformer.php +42 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/ArgumentAnalysis.php +109 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/NamespaceAnalysis.php +127 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/NamespaceUseAnalysis.php +147 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/StartEndTokenAwareAnalysis.php +30 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/TypeAnalysis.php +125 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ArgumentsAnalyzer.php +143 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/CommentsAnalyzer.php +305 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/FunctionsAnalyzer.php +99 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/NamespaceUsesAnalyzer.php +111 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/NamespacesAnalyzer.php +73 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/CT.php +95 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/CodeHasher.php +38 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Generator/NamespacedStringTokenGenerator.php +43 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Resolver/TypeShortNameResolver.php +99 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Token.php +618 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Tokens.php +1452 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/TokensAnalyzer.php +695 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ArrayTypehintTransformer.php +61 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/BraceClassInstantiationTransformer.php +88 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ClassConstantTransformer.php +64 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/CurlyBraceTransformer.php +223 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ImportTransformer.php +67 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NamespaceOperatorTransformer.php +61 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NullableTypeTransformer.php +70 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ReturnRefTransformer.php +57 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/SquareBraceTransformer.php +200 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeAlternationTransformer.php +86 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeColonTransformer.php +83 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/UseTransformer.php +111 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/WhitespacyCommentTransformer.php +71 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/TransformerInterface.php +74 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformers.php +113 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/ToolInfo.php +109 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/ToolInfoInterface.php +31 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/Utils.php +193 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/WhitespacesFixerConfig.php +56 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/src/WordMatcher.php +57 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/tests/Test/AbstractFixerTestCase.php +232 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/tests/Test/AbstractIntegrationCaseFactory.php +263 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/tests/Test/AbstractIntegrationTestCase.php +431 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/tests/Test/Assert/AssertTokensTrait.php +48 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/tests/Test/IntegrationCase.php +164 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/tests/Test/IntegrationCaseFactory.php +22 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/tests/Test/IntegrationCaseFactoryInterface.php +30 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/tests/Test/InternalIntegrationCaseFactory.php +35 -0
- data/helpers/vendor/friendsofphp/php-cs-fixer/tests/TestCase.php +49 -0
- data/helpers/vendor/jean85/pretty-package-versions/composer.json +43 -0
- data/helpers/vendor/jean85/pretty-package-versions/src/PrettyVersions.php +15 -0
- data/helpers/vendor/jean85/pretty-package-versions/src/Version.php +78 -0
- data/helpers/vendor/justinrainbow/json-schema/.gitattributes +5 -0
- data/helpers/vendor/justinrainbow/json-schema/.php_cs.dist +30 -0
- data/helpers/vendor/justinrainbow/json-schema/LICENSE +21 -0
- data/helpers/vendor/justinrainbow/json-schema/README.md +206 -0
- data/helpers/vendor/justinrainbow/json-schema/bin/validate-json +251 -0
- data/helpers/vendor/justinrainbow/json-schema/composer.json +76 -0
- data/helpers/vendor/justinrainbow/json-schema/demo/README.md +14 -0
- data/helpers/vendor/justinrainbow/json-schema/demo/data.json +3 -0
- data/helpers/vendor/justinrainbow/json-schema/demo/demo.php +18 -0
- data/helpers/vendor/justinrainbow/json-schema/demo/schema.json +3 -0
- data/helpers/vendor/justinrainbow/json-schema/dist/schema/json-schema-draft-03.json +174 -0
- data/helpers/vendor/justinrainbow/json-schema/dist/schema/json-schema-draft-04.json +150 -0
- data/helpers/vendor/justinrainbow/json-schema/phpunit.xml.dist +26 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php +148 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php +121 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php +213 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php +65 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php +54 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php +220 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php +214 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/NumberConstraint.php +81 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php +192 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php +94 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php +60 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php +68 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php +40 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/TypeCheckInterface.php +18 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php +261 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php +413 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.php +161 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ExceptionInterface.php +7 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidArgumentException.php +17 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidConfigException.php +17 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaException.php +17 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.php +17 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSourceUriException.php +17 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/JsonDecodingException.php +40 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ResourceNotFoundException.php +17 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/RuntimeException.php +17 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UnresolvableJsonPointerException.php +19 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UriResolverException.php +17 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ValidationException.php +14 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php +149 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Rfc3339.php +30 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php +169 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorageInterface.php +41 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/AbstractRetriever.php +34 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php +83 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php +93 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php +56 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php +36 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php +175 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php +349 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php +26 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php +26 -0
- data/helpers/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php +90 -0
- data/helpers/vendor/nette/bootstrap/composer.json +52 -0
- data/helpers/vendor/nette/bootstrap/contributing.md +33 -0
- data/helpers/vendor/nette/bootstrap/license.md +60 -0
- data/helpers/vendor/nette/bootstrap/readme.md +30 -0
- data/helpers/vendor/nette/bootstrap/src/Bootstrap/Configurator.php +327 -0
- data/helpers/vendor/nette/di/.phpstorm.meta.php +8 -0
- data/helpers/vendor/nette/di/composer.json +43 -0
- data/helpers/vendor/nette/di/contributing.md +33 -0
- data/helpers/vendor/nette/di/license.md +60 -0
- data/helpers/vendor/nette/di/readme.md +348 -0
- data/helpers/vendor/nette/di/src/Bridges/DITracy/ContainerPanel.php +90 -0
- data/helpers/vendor/nette/di/src/Bridges/DITracy/templates/ContainerPanel.panel.phtml +81 -0
- data/helpers/vendor/nette/di/src/Bridges/DITracy/templates/ContainerPanel.tab.phtml +11 -0
- data/helpers/vendor/nette/di/src/DI/Autowiring.php +151 -0
- data/helpers/vendor/nette/di/src/DI/Compiler.php +326 -0
- data/helpers/vendor/nette/di/src/DI/CompilerExtension.php +171 -0
- data/helpers/vendor/nette/di/src/DI/Config/Adapter.php +28 -0
- data/helpers/vendor/nette/di/src/DI/Config/Adapters/NeonAdapter.php +130 -0
- data/helpers/vendor/nette/di/src/DI/Config/Adapters/PhpAdapter.php +38 -0
- data/helpers/vendor/nette/di/src/DI/Config/DefinitionSchema.php +254 -0
- data/helpers/vendor/nette/di/src/DI/Config/Helpers.php +47 -0
- data/helpers/vendor/nette/di/src/DI/Config/Loader.php +135 -0
- data/helpers/vendor/nette/di/src/DI/Container.php +312 -0
- data/helpers/vendor/nette/di/src/DI/ContainerBuilder.php +415 -0
- data/helpers/vendor/nette/di/src/DI/ContainerLoader.php +125 -0
- data/helpers/vendor/nette/di/src/DI/Definitions/AccessorDefinition.php +122 -0
- data/helpers/vendor/nette/di/src/DI/Definitions/Definition.php +227 -0
- data/helpers/vendor/nette/di/src/DI/Definitions/FactoryDefinition.php +303 -0
- data/helpers/vendor/nette/di/src/DI/Definitions/ImportedDefinition.php +57 -0
- data/helpers/vendor/nette/di/src/DI/Definitions/LocatorDefinition.php +171 -0
- data/helpers/vendor/nette/di/src/DI/Definitions/Reference.php +65 -0
- data/helpers/vendor/nette/di/src/DI/Definitions/ServiceDefinition.php +274 -0
- data/helpers/vendor/nette/di/src/DI/Definitions/Statement.php +72 -0
- data/helpers/vendor/nette/di/src/DI/DependencyChecker.php +176 -0
- data/helpers/vendor/nette/di/src/DI/DynamicParameter.php +20 -0
- data/helpers/vendor/nette/di/src/DI/Extensions/ConstantsExtension.php +26 -0
- data/helpers/vendor/nette/di/src/DI/Extensions/DIExtension.php +134 -0
- data/helpers/vendor/nette/di/src/DI/Extensions/DecoratorExtension.php +77 -0
- data/helpers/vendor/nette/di/src/DI/Extensions/ExtensionsExtension.php +42 -0
- data/helpers/vendor/nette/di/src/DI/Extensions/InjectExtension.php +157 -0
- data/helpers/vendor/nette/di/src/DI/Extensions/ParametersExtension.php +64 -0
- data/helpers/vendor/nette/di/src/DI/Extensions/PhpExtension.php +53 -0
- data/helpers/vendor/nette/di/src/DI/Extensions/SearchExtension.php +144 -0
- data/helpers/vendor/nette/di/src/DI/Extensions/ServicesExtension.php +244 -0
- data/helpers/vendor/nette/di/src/DI/Helpers.php +190 -0
- data/helpers/vendor/nette/di/src/DI/PhpGenerator.php +204 -0
- data/helpers/vendor/nette/di/src/DI/Resolver.php +530 -0
- data/helpers/vendor/nette/di/src/DI/exceptions.php +49 -0
- data/helpers/vendor/nette/di/src/compatibility.php +12 -0
- data/helpers/vendor/nette/finder/composer.json +37 -0
- data/helpers/vendor/nette/finder/contributing.md +33 -0
- data/helpers/vendor/nette/finder/license.md +60 -0
- data/helpers/vendor/nette/finder/readme.md +181 -0
- data/helpers/vendor/nette/finder/src/Utils/Finder.php +380 -0
- data/helpers/vendor/nette/neon/composer.json +35 -0
- data/helpers/vendor/nette/neon/contributing.md +33 -0
- data/helpers/vendor/nette/neon/license.md +60 -0
- data/helpers/vendor/nette/neon/readme.md +96 -0
- data/helpers/vendor/nette/neon/src/Neon/Decoder.php +358 -0
- data/helpers/vendor/nette/neon/src/Neon/Encoder.php +84 -0
- data/helpers/vendor/nette/neon/src/Neon/Entity.php +36 -0
- data/helpers/vendor/nette/neon/src/Neon/Exception.php +18 -0
- data/helpers/vendor/nette/neon/src/Neon/Neon.php +42 -0
- data/helpers/vendor/nette/neon/src/neon.php +9 -0
- data/helpers/vendor/nette/neon/syntax.txt +32 -0
- data/helpers/vendor/nette/php-generator/composer.json +34 -0
- data/helpers/vendor/nette/php-generator/contributing.md +33 -0
- data/helpers/vendor/nette/php-generator/license.md +60 -0
- data/helpers/vendor/nette/php-generator/readme.md +521 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/ClassType.php +507 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Closure.php +70 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Constant.php +43 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Factory.php +134 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/GlobalFunction.php +44 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Helpers.php +269 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Method.php +134 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Parameter.php +122 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/PhpFile.php +115 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/PhpLiteral.php +32 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/PhpNamespace.php +199 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Printer.php +252 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Property.php +64 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/PsrPrinter.php +29 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Traits/CommentAware.php +46 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Traits/FunctionLike.php +189 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Traits/NameAware.php +49 -0
- data/helpers/vendor/nette/php-generator/src/PhpGenerator/Traits/VisibilityAware.php +43 -0
- data/helpers/vendor/nette/robot-loader/composer.json +36 -0
- data/helpers/vendor/nette/robot-loader/contributing.md +33 -0
- data/helpers/vendor/nette/robot-loader/license.md +60 -0
- data/helpers/vendor/nette/robot-loader/readme.md +113 -0
- data/helpers/vendor/nette/robot-loader/src/RobotLoader/RobotLoader.php +474 -0
- data/helpers/vendor/nette/schema/composer.json +34 -0
- data/helpers/vendor/nette/schema/contributing.md +33 -0
- data/helpers/vendor/nette/schema/license.md +60 -0
- data/helpers/vendor/nette/schema/readme.md +304 -0
- data/helpers/vendor/nette/schema/src/Schema/Context.php +39 -0
- data/helpers/vendor/nette/schema/src/Schema/DynamicParameter.php +15 -0
- data/helpers/vendor/nette/schema/src/Schema/Elements/AnyOf.php +102 -0
- data/helpers/vendor/nette/schema/src/Schema/Elements/Base.php +137 -0
- data/helpers/vendor/nette/schema/src/Schema/Elements/Structure.php +175 -0
- data/helpers/vendor/nette/schema/src/Schema/Elements/Type.php +152 -0
- data/helpers/vendor/nette/schema/src/Schema/Expect.php +115 -0
- data/helpers/vendor/nette/schema/src/Schema/Helpers.php +86 -0
- data/helpers/vendor/nette/schema/src/Schema/Processor.php +93 -0
- data/helpers/vendor/nette/schema/src/Schema/Schema.php +37 -0
- data/helpers/vendor/nette/schema/src/Schema/ValidationException.php +35 -0
- data/helpers/vendor/nette/utils/.phpstorm.meta.php +19 -0
- data/helpers/vendor/nette/utils/composer.json +42 -0
- data/helpers/vendor/nette/utils/contributing.md +33 -0
- data/helpers/vendor/nette/utils/license.md +60 -0
- data/helpers/vendor/nette/utils/readme.md +41 -0
- data/helpers/vendor/nette/utils/src/Iterators/CachingIterator.php +166 -0
- data/helpers/vendor/nette/utils/src/Iterators/Mapper.php +34 -0
- data/helpers/vendor/nette/utils/src/Utils/ArrayHash.php +94 -0
- data/helpers/vendor/nette/utils/src/Utils/ArrayList.php +110 -0
- data/helpers/vendor/nette/utils/src/Utils/Arrays.php +300 -0
- data/helpers/vendor/nette/utils/src/Utils/Callback.php +164 -0
- data/helpers/vendor/nette/utils/src/Utils/DateTime.php +124 -0
- data/helpers/vendor/nette/utils/src/Utils/FileSystem.php +159 -0
- data/helpers/vendor/nette/utils/src/Utils/Html.php +614 -0
- data/helpers/vendor/nette/utils/src/Utils/IHtmlString.php +20 -0
- data/helpers/vendor/nette/utils/src/Utils/ITranslator.php +23 -0
- data/helpers/vendor/nette/utils/src/Utils/Image.php +623 -0
- data/helpers/vendor/nette/utils/src/Utils/Json.php +60 -0
- data/helpers/vendor/nette/utils/src/Utils/ObjectHelpers.php +186 -0
- data/helpers/vendor/nette/utils/src/Utils/ObjectMixin.php +43 -0
- data/helpers/vendor/nette/utils/src/Utils/Paginator.php +212 -0
- data/helpers/vendor/nette/utils/src/Utils/Random.php +44 -0
- data/helpers/vendor/nette/utils/src/Utils/Reflection.php +303 -0
- data/helpers/vendor/nette/utils/src/Utils/SmartObject.php +121 -0
- data/helpers/vendor/nette/utils/src/Utils/StaticClass.php +36 -0
- data/helpers/vendor/nette/utils/src/Utils/Strings.php +508 -0
- data/helpers/vendor/nette/utils/src/Utils/Validators.php +344 -0
- data/helpers/vendor/nette/utils/src/Utils/exceptions.php +159 -0
- data/helpers/vendor/nikic/php-parser/.gitignore +5 -0
- data/helpers/vendor/nikic/php-parser/.travis.yml +36 -0
- data/helpers/vendor/nikic/php-parser/CHANGELOG.md +683 -0
- data/helpers/vendor/nikic/php-parser/LICENSE +31 -0
- data/helpers/vendor/nikic/php-parser/README.md +225 -0
- data/helpers/vendor/nikic/php-parser/UPGRADE-1.0.md +121 -0
- data/helpers/vendor/nikic/php-parser/UPGRADE-2.0.md +74 -0
- data/helpers/vendor/nikic/php-parser/UPGRADE-3.0.md +160 -0
- data/helpers/vendor/nikic/php-parser/UPGRADE-4.0.md +77 -0
- data/helpers/vendor/nikic/php-parser/bin/php-parse +205 -0
- data/helpers/vendor/nikic/php-parser/composer.json +40 -0
- data/helpers/vendor/nikic/php-parser/doc/0_Introduction.markdown +80 -0
- data/helpers/vendor/nikic/php-parser/doc/2_Usage_of_basic_components.markdown +516 -0
- data/helpers/vendor/nikic/php-parser/doc/README.md +46 -0
- data/helpers/vendor/nikic/php-parser/doc/component/AST_builders.markdown +138 -0
- data/helpers/vendor/nikic/php-parser/doc/component/Constant_expression_evaluation.markdown +115 -0
- data/helpers/vendor/nikic/php-parser/doc/component/Error_handling.markdown +75 -0
- data/helpers/vendor/nikic/php-parser/doc/component/FAQ.markdown +68 -0
- data/helpers/vendor/nikic/php-parser/doc/component/JSON_representation.markdown +131 -0
- data/helpers/vendor/nikic/php-parser/doc/component/Lexer.markdown +159 -0
- data/helpers/vendor/nikic/php-parser/doc/component/Name_resolution.markdown +87 -0
- data/helpers/vendor/nikic/php-parser/doc/component/Performance.markdown +65 -0
- data/helpers/vendor/nikic/php-parser/doc/component/Pretty_printing.markdown +96 -0
- data/helpers/vendor/nikic/php-parser/doc/component/Walking_the_AST.markdown +337 -0
- data/helpers/vendor/nikic/php-parser/grammar/README.md +28 -0
- data/helpers/vendor/nikic/php-parser/grammar/parser.template +106 -0
- data/helpers/vendor/nikic/php-parser/grammar/php5.y +1026 -0
- data/helpers/vendor/nikic/php-parser/grammar/php7.y +1023 -0
- data/helpers/vendor/nikic/php-parser/grammar/rebuildParsers.php +257 -0
- data/helpers/vendor/nikic/php-parser/grammar/tokens.template +17 -0
- data/helpers/vendor/nikic/php-parser/grammar/tokens.y +114 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder.php +13 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/Class_.php +122 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php +43 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php +74 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/Function_.php +50 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/Interface_.php +75 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php +129 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php +45 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/Param.php +106 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php +132 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/TraitUse.php +64 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/TraitUseAdaptation.php +148 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/Trait_.php +60 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Builder/Use_.php +49 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/BuilderFactory.php +348 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/BuilderHelpers.php +277 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Comment.php +167 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Comment/Doc.php +7 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/ConstExprEvaluationException.php +6 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/ConstExprEvaluator.php +226 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Error.php +180 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/ErrorHandler.php +13 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/ErrorHandler/Collecting.php +46 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/ErrorHandler/Throwing.php +18 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Internal/DiffElem.php +27 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Internal/Differ.php +164 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Internal/PrintableNewAnonClassNode.php +57 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Internal/TokenStream.php +256 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/JsonDecoder.php +101 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Lexer.php +406 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php +250 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/CoaleseEqualTokenEmulator.php +41 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/FnTokenEmulator.php +53 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/NumericLiteralSeparatorEmulator.php +98 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/TokenEmulatorInterface.php +14 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NameContext.php +285 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node.php +153 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php +38 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Const_.php +37 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr.php +9 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php +41 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php +71 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseOr.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseXor.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Coalesce.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Minus.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mul.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftLeft.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftRight.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php +40 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseXor.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Concat.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Div.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Equal.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Greater.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalAnd.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalOr.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalXor.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Minus.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftLeft.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Spaceship.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php +26 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php +17 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Int_.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Object_.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/String_.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php +12 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php +36 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php +71 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.php +31 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php +31 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php +35 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php +39 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php +35 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php +40 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php +35 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php +35 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php +40 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php +36 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php +38 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php +36 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Identifier.php +75 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Name.php +242 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php +50 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php +50 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/NullableType.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Param.php +49 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar.php +7 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php +70 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php +31 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php +73 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php +28 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Function_.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php +16 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php +141 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt.php +9 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php +41 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php +62 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php +87 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php +151 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php +105 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Expression.php +33 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Finally_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php +43 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Foreach_.php +47 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php +69 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php +31 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php +39 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/If_.php +43 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Interface_.php +35 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php +31 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php +38 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php +17 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php +78 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php +37 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php +13 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php +38 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php +38 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php +30 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php +52 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php +47 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php +34 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Node/VarLikeIdentifier.php +17 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php +181 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeDumper.php +203 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeFinder.php +81 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php +291 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php +29 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor.php +72 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/CloningVisitor.php +20 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/FindingVisitor.php +48 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/FirstFindingVisitor.php +50 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php +222 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php +25 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Parser.php +18 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Parser/Multiple.php +55 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Parser/Php5.php +2640 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Parser/Php7.php +2475 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/Parser/Tokens.php +146 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php +1014 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/ParserFactory.php +44 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php +999 -0
- data/helpers/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php +1430 -0
- data/helpers/vendor/nikic/php-parser/phpunit.xml.dist +20 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/ClassTest.php +153 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/FunctionTest.php +114 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/InterfaceTest.php +100 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/MethodTest.php +162 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/NamespaceTest.php +46 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/ParamTest.php +166 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/PropertyTest.php +147 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/TraitTest.php +91 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/TraitUseAdaptationTest.php +106 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/TraitUseTest.php +52 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Builder/UseTest.php +36 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/BuilderFactoryTest.php +327 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/CodeParsingTest.php +119 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/CodeTestAbstract.php +26 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/CodeTestParser.php +68 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/CommentTest.php +74 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/ConstExprEvaluatorTest.php +130 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/ErrorHandler/CollectingTest.php +23 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/ErrorHandler/ThrowingTest.php +15 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/ErrorTest.php +104 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Internal/DifferTest.php +65 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/JsonDecoderTest.php +43 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Lexer/EmulativeTest.php +258 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/LexerTest.php +263 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/NameContextTest.php +65 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Node/IdentifierTest.php +29 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Node/NameTest.php +157 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/MagicConstTest.php +26 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/StringTest.php +61 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassConstTest.php +34 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassMethodTest.php +123 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassTest.php +113 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/InterfaceTest.php +44 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/PropertyTest.php +44 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/NodeAbstractTest.php +325 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/NodeDumperTest.php +106 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/NodeFinderTest.php +59 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/NodeTraverserTest.php +348 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/NodeVisitor/FindingVisitorTest.php +53 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/NodeVisitor/FirstFindingVisitorTest.php +38 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/NodeVisitor/NameResolverTest.php +512 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Parser/MultipleTest.php +94 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Parser/Php5Test.php +13 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/Parser/Php7Test.php +13 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/ParserFactoryTest.php +36 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/ParserTest.php +183 -0
- data/helpers/vendor/nikic/php-parser/test/PhpParser/PrettyPrinterTest.php +307 -0
- data/helpers/vendor/nikic/php-parser/test/bootstrap.php +31 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/addingPropertyType.test +39 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/anonClasses.test +28 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/array_spread.test +29 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/arrow_function.test +97 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/basic.test +190 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/blockConversion.test +29 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/comments.test +52 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/emptyListInsertion.test +110 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/fixup.test +67 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/inlineHtml.test +54 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/insertionOfNullable.test +176 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/listInsertion.test +309 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/listInsertionIndentation.test +17 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/listRemoval.test +41 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/modifierChange.test +33 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/nopCommentAtEnd.test +11 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/removalViaNull.test +194 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/removingPropertyType.test +22 -0
- data/helpers/vendor/nikic/php-parser/test/code/formatPreservation/traitAlias.test +19 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/blockComments.test +36 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/commentAtEndOfClass.test +38 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/comments.test +108 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/errorHandling/eofError.test +36 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/errorHandling/lexerErrors.test +143 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/errorHandling/recovery.test +1417 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/arrayDef.test +173 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/arrayDestructuring.test +164 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/arraySpread.test +432 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/arrow_function.test +145 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/assign.test +381 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/assignNewByRef.test +43 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/cast.test +94 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/clone.test +15 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/closure.test +176 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/comparison.test +129 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/constant_expr.test +694 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/errorSuppress.test +14 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/exit.test +46 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/args.test +109 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constFetch.test +43 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constantDeref.test +265 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/funcCall.test +158 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/newDeref.test +82 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/objectAccess.test +184 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/simpleArrayAccess.test +72 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticCall.test +214 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticPropertyFetch.test +113 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/includeAndEval.test +50 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/issetAndEmpty.test +88 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/listReferences.test +92 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/listWithKeys.test +84 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/logic.test +190 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/math.test +313 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/new.test +187 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/newWithoutClass.test +25 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/print.test +14 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/shellExec.test +56 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/ternaryAndCoalesce.test +174 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/trailingCommas.test +140 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/uvs/globalNonSimpleVarError.test +27 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/uvs/indirectCall.test +511 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/uvs/isset.test +87 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/uvs/misc.test +129 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/uvs/new.test +119 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/uvs/staticProperty.test +123 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/expr/variable.test +67 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/nopPositions.test +13 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/constantString.test +86 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/docString.test +115 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/docStringNewlines.test +77 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/encapsedNegVarOffset.test +82 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/encapsedString.test +344 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/flexibleDocString.test +361 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/flexibleDocStringErrors.test +117 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/float.test +108 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/int.test +61 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/invalidOctal.test +26 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/magicConst.test +47 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/numberSeparators.test +199 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/scalar/unicodeEscape.test +26 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/semiReserved.test +490 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/blocklessStatement.test +130 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/abstract.test +45 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/anonymous.test +214 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/conditional.test +35 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/constModifierErrors.test +137 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/constModifiers.test +77 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/final.test +19 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/implicitPublic.test +110 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/interface.test +40 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/modifier.test +254 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/name.test +266 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/php4Style.test +59 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/propertyTypes.test +70 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/simple.test +185 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/staticMethod.test +175 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/class/trait.test +188 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/const.test +48 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/controlFlow.test +59 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/declare.test +70 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/echo.test +32 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/function/builtinTypeDeclarations.test +87 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/function/byRef.test +49 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/function/conditional.test +35 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/function/defaultValues.test +173 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/function/nullableTypes.test +55 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/function/returnTypes.test +64 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/function/specialVars.test +57 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/function/typeDeclarations.test +63 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/function/variadic.test +134 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/function/variadicDefaultValue.test +31 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/generator/basic.test +319 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/generator/yieldPrecedence.test +253 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/generator/yieldUnaryPrecedence.test +56 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/haltCompiler.test +61 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerInvalidSyntax.test +6 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerOffset.test +36 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerOutermostScope.test +8 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/hashbang.test +26 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/if.test +103 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/inlineHTML.test +33 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/loop/do.test +17 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/loop/for.test +110 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/loop/foreach.test +168 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/loop/while.test +25 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/multiCatch.test +75 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/alias.test +178 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/braced.test +46 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/commentAfterNamespace.test +22 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUse.test +188 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUseErrors.test +113 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUsePositions.test +28 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUseTrailingComma.test +47 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/invalidName.test +87 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/mix.test +103 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/name.test +50 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test +30 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/notBraced.test +49 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nsAfterHashbang.test +22 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/outsideStmt.test +60 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/namespace/outsideStmtInvalid.test +109 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/switch.test +81 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/tryCatch.test +144 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/tryWithoutCatch.test +29 -0
- data/helpers/vendor/nikic/php-parser/test/code/parser/stmt/unset.test +26 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/comments.test +67 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/commentsInCommaList.test +53 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/anonymousClass.test +27 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/arrayDestructuring.test +14 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/arraySpread.test +8 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/arrow_function.test +18 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/call.test +13 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test +18 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/constant_deref.test +13 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/docStrings.test +86 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/include.test +7 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/intrinsics.test +29 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/list.test +19 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/literals.test +158 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/numbers.test +35 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/operators.test +151 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/parentheses.test +86 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/shortArraySyntax.test +11 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/stringEscaping.test +23 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/uvs.test +23 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/variables.test +73 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/expr/yield.test +46 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/inlineHTMLandPHPtest.file-test +58 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/nestedInlineHTML.test +16 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/onlyInlineHTML.file-test +19 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/onlyPHP.file-test +16 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/alias.test +20 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/break_continue.test +13 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class.test +53 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class_const.test +20 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/const.test +11 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/declare.test +17 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/do_while.test +10 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/for.test +28 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/foreach.test +28 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/function_signatures.test +43 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/global_static_variables.test +11 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/goto.test +9 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/groupUse.test +16 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/haltCompiler.file-test +27 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/if.test +16 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/multiCatch.test +19 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/namespaces.test +50 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/nullable_types.test +11 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/properties.test +20 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/switch.test +37 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/throw.test +7 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/traitUse.test +25 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/tryCatch.test +24 -0
- data/helpers/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/while.test +10 -0
- data/helpers/vendor/nikic/php-parser/test/updateTests.php +32 -0
- data/helpers/vendor/nikic/php-parser/test_old/run-php-src.sh +4 -0
- data/helpers/vendor/nikic/php-parser/test_old/run.php +273 -0
- data/helpers/vendor/ocramius/package-versions/CHANGELOG.md +120 -0
- data/helpers/vendor/ocramius/package-versions/CONTRIBUTING.md +39 -0
- data/helpers/vendor/ocramius/package-versions/LICENSE +19 -0
- data/helpers/vendor/ocramius/package-versions/README.md +60 -0
- data/helpers/vendor/ocramius/package-versions/composer.json +43 -0
- data/helpers/vendor/ocramius/package-versions/composer.lock +2869 -0
- data/helpers/vendor/ocramius/package-versions/infection.json.dist +11 -0
- data/helpers/vendor/ocramius/package-versions/phpcs.xml.dist +21 -0
- data/helpers/vendor/ocramius/package-versions/src/PackageVersions/FallbackVersions.php +88 -0
- data/helpers/vendor/ocramius/package-versions/src/PackageVersions/Installer.php +201 -0
- data/helpers/vendor/ocramius/package-versions/src/PackageVersions/Versions.php +76 -0
- data/helpers/vendor/paragonie/random_compat/LICENSE +22 -0
- data/helpers/vendor/paragonie/random_compat/build-phar.sh +5 -0
- data/helpers/vendor/paragonie/random_compat/composer.json +34 -0
- data/helpers/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey +5 -0
- data/helpers/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey.asc +11 -0
- data/helpers/vendor/paragonie/random_compat/lib/random.php +32 -0
- data/helpers/vendor/paragonie/random_compat/other/build_phar.php +57 -0
- data/helpers/vendor/paragonie/random_compat/psalm-autoload.php +9 -0
- data/helpers/vendor/paragonie/random_compat/psalm.xml +19 -0
- data/helpers/vendor/php-cs-fixer/diff/ChangeLog.md +7 -0
- data/helpers/vendor/php-cs-fixer/diff/LICENSE +5 -0
- data/helpers/vendor/php-cs-fixer/diff/LICENSE_DIFF +31 -0
- data/helpers/vendor/php-cs-fixer/diff/LICENSE_GECKO +19 -0
- data/helpers/vendor/php-cs-fixer/diff/README.md +13 -0
- data/helpers/vendor/php-cs-fixer/diff/composer.json +41 -0
- data/helpers/vendor/php-cs-fixer/diff/src/GeckoPackages/DiffOutputBuilder/ConfigurationException.php +36 -0
- data/helpers/vendor/php-cs-fixer/diff/src/GeckoPackages/DiffOutputBuilder/UnifiedDiffOutputBuilder.php +295 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v1_4/Chunk.php +103 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v1_4/Diff.php +73 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v1_4/Differ.php +399 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v1_4/LCS/LongestCommonSubsequence.php +27 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v1_4/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php +95 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v1_4/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php +74 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v1_4/Line.php +54 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v1_4/Parser.php +110 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Chunk.php +78 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Diff.php +67 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Differ.php +321 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Exception/Exception.php +15 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Exception/InvalidArgumentException.php +15 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Line.php +44 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/LongestCommonSubsequenceCalculator.php +24 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/MemoryEfficientLongestCommonSubsequenceCalculator.php +81 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Output/AbstractChunkOutputBuilder.php +56 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Output/DiffOnlyOutputBuilder.php +63 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Output/DiffOutputBuilderInterface.php +19 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Output/UnifiedDiffOutputBuilder.php +165 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/Parser.php +106 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v2_0/TimeEfficientLongestCommonSubsequenceCalculator.php +66 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Chunk.php +78 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Diff.php +67 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Differ.php +329 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Exception/ConfigurationException.php +40 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Exception/Exception.php +15 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Exception/InvalidArgumentException.php +15 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Line.php +44 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/LongestCommonSubsequenceCalculator.php +24 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/MemoryEfficientLongestCommonSubsequenceCalculator.php +81 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Output/AbstractChunkOutputBuilder.php +56 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Output/DiffOnlyOutputBuilder.php +66 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Output/DiffOutputBuilderInterface.php +20 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Output/StrictUnifiedDiffOutputBuilder.php +315 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Output/UnifiedDiffOutputBuilder.php +259 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/Parser.php +106 -0
- data/helpers/vendor/php-cs-fixer/diff/src/v3_0/TimeEfficientLongestCommonSubsequenceCalculator.php +66 -0
- data/helpers/vendor/phpstan/phpdoc-parser/build-abnfgen.sh +25 -0
- data/helpers/vendor/phpstan/phpdoc-parser/composer.json +29 -0
- data/helpers/vendor/phpstan/phpdoc-parser/doc/grammars/phpdoc-method.peg +41 -0
- data/helpers/vendor/phpstan/phpdoc-parser/doc/grammars/phpdoc-param.peg +14 -0
- data/helpers/vendor/phpstan/phpdoc-parser/doc/grammars/type.abnf +243 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprArrayItemNode.php +31 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprArrayNode.php +25 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprFalseNode.php +13 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprFloatNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprIntegerNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprNode.php +10 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprNullNode.php +13 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprStringNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprTrueNode.php +13 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstFetchNode.php +31 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Node.php +10 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/DeprecatedTagValueNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/GenericTagValueNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/InvalidTagValueNode.php +26 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/MethodTagValueNode.php +44 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/MethodTagValueParameterNode.php +46 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/ParamTagValueNode.php +37 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PhpDocChildNode.php +10 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PhpDocNode.php +190 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PhpDocTagNode.php +26 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PhpDocTagValueNode.php +10 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PhpDocTextNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PropertyTagValueNode.php +32 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/ReturnTagValueNode.php +28 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/TemplateTagValueNode.php +32 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/ThrowsTagValueNode.php +28 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/VarTagValueNode.php +32 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/ArrayShapeItemNode.php +44 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/ArrayShapeNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/ArrayTypeNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/CallableTypeNode.php +31 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/CallableTypeParameterNode.php +44 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/GenericTypeNode.php +26 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/IdentifierTypeNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/IntersectionTypeNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/NullableTypeNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/ThisTypeNode.php +13 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/TypeNode.php +10 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Ast/Type/UnionTypeNode.php +22 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Lexer/Lexer.php +164 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Parser/ConstExprParser.php +97 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Parser/ParserException.php +69 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Parser/PhpDocParser.php +333 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Parser/TokenIterator.php +191 -0
- data/helpers/vendor/phpstan/phpdoc-parser/src/Parser/TypeParser.php +272 -0
- data/helpers/vendor/phpstan/phpstan/.editorconfig +27 -0
- data/helpers/vendor/phpstan/phpstan/.gitattributes +2 -0
- data/helpers/vendor/phpstan/phpstan/.github/FUNDING.yml +4 -0
- data/helpers/vendor/phpstan/phpstan/.github/ISSUE_TEMPLATE/Bug_report.md +18 -0
- data/helpers/vendor/phpstan/phpstan/.github/ISSUE_TEMPLATE/Feature_request.md +8 -0
- data/helpers/vendor/phpstan/phpstan/.github/ISSUE_TEMPLATE/Function_signature_mismatch.md +6 -0
- data/helpers/vendor/phpstan/phpstan/.github/ISSUE_TEMPLATE/Support_question.md +8 -0
- data/helpers/vendor/phpstan/phpstan/.github/mergeable.yml +20 -0
- data/helpers/vendor/phpstan/phpstan/.gitignore +6 -0
- data/helpers/vendor/phpstan/phpstan/.travis.yml +64 -0
- data/helpers/vendor/phpstan/phpstan/BACKERS.md +65 -0
- data/helpers/vendor/phpstan/phpstan/CODE_OF_CONDUCT.md +74 -0
- data/helpers/vendor/phpstan/phpstan/LICENSE +21 -0
- data/helpers/vendor/phpstan/phpstan/README.md +740 -0
- data/helpers/vendor/phpstan/phpstan/appveyor.yml +70 -0
- data/helpers/vendor/phpstan/phpstan/bin/phpstan +57 -0
- data/helpers/vendor/phpstan/phpstan/build.xml +250 -0
- data/helpers/vendor/phpstan/phpstan/composer.json +75 -0
- data/helpers/vendor/phpstan/phpstan/conf/bleedingEdge.neon +13 -0
- data/helpers/vendor/phpstan/phpstan/conf/config.level0.neon +170 -0
- data/helpers/vendor/phpstan/phpstan/conf/config.level1.neon +11 -0
- data/helpers/vendor/phpstan/phpstan/conf/config.level2.neon +45 -0
- data/helpers/vendor/phpstan/phpstan/conf/config.level3.neon +78 -0
- data/helpers/vendor/phpstan/phpstan/conf/config.level4.neon +88 -0
- data/helpers/vendor/phpstan/phpstan/conf/config.level5.neon +6 -0
- data/helpers/vendor/phpstan/phpstan/conf/config.level6.neon +6 -0
- data/helpers/vendor/phpstan/phpstan/conf/config.level7.neon +5 -0
- data/helpers/vendor/phpstan/phpstan/conf/config.levelmax.neon +2 -0
- data/helpers/vendor/phpstan/phpstan/conf/config.neon +759 -0
- data/helpers/vendor/phpstan/phpstan/phpcs.xml +72 -0
- data/helpers/vendor/phpstan/phpstan/phpstan-baseline.neon +85 -0
- data/helpers/vendor/phpstan/phpstan/src/AnalysedCodeException.php +8 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/Analyser.php +409 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/EnsuredNonNullabilityResult.php +37 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/EnsuredNonNullabilityResultExpression.php +33 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/Error.php +77 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/ExpressionContext.php +69 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/ExpressionResult.php +85 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/IgnoredError.php +69 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/NameScope.php +57 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/NodeScopeResolver.php +2533 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/OutOfClassScope.php +39 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/Scope.php +3210 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/ScopeContext.php +103 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/ScopeFactory.php +107 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/SpecifiedTypes.php +116 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/StatementExitPoint.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/StatementResult.php +101 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/TypeSpecifier.php +660 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/TypeSpecifierAwareExtension.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/TypeSpecifierContext.php +90 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/TypeSpecifierFactory.php +52 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/UndefinedVariableException.php +31 -0
- data/helpers/vendor/phpstan/phpstan/src/Analyser/VariableTypeHolder.php +60 -0
- data/helpers/vendor/phpstan/phpstan/src/Broker/AnonymousClassNameHelper.php +45 -0
- data/helpers/vendor/phpstan/phpstan/src/Broker/Broker.php +613 -0
- data/helpers/vendor/phpstan/phpstan/src/Broker/BrokerFactory.php +62 -0
- data/helpers/vendor/phpstan/phpstan/src/Broker/ClassAutoloadingException.php +38 -0
- data/helpers/vendor/phpstan/phpstan/src/Broker/ClassNotFoundException.php +22 -0
- data/helpers/vendor/phpstan/phpstan/src/Broker/FunctionNotFoundException.php +22 -0
- data/helpers/vendor/phpstan/phpstan/src/Cache/Cache.php +35 -0
- data/helpers/vendor/phpstan/phpstan/src/Cache/CacheStorage.php +21 -0
- data/helpers/vendor/phpstan/phpstan/src/Cache/FileCacheStorage.php +51 -0
- data/helpers/vendor/phpstan/phpstan/src/Cache/MemoryCacheStorage.php +31 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/AnalyseApplication.php +161 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/AnalyseCommand.php +141 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/AnalysisResult.php +118 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/CommandHelper.php +407 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/DumpDependenciesCommand.php +99 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/ErrorFormatter/BaselineNeonErrorFormatter.php +75 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/ErrorFormatter/CheckstyleErrorFormatter.php +102 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/ErrorFormatter/ErrorFormatter.php +22 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/ErrorFormatter/GitlabErrorFormatter.php +67 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/ErrorFormatter/JsonErrorFormatter.php +59 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/ErrorFormatter/RawErrorFormatter.php +38 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/ErrorFormatter/TableErrorFormatter.php +107 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/ErrorsConsoleStyle.php +116 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/InceptionNotSuccessfulException.php +8 -0
- data/helpers/vendor/phpstan/phpstan/src/Command/InceptionResult.php +111 -0
- data/helpers/vendor/phpstan/phpstan/src/Dependency/DependencyDumper.php +143 -0
- data/helpers/vendor/phpstan/phpstan/src/Dependency/DependencyResolver.php +256 -0
- data/helpers/vendor/phpstan/phpstan/src/DependencyInjection/ConditionalTagsExtension.php +55 -0
- data/helpers/vendor/phpstan/phpstan/src/DependencyInjection/Configurator.php +33 -0
- data/helpers/vendor/phpstan/phpstan/src/DependencyInjection/Container.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/DependencyInjection/ContainerFactory.php +102 -0
- data/helpers/vendor/phpstan/phpstan/src/DependencyInjection/LoaderFactory.php +38 -0
- data/helpers/vendor/phpstan/phpstan/src/DependencyInjection/Nette/NetteContainer.php +65 -0
- data/helpers/vendor/phpstan/phpstan/src/DependencyInjection/ParametersSchemaExtension.php +94 -0
- data/helpers/vendor/phpstan/phpstan/src/DependencyInjection/RulesExtension.php +30 -0
- data/helpers/vendor/phpstan/phpstan/src/File/FileExcluder.php +69 -0
- data/helpers/vendor/phpstan/phpstan/src/File/FileFinder.php +65 -0
- data/helpers/vendor/phpstan/phpstan/src/File/FileFinderResult.php +37 -0
- data/helpers/vendor/phpstan/phpstan/src/File/FileHelper.php +77 -0
- data/helpers/vendor/phpstan/phpstan/src/File/FuzzyRelativePathHelper.php +105 -0
- data/helpers/vendor/phpstan/phpstan/src/File/PathNotFoundException.php +22 -0
- data/helpers/vendor/phpstan/phpstan/src/File/RelativePathHelper.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/File/SimpleRelativePathHelper.php +25 -0
- data/helpers/vendor/phpstan/phpstan/src/Internal/ContainerDynamicReturnTypeExtension.php +52 -0
- data/helpers/vendor/phpstan/phpstan/src/Internal/ScopeIsInClassTypeSpecifyingExtension.php +85 -0
- data/helpers/vendor/phpstan/phpstan/src/Internal/UnionTypeGetInternalDynamicReturnTypeExtension.php +40 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/ClosureReturnStatementsNode.php +66 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/ExecutionEndNode.php +58 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/FileNode.php +41 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/FunctionReturnStatementsNode.php +57 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/InArrowFunctionNode.php +35 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/InClassMethodNode.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/LiteralArrayItem.php +33 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/LiteralArrayNode.php +42 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/MethodReturnStatementsNode.php +57 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/ReturnStatement.php +33 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/UnreachableStatementNode.php +34 -0
- data/helpers/vendor/phpstan/phpstan/src/Node/VirtualNode.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Parser/CachedParser.php +120 -0
- data/helpers/vendor/phpstan/phpstan/src/Parser/DirectParser.php +53 -0
- data/helpers/vendor/phpstan/phpstan/src/Parser/FunctionCallStatementFinder.php +45 -0
- data/helpers/vendor/phpstan/phpstan/src/Parser/Parser.php +20 -0
- data/helpers/vendor/phpstan/phpstan/src/Parser/ParserErrorsException.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/PhpDocBlock.php +270 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/PhpDocNodeResolver.php +248 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/PhpDocStringResolver.php +38 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/ResolvedPhpDocBlock.php +206 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/Tag/DeprecatedTag.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/Tag/MethodTag.php +66 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/Tag/MethodTagParameter.php +70 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/Tag/ParamTag.php +44 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/Tag/PropertyTag.php +58 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/Tag/ReturnTag.php +34 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/Tag/ThrowsTag.php +34 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/Tag/VarTag.php +34 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/TypeNodeResolver.php +415 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/TypeNodeResolverAwareExtension.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/TypeNodeResolverExtension.php +16 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/TypeNodeResolverFactory.php +27 -0
- data/helpers/vendor/phpstan/phpstan/src/PhpDoc/TypeStringResolver.php +39 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Annotations/AnnotationMethodReflection.php +107 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Annotations/AnnotationPropertyReflection.php +72 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Annotations/AnnotationsMethodParameterReflection.php +61 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Annotations/AnnotationsMethodsClassReflectionExtension.php +113 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtension.php +86 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/BrokerAwareClassReflectionExtension.php +11 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/BrokerAwareExtension.php +12 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ClassConstantReflection.php +90 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ClassMemberAccessAnswerer.php +18 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ClassMemberReflection.php +16 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ClassReflection.php +507 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ConstantReflection.php +15 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/DeprecatableReflection.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Dummy/DummyConstantReflection.php +56 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Dummy/DummyConstructorReflection.php +63 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Dummy/DummyMethodReflection.php +64 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Dummy/DummyPropertyReflection.php +51 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ExtendedPropertyReflection.php +14 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/FinalizableReflection.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/FunctionReflection.php +15 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/FunctionReflectionFactory.php +35 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/FunctionVariant.php +53 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/FunctionVariantWithPhpDocs.php +61 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/InaccessibleMethod.php +42 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/InternableReflection.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/MethodPrototypeReflection.php +63 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/MethodReflection.php +17 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/MethodsClassReflectionExtension.php +12 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/MissingConstantFromReflectionException.php +26 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/MissingMethodFromReflectionException.php +26 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/MissingPropertyFromReflectionException.php +26 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Native/NativeFunctionReflection.php +73 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Native/NativeMethodReflection.php +120 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Native/NativeParameterReflection.php +89 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ParameterReflection.php +20 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ParameterReflectionWithPhpDocs.php +14 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ParametersAcceptor.php +25 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ParametersAcceptorSelector.php +247 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ParametersAcceptorWithPhpDocs.php +19 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/PassedByReference.php +87 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/BuiltinMethodReflection.php +57 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/DummyParameter.php +63 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/FakeBuiltinMethodReflection.php +123 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/NativeBuiltinMethodReflection.php +116 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/PhpClassReflectionExtension.php +714 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/PhpFunctionFromParserNodeReflection.php +214 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/PhpFunctionReflection.php +268 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/PhpMethodFromParserNodeReflection.php +128 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/PhpMethodReflection.php +439 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/PhpMethodReflectionFactory.php +38 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/PhpParameterFromParserNodeReflection.php +106 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/PhpParameterReflection.php +95 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/PhpPropertyReflection.php +168 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/SimpleXMLElementProperty.php +83 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/UniversalObjectCrateProperty.php +61 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/Php/UniversalObjectCratesClassReflectionExtension.php +81 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/PhpDefect/PhpDefectClassReflectionExtension.php +241 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/PhpDefect/PhpDefectPropertyReflection.php +62 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/PropertiesClassReflectionExtension.php +12 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/PropertyReflection.php +16 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ReflectionWithFilename.php +13 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/SignatureMap/FunctionSignature.php +53 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/SignatureMap/ParameterSignature.php +66 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/SignatureMap/SignatureMapParser.php +127 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/SignatureMap/SignatureMapProvider.php +82 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/SignatureMap/functionMap.php +13797 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/SignatureMap/functionMap_php74delta.php +53 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/ThrowableReflection.php +12 -0
- data/helpers/vendor/phpstan/phpstan/src/Reflection/TrivialParametersAcceptor.php +29 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/AllowedArrayKeysTypes.php +27 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/AppendedArrayItemTypeRule.php +93 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/AppendedArrayKeyTypeRule.php +94 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/DeadForeachRule.php +38 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php +85 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/InvalidKeyInArrayDimFetchRule.php +57 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/InvalidKeyInArrayItemRule.php +51 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/IterableInForeachRule.php +61 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/NonexistentOffsetInArrayDimFetchRule.php +140 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/OffsetAccessAssignOpRule.php +95 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/OffsetAccessAssignmentRule.php +89 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Arrays/OffsetAccessWithoutDimForReadingRule.php +33 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Cast/EchoRule.php +63 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Cast/InvalidCastRule.php +100 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Cast/InvalidPartOfEncapsedStringRule.php +76 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Cast/PrintRule.php +57 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/ClassCaseSensitivityCheck.php +62 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/ClassNameNodePair.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/ClassConstantDeclarationRule.php +36 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/ClassConstantRule.php +165 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/ExistingClassInClassExtendsRule.php +40 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/ExistingClassInInstanceOfRule.php +82 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/ExistingClassInTraitUseRule.php +41 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/ExistingClassesInClassImplementsRule.php +41 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/ExistingClassesInInterfaceExtendsRule.php +41 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/ImpossibleInstanceOfRule.php +69 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/InstantiationRule.php +219 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/NewStaticRule.php +68 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/RequireParentConstructCallRule.php +147 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Classes/UnusedConstructorParametersRule.php +65 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/BooleanAndConstantConditionRule.php +70 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/BooleanNotConstantConditionRule.php +50 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/BooleanOrConstantConditionRule.php +70 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/ConstantConditionRuleHelper.php +70 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/ElseIfConstantConditionRule.php +50 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/IfConstantConditionRule.php +50 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/ImpossibleCheckTypeFunctionCallRule.php +68 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/ImpossibleCheckTypeHelper.php +245 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/ImpossibleCheckTypeMethodCallRule.php +84 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/ImpossibleCheckTypeStaticMethodCallRule.php +99 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/StrictComparisonOfDifferentTypesRule.php +85 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/TernaryOperatorConstantConditionRule.php +48 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/UnreachableIfBranchesRule.php +57 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Comparison/UnreachableTernaryElseBranchRule.php +52 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Constants/ConstantRule.php +35 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/DeadCode/NoopRule.php +65 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/DeadCode/UnreachableStatementRule.php +34 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Exceptions/CaughtExceptionExistenceRule.php +75 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Exceptions/DeadCatchRule.php +56 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/FileRuleError.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/FoundTypeResult.php +56 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/FunctionCallParametersCheck.php +192 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/FunctionDefinitionCheck.php +323 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/FunctionReturnTypeCheck.php +88 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/ArrowFunctionReturnTypeRule.php +53 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/CallCallablesRule.php +131 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/CallToFunctionParametersRule.php +71 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/CallToNonExistentFunctionRule.php +65 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/ClosureReturnTypeRule.php +53 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/ExistingClassesInArrowFunctionTypehintsRule.php +41 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/ExistingClassesInClosureTypehintsRule.php +42 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/ExistingClassesInTypehintsRule.php +47 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/IncompatibleDefaultParameterTypeRule.php +83 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/InnerFunctionRule.php +33 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/NonExistentDefinedFunctionRule.php +51 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/PrintfParametersRule.php +128 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/ReturnTypeRule.php +77 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Functions/UnusedClosureUsesRule.php +49 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Generators/YieldFromTypeRule.php +94 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Generators/YieldInGeneratorRule.php +75 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Generators/YieldTypeRule.php +85 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/LineRuleError.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Methods/CallMethodsRule.php +171 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Methods/CallStaticMethodsRule.php +279 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Methods/ExistingClassesInTypehintsRule.php +59 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Methods/IncompatibleDefaultParameterTypeRule.php +70 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Methods/MethodSignatureRule.php +188 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Methods/ReturnTypeRule.php +76 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Missing/MissingClosureNativeReturnTypehintRule.php +141 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Missing/MissingReturnRule.php +96 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Namespaces/ExistingNamesInGroupUseRule.php +129 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Namespaces/ExistingNamesInUseRule.php +130 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Operators/InvalidBinaryOperationRule.php +119 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Operators/InvalidComparisonOperationRule.php +114 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Operators/InvalidIncDecOperationRule.php +77 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Operators/InvalidUnaryOperationRule.php +44 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/PhpDoc/IncompatiblePhpDocTypeRule.php +161 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/PhpDoc/IncompatiblePropertyPhpDocTypeRule.php +76 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/PhpDoc/InvalidPhpDocTagValueRule.php +76 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/PhpDoc/InvalidPhpDocVarTagTypeRule.php +126 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/PhpDoc/InvalidThrowsPhpDocValueRule.php +67 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/PhpDoc/WrongVariableNameInVarTagRule.php +283 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/AccessPropertiesInAssignRule.php +39 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/AccessPropertiesRule.php +141 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/AccessStaticPropertiesInAssignRule.php +39 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/AccessStaticPropertiesRule.php +203 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/DefaultValueTypesAssignedToPropertiesRule.php +70 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/ExistingClassesInPropertiesRule.php +102 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/PropertyDescriptor.php +26 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/PropertyReflectionFinder.php +49 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/ReadingWriteOnlyPropertiesRule.php +90 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/TypesAssignedToPropertiesRule.php +94 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Properties/WritingToReadOnlyPropertiesRule.php +96 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Regexp/RegularExpressionPatternRule.php +126 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Registry.php +46 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/RegistryFactory.php +27 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Rule.php +23 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/RuleError.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/RuleErrorBuilder.php +63 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/RuleErrors/RuleErrorWithMessage.php +23 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/RuleErrors/RuleErrorWithMessageAndFile.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/RuleErrors/RuleErrorWithMessageAndLine.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/RuleErrors/RuleErrorWithMessageAndLineAndFile.php +42 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/RuleLevelHelper.php +208 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/TooWideTypehints/TooWideClosureReturnTypehintRule.php +70 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/TooWideTypehints/TooWideFunctionReturnTypehintRule.php +77 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/TooWideTypehints/TooWidePrivateMethodReturnTypehintRule.php +80 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/UnusedFunctionParametersCheck.php +87 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Variables/DefinedVariableInAnonymousFunctionUseRule.php +54 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Variables/DefinedVariableRule.php +73 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Variables/ThisVariableRule.php +57 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Variables/ThrowTypeRule.php +63 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Variables/VariableCertaintyInIssetRule.php +66 -0
- data/helpers/vendor/phpstan/phpstan/src/Rules/Variables/VariableCloningRule.php +68 -0
- data/helpers/vendor/phpstan/phpstan/src/ShouldNotHappenException.php +13 -0
- data/helpers/vendor/phpstan/phpstan/src/Testing/LevelsTestCase.php +134 -0
- data/helpers/vendor/phpstan/phpstan/src/Testing/RuleTestCase.php +154 -0
- data/helpers/vendor/phpstan/phpstan/src/Testing/TestCase.php +375 -0
- data/helpers/vendor/phpstan/phpstan/src/TrinaryLogic.php +148 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Accessory/AccessoryType.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Accessory/HasMethodType.php +122 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Accessory/HasOffsetType.php +157 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Accessory/HasPropertyType.php +107 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Accessory/NonEmptyArrayType.php +161 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/ArrayType.php +349 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/BenevolentUnionType.php +45 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/BooleanType.php +98 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/CallableType.php +279 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/CallableTypeHelper.php +59 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/ClosureType.php +319 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/CommentHelper.php +20 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/CompoundType.php +14 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/CompoundTypeHelper.php +15 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Constant/ConstantArrayType.php +583 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Constant/ConstantArrayTypeAndMethod.php +76 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Constant/ConstantArrayTypeBuilder.php +111 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Constant/ConstantBooleanType.php +68 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Constant/ConstantFloatType.php +93 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Constant/ConstantIntegerType.php +61 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Constant/ConstantScalarToBooleanTrait.php +15 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Constant/ConstantStringType.php +224 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/ConstantScalarType.php +13 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/ConstantType.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/DynamicFunctionReturnTypeExtension.php +16 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/DynamicMethodReturnTypeExtension.php +18 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/DynamicStaticMethodReturnTypeExtension.php +18 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/ErrorType.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/FileTypeMapper.php +320 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/FloatType.php +138 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/FunctionTypeSpecifyingExtension.php +18 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Generic/TemplateMixedType.php +192 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Generic/TemplateObjectType.php +198 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Generic/TemplateType.php +21 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Generic/TemplateTypeArgumentStrategy.php +34 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Generic/TemplateTypeFactory.php +28 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Generic/TemplateTypeHelper.php +46 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Generic/TemplateTypeMap.php +66 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Generic/TemplateTypeParameterStrategy.php +38 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Generic/TemplateTypeScope.php +37 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Generic/TemplateTypeStrategy.php +15 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/IntegerType.php +87 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/IntersectionType.php +441 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/IterableType.php +221 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/JustNullableTypeTrait.php +59 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/MethodTypeSpecifyingExtension.php +20 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/MixedType.php +300 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/NeverType.php +223 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/NonexistentParentClassType.php +115 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/NullType.php +146 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/ObjectType.php +730 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/ObjectWithoutClassType.php +164 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/OperatorTypeSpecifyingExtension.php +12 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArgumentBasedFunctionReturnTypeExtension.php +67 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayFillFunctionReturnTypeExtension.php +72 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayFillKeysFunctionReturnTypeExtension.php +48 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayFilterFunctionReturnTypeReturnTypeExtension.php +124 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayKeyDynamicReturnTypeExtension.php +41 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayKeyExistsFunctionTypeSpecifyingExtension.php +65 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayKeyFirstDynamicReturnTypeExtension.php +58 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayKeyLastDynamicReturnTypeExtension.php +58 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayKeysFunctionDynamicReturnTypeExtension.php +45 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayMapFunctionReturnTypeExtension.php +69 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayMergeFunctionDynamicReturnTypeExtension.php +52 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayPointerFunctionsDynamicReturnTypeExtension.php +72 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayPopFunctionReturnTypeExtension.php +58 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayReduceFunctionReturnTypeExtension.php +67 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArraySearchFunctionDynamicReturnTypeExtension.php +165 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayShiftFunctionReturnTypeExtension.php +58 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArraySliceFunctionReturnTypeExtension.php +81 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ArrayValuesFunctionDynamicReturnTypeExtension.php +43 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/AssertFunctionTypeSpecifyingExtension.php +36 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/CountFunctionReturnTypeExtension.php +51 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/CountFunctionTypeSpecifyingExtension.php +53 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/CurlInitReturnTypeExtension.php +37 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/DefineConstantTypeSpecifyingExtension.php +61 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/DefinedConstantTypeSpecifyingExtension.php +62 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/DioStatDynamicFunctionReturnTypeExtension.php +49 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ExplodeFunctionDynamicReturnTypeExtension.php +52 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/FilterVarDynamicReturnTypeExtension.php +80 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/GetParentClassDynamicFunctionReturnTypeExtension.php +104 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/GettimeofdayDynamicFunctionReturnTypeExtension.php +63 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/HrtimeFunctionReturnTypeExtension.php +47 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/InArrayFunctionTypeSpecifyingExtension.php +57 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsAFunctionTypeSpecifyingExtension.php +81 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsArrayFunctionTypeSpecifyingExtension.php +43 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsBoolFunctionTypeSpecifyingExtension.php +42 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsCallableFunctionTypeSpecifyingExtension.php +69 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsCountableFunctionTypeSpecifyingExtension.php +52 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsFloatFunctionTypeSpecifyingExtension.php +46 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsIntFunctionTypeSpecifyingExtension.php +46 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsIterableFunctionTypeSpecifyingExtension.php +43 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsNullFunctionTypeSpecifyingExtension.php +42 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsNumericFunctionTypeSpecifyingExtension.php +54 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsObjectFunctionTypeSpecifyingExtension.php +42 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsResourceFunctionTypeSpecifyingExtension.php +42 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsScalarFunctionTypeSpecifyingExtension.php +51 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsStringFunctionTypeSpecifyingExtension.php +42 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/IsSubclassOfFunctionTypeSpecifyingExtension.php +85 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/JsonThrowOnErrorDynamicReturnTypeExtension.php +62 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/MbFunctionsReturnTypeExtension.php +87 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/MethodExistsTypeSpecifyingExtension.php +62 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/MicrotimeFunctionReturnTypeExtension.php +48 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/MinMaxFunctionReturnTypeExtension.php +183 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ParseUrlFunctionDynamicReturnTypeExtension.php +137 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/PathinfoFunctionDynamicReturnTypeExtension.php +54 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/PropertyExistsTypeSpecifyingExtension.php +62 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/RangeFunctionReturnTypeExtension.php +106 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/ReplaceFunctionsDynamicReturnTypeExtension.php +86 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/SimpleXMLElementClassPropertyReflectionExtension.php +25 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/SprintfFunctionDynamicReturnTypeExtension.php +47 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/StatDynamicReturnTypeExtension.php +76 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/StrSplitFunctionReturnTypeExtension.php +84 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/StrtotimeFunctionReturnTypeExtension.php +45 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/TypeSpecifyingFunctionsDynamicReturnTypeExtension.php +93 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/VarExportFunctionDynamicReturnTypeExtension.php +58 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Php/VersionCompareFunctionDynamicReturnTypeExtension.php +82 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/RecursionGuard.php +26 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/ResourceType.php +87 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/StaticMethodTypeSpecifyingExtension.php +20 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/StaticResolvableType.php +12 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/StaticType.php +255 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/StringAlwaysAcceptingObjectWithToStringType.php +28 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/StringType.php +130 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/SubtractableType.php +16 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/ThisType.php +27 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/ConstantScalarTypeTrait.php +53 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/FalseyBooleanTypeTrait.php +16 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/MaybeCallableTypeTrait.php +26 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/MaybeIterableTypeTrait.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/MaybeObjectTypeTrait.php +67 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/MaybeOffsetAccessibleTypeTrait.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/NonCallableTypeTrait.php +21 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/NonGenericTypeTrait.php +16 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/NonIterableTypeTrait.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/NonObjectTypeTrait.php +64 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/NonOffsetAccessibleTypeTrait.php +32 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/ObjectTypeTrait.php +107 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/TruthyBooleanTypeTrait.php +16 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Traits/UndecidedBooleanTypeTrait.php +15 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/Type.php +110 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/TypeCombinator.php +593 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/TypeTraverser.php +47 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/TypeUtils.php +262 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/TypeWithClassName.php +10 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/TypehintHelper.php +122 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/UnionType.php +622 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/UnionTypeHelper.php +123 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/VerbosityLevel.php +67 -0
- data/helpers/vendor/phpstan/phpstan/src/Type/VoidType.php +103 -0
- data/helpers/vendor/phpstan/phpstan/tmp/.gitignore +4 -0
- data/helpers/vendor/phpstan/phpstan/tmp/cache/.gitignore +2 -0
- data/helpers/vendor/phpstan/phpstan/tmp/generated/.gitignore +2 -0
- data/helpers/vendor/psr/log/.gitignore +1 -0
- data/helpers/vendor/psr/log/LICENSE +19 -0
- data/helpers/vendor/psr/log/Psr/Log/AbstractLogger.php +128 -0
- data/helpers/vendor/psr/log/Psr/Log/InvalidArgumentException.php +7 -0
- data/helpers/vendor/psr/log/Psr/Log/LogLevel.php +18 -0
- data/helpers/vendor/psr/log/Psr/Log/LoggerAwareInterface.php +18 -0
- data/helpers/vendor/psr/log/Psr/Log/LoggerAwareTrait.php +26 -0
- data/helpers/vendor/psr/log/Psr/Log/LoggerInterface.php +123 -0
- data/helpers/vendor/psr/log/Psr/Log/LoggerTrait.php +140 -0
- data/helpers/vendor/psr/log/Psr/Log/NullLogger.php +28 -0
- data/helpers/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php +144 -0
- data/helpers/vendor/psr/log/Psr/Log/Test/TestLogger.php +146 -0
- data/helpers/vendor/psr/log/README.md +52 -0
- data/helpers/vendor/psr/log/composer.json +26 -0
- data/helpers/vendor/seld/jsonlint/.gitignore +3 -0
- data/helpers/vendor/seld/jsonlint/.travis.yml +25 -0
- data/helpers/vendor/seld/jsonlint/CHANGELOG.md +66 -0
- data/helpers/vendor/seld/jsonlint/LICENSE +19 -0
- data/helpers/vendor/seld/jsonlint/README.md +89 -0
- data/helpers/vendor/seld/jsonlint/bin/jsonlint +117 -0
- data/helpers/vendor/seld/jsonlint/composer.json +24 -0
- data/helpers/vendor/seld/jsonlint/phpunit.xml.dist +25 -0
- data/helpers/vendor/seld/jsonlint/src/Seld/JsonLint/DuplicateKeyException.php +26 -0
- data/helpers/vendor/seld/jsonlint/src/Seld/JsonLint/JsonParser.php +502 -0
- data/helpers/vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php +217 -0
- data/helpers/vendor/seld/jsonlint/src/Seld/JsonLint/ParsingException.php +28 -0
- data/helpers/vendor/seld/jsonlint/src/Seld/JsonLint/Undefined.php +16 -0
- data/helpers/vendor/seld/jsonlint/tests/JsonParserTest.php +230 -0
- data/helpers/vendor/seld/jsonlint/tests/bom.json +6 -0
- data/helpers/vendor/seld/jsonlint/tests/bootstrap.php +13 -0
- data/helpers/vendor/seld/phar-utils/.gitignore +1 -0
- data/helpers/vendor/seld/phar-utils/LICENSE +19 -0
- data/helpers/vendor/seld/phar-utils/README.md +39 -0
- data/helpers/vendor/seld/phar-utils/composer.json +26 -0
- data/helpers/vendor/seld/phar-utils/composer.lock +19 -0
- data/helpers/vendor/seld/phar-utils/src/Timestamps.php +192 -0
- data/helpers/vendor/symfony/console/.gitignore +3 -0
- data/helpers/vendor/symfony/console/Application.php +1266 -0
- data/helpers/vendor/symfony/console/CHANGELOG.md +112 -0
- data/helpers/vendor/symfony/console/Command/Command.php +668 -0
- data/helpers/vendor/symfony/console/Command/HelpCommand.php +81 -0
- data/helpers/vendor/symfony/console/Command/ListCommand.php +90 -0
- data/helpers/vendor/symfony/console/Command/LockableTrait.php +72 -0
- data/helpers/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php +46 -0
- data/helpers/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php +64 -0
- data/helpers/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php +62 -0
- data/helpers/vendor/symfony/console/ConsoleEvents.php +60 -0
- data/helpers/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php +106 -0
- data/helpers/vendor/symfony/console/Descriptor/ApplicationDescription.php +151 -0
- data/helpers/vendor/symfony/console/Descriptor/Descriptor.php +107 -0
- data/helpers/vendor/symfony/console/Descriptor/DescriptorInterface.php +29 -0
- data/helpers/vendor/symfony/console/Descriptor/JsonDescriptor.php +168 -0
- data/helpers/vendor/symfony/console/Descriptor/MarkdownDescriptor.php +182 -0
- data/helpers/vendor/symfony/console/Descriptor/TextDescriptor.php +342 -0
- data/helpers/vendor/symfony/console/Descriptor/XmlDescriptor.php +248 -0
- data/helpers/vendor/symfony/console/Event/ConsoleCommandEvent.php +60 -0
- data/helpers/vendor/symfony/console/Event/ConsoleErrorEvent.php +83 -0
- data/helpers/vendor/symfony/console/Event/ConsoleEvent.php +67 -0
- data/helpers/vendor/symfony/console/Event/ConsoleExceptionEvent.php +71 -0
- data/helpers/vendor/symfony/console/Event/ConsoleTerminateEvent.php +58 -0
- data/helpers/vendor/symfony/console/EventListener/ErrorListener.php +95 -0
- data/helpers/vendor/symfony/console/Exception/CommandNotFoundException.php +43 -0
- data/helpers/vendor/symfony/console/Exception/ExceptionInterface.php +21 -0
- data/helpers/vendor/symfony/console/Exception/InvalidArgumentException.php +19 -0
- data/helpers/vendor/symfony/console/Exception/InvalidOptionException.php +21 -0
- data/helpers/vendor/symfony/console/Exception/LogicException.php +19 -0
- data/helpers/vendor/symfony/console/Exception/RuntimeException.php +19 -0
- data/helpers/vendor/symfony/console/Formatter/OutputFormatter.php +243 -0
- data/helpers/vendor/symfony/console/Formatter/OutputFormatterInterface.php +71 -0
- data/helpers/vendor/symfony/console/Formatter/OutputFormatterStyle.php +183 -0
- data/helpers/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php +62 -0
- data/helpers/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php +109 -0
- data/helpers/vendor/symfony/console/Helper/DebugFormatterHelper.php +127 -0
- data/helpers/vendor/symfony/console/Helper/DescriptorHelper.php +91 -0
- data/helpers/vendor/symfony/console/Helper/FormatterHelper.php +106 -0
- data/helpers/vendor/symfony/console/Helper/Helper.php +138 -0
- data/helpers/vendor/symfony/console/Helper/HelperInterface.php +39 -0
- data/helpers/vendor/symfony/console/Helper/HelperSet.php +108 -0
- data/helpers/vendor/symfony/console/Helper/InputAwareHelper.php +33 -0
- data/helpers/vendor/symfony/console/Helper/ProcessHelper.php +141 -0
- data/helpers/vendor/symfony/console/Helper/ProgressBar.php +614 -0
- data/helpers/vendor/symfony/console/Helper/ProgressIndicator.php +270 -0
- data/helpers/vendor/symfony/console/Helper/QuestionHelper.php +499 -0
- data/helpers/vendor/symfony/console/Helper/SymfonyQuestionHelper.php +124 -0
- data/helpers/vendor/symfony/console/Helper/Table.php +698 -0
- data/helpers/vendor/symfony/console/Helper/TableCell.php +75 -0
- data/helpers/vendor/symfony/console/Helper/TableSeparator.php +25 -0
- data/helpers/vendor/symfony/console/Helper/TableStyle.php +258 -0
- data/helpers/vendor/symfony/console/Input/ArgvInput.php +372 -0
- data/helpers/vendor/symfony/console/Input/ArrayInput.php +208 -0
- data/helpers/vendor/symfony/console/Input/Input.php +203 -0
- data/helpers/vendor/symfony/console/Input/InputArgument.php +129 -0
- data/helpers/vendor/symfony/console/Input/InputAwareInterface.php +26 -0
- data/helpers/vendor/symfony/console/Input/InputDefinition.php +404 -0
- data/helpers/vendor/symfony/console/Input/InputInterface.php +163 -0
- data/helpers/vendor/symfony/console/Input/InputOption.php +208 -0
- data/helpers/vendor/symfony/console/Input/StreamableInputInterface.php +37 -0
- data/helpers/vendor/symfony/console/Input/StringInput.php +72 -0
- data/helpers/vendor/symfony/console/LICENSE +19 -0
- data/helpers/vendor/symfony/console/Logger/ConsoleLogger.php +128 -0
- data/helpers/vendor/symfony/console/Output/BufferedOutput.php +45 -0
- data/helpers/vendor/symfony/console/Output/ConsoleOutput.php +152 -0
- data/helpers/vendor/symfony/console/Output/ConsoleOutputInterface.php +30 -0
- data/helpers/vendor/symfony/console/Output/NullOutput.php +123 -0
- data/helpers/vendor/symfony/console/Output/Output.php +175 -0
- data/helpers/vendor/symfony/console/Output/OutputInterface.php +114 -0
- data/helpers/vendor/symfony/console/Output/StreamOutput.php +124 -0
- data/helpers/vendor/symfony/console/Question/ChoiceQuestion.php +187 -0
- data/helpers/vendor/symfony/console/Question/ConfirmationQuestion.php +59 -0
- data/helpers/vendor/symfony/console/Question/Question.php +242 -0
- data/helpers/vendor/symfony/console/README.md +20 -0
- data/helpers/vendor/symfony/console/Resources/bin/hiddeninput.exe +0 -0
- data/helpers/vendor/symfony/console/Style/OutputStyle.php +155 -0
- data/helpers/vendor/symfony/console/Style/StyleInterface.php +153 -0
- data/helpers/vendor/symfony/console/Style/SymfonyStyle.php +431 -0
- data/helpers/vendor/symfony/console/Terminal.php +163 -0
- data/helpers/vendor/symfony/console/Tester/ApplicationTester.php +176 -0
- data/helpers/vendor/symfony/console/Tester/CommandTester.php +162 -0
- data/helpers/vendor/symfony/console/Tests/ApplicationTest.php +1744 -0
- data/helpers/vendor/symfony/console/Tests/Command/CommandTest.php +430 -0
- data/helpers/vendor/symfony/console/Tests/Command/HelpCommandTest.php +71 -0
- data/helpers/vendor/symfony/console/Tests/Command/ListCommandTest.php +113 -0
- data/helpers/vendor/symfony/console/Tests/Command/LockableTraitTest.php +67 -0
- data/helpers/vendor/symfony/console/Tests/CommandLoader/ContainerCommandLoaderTest.php +59 -0
- data/helpers/vendor/symfony/console/Tests/CommandLoader/FactoryCommandLoaderTest.php +58 -0
- data/helpers/vendor/symfony/console/Tests/DependencyInjection/AddConsoleCommandPassTest.php +256 -0
- data/helpers/vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php +107 -0
- data/helpers/vendor/symfony/console/Tests/Descriptor/JsonDescriptorTest.php +35 -0
- data/helpers/vendor/symfony/console/Tests/Descriptor/MarkdownDescriptorTest.php +45 -0
- data/helpers/vendor/symfony/console/Tests/Descriptor/ObjectsProvider.php +82 -0
- data/helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php +53 -0
- data/helpers/vendor/symfony/console/Tests/Descriptor/XmlDescriptorTest.php +27 -0
- data/helpers/vendor/symfony/console/Tests/EventListener/ErrorListenerTest.php +156 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/BarBucCommand.php +11 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/DescriptorApplication1.php +18 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/DescriptorApplication2.php +26 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/DescriptorApplicationMbString.php +24 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/DescriptorCommand1.php +27 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/DescriptorCommand2.php +32 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/DescriptorCommand3.php +27 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/DescriptorCommand4.php +25 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/DescriptorCommandMbString.php +32 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/DummyOutput.php +36 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Foo1Command.php +26 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Foo2Command.php +21 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Foo3Command.php +29 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Foo4Command.php +11 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Foo5Command.php +10 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Foo6Command.php +11 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/FooCommand.php +33 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/FooHiddenCommand.php +21 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/FooLock2Command.php +28 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/FooLockCommand.php +27 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/FooOptCommand.php +36 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/FooSameCaseLowercaseCommand.php +11 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/FooSameCaseUppercaseCommand.php +11 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced1Command.php +26 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced2Command.php +26 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/FoobarCommand.php +25 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_0.php +11 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_1.php +13 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_10.php +17 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_11.php +12 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_12.php +13 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_13.php +14 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_14.php +17 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_15.php +14 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_16.php +15 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_17.php +13 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_2.php +16 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_3.php +12 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_4.php +34 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php +37 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_6.php +16 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_7.php +15 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_8.php +26 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_9.php +11 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/interactive_command_1.php +19 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/interactive_output_1.txt +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_0.txt +3 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_1.txt +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_10.txt +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_11.txt +4 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_12.txt +6 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_13.txt +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_14.txt +6 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_15.txt +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_16.txt +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_17.txt +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_2.txt +13 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_3.txt +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_4.txt +32 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_5.txt +18 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_6.txt +6 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_7.txt +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_8.txt +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_9.txt +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/TestAmbiguousCommandRegistering.php +22 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/TestAmbiguousCommandRegistering2.php +21 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/TestCommand.php +28 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_1.json +156 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_1.md +172 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_1.txt +17 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_1.xml +104 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_2.json +509 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_2.md +431 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_2.txt +21 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_2.xml +254 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_filtered_namespace.txt +16 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_gethelp.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_mbstring.md +269 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_mbstring.txt +19 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_renderexception1.txt +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_renderexception2.txt +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_renderexception3.txt +18 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_renderexception3decorated.txt +18 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_renderexception4.txt +6 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth1.txt +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth1decorated.txt +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth2.txt +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_renderexception_escapeslines.txt +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_renderexception_linebreaks.txt +11 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_run1.txt +17 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_run2.txt +26 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_run3.txt +26 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/application_run4.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/command_1.json +15 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/command_1.md +12 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/command_1.txt +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/command_1.xml +12 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/command_2.json +33 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/command_2.md +29 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/command_2.txt +13 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/command_2.xml +21 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/command_mbstring.md +29 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/command_mbstring.txt +13 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_1.json +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_1.md +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_1.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_1.xml +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_2.json +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_2.md +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_2.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_2.xml +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_3.json +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_3.md +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_3.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_3.xml +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_4.json +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_4.md +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_4.txt +2 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_4.xml +6 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.json +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.md +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.xml +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.json +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.md +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.xml +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_1.json +4 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_1.md +0 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_1.txt +0 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_1.xml +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_2.json +12 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_2.md +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_2.txt +2 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_2.xml +10 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_3.json +14 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_3.md +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_3.txt +2 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_3.xml +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_4.json +22 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_4.md +16 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_4.txt +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_definition_4.xml +14 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_1.json +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_1.md +6 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_1.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_1.xml +4 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_2.json +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_2.md +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_2.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_2.xml +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_3.json +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_3.md +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_3.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_3.xml +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_4.json +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_4.md +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_4.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_4.xml +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_5.json +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_5.md +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_5.txt +2 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_5.xml +6 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_6.json +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_6.md +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_6.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_6.xml +5 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.json +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.md +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.xml +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_style.json +9 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_style.md +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_style.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_style.xml +7 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.json +12 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.md +8 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.txt +1 -0
- data/helpers/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.xml +8 -0
- data/helpers/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleStackTest.php +69 -0
- data/helpers/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleTest.php +100 -0
- data/helpers/vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php +344 -0
- data/helpers/vendor/symfony/console/Tests/Helper/AbstractQuestionHelperTest.php +34 -0
- data/helpers/vendor/symfony/console/Tests/Helper/FormatterHelperTest.php +129 -0
- data/helpers/vendor/symfony/console/Tests/Helper/HelperSetTest.php +127 -0
- data/helpers/vendor/symfony/console/Tests/Helper/HelperTest.php +55 -0
- data/helpers/vendor/symfony/console/Tests/Helper/ProcessHelperTest.php +118 -0
- data/helpers/vendor/symfony/console/Tests/Helper/ProgressBarTest.php +805 -0
- data/helpers/vendor/symfony/console/Tests/Helper/ProgressIndicatorTest.php +175 -0
- data/helpers/vendor/symfony/console/Tests/Helper/QuestionHelperTest.php +1081 -0
- data/helpers/vendor/symfony/console/Tests/Helper/SymfonyQuestionHelperTest.php +166 -0
- data/helpers/vendor/symfony/console/Tests/Helper/TableStyleTest.php +26 -0
- data/helpers/vendor/symfony/console/Tests/Helper/TableTest.php +868 -0
- data/helpers/vendor/symfony/console/Tests/Input/ArgvInputTest.php +462 -0
- data/helpers/vendor/symfony/console/Tests/Input/ArrayInputTest.php +173 -0
- data/helpers/vendor/symfony/console/Tests/Input/InputArgumentTest.php +109 -0
- data/helpers/vendor/symfony/console/Tests/Input/InputDefinitionTest.php +389 -0
- data/helpers/vendor/symfony/console/Tests/Input/InputOptionTest.php +194 -0
- data/helpers/vendor/symfony/console/Tests/Input/InputTest.php +137 -0
- data/helpers/vendor/symfony/console/Tests/Input/StringInputTest.php +87 -0
- data/helpers/vendor/symfony/console/Tests/Logger/ConsoleLoggerTest.php +213 -0
- data/helpers/vendor/symfony/console/Tests/Output/ConsoleOutputTest.php +42 -0
- data/helpers/vendor/symfony/console/Tests/Output/NullOutputTest.php +88 -0
- data/helpers/vendor/symfony/console/Tests/Output/OutputTest.php +176 -0
- data/helpers/vendor/symfony/console/Tests/Output/StreamOutputTest.php +59 -0
- data/helpers/vendor/symfony/console/Tests/Question/ChoiceQuestionTest.php +64 -0
- data/helpers/vendor/symfony/console/Tests/Question/ConfirmationQuestionTest.php +62 -0
- data/helpers/vendor/symfony/console/Tests/Style/SymfonyStyleTest.php +118 -0
- data/helpers/vendor/symfony/console/Tests/TerminalTest.php +97 -0
- data/helpers/vendor/symfony/console/Tests/Tester/ApplicationTesterTest.php +70 -0
- data/helpers/vendor/symfony/console/Tests/Tester/CommandTesterTest.php +212 -0
- data/helpers/vendor/symfony/console/composer.json +56 -0
- data/helpers/vendor/symfony/console/phpunit.xml.dist +41 -0
- data/helpers/vendor/symfony/debug/.gitignore +3 -0
- data/helpers/vendor/symfony/debug/BufferingLogger.php +37 -0
- data/helpers/vendor/symfony/debug/CHANGELOG.md +64 -0
- data/helpers/vendor/symfony/debug/Debug.php +60 -0
- data/helpers/vendor/symfony/debug/DebugClassLoader.php +455 -0
- data/helpers/vendor/symfony/debug/ErrorHandler.php +787 -0
- data/helpers/vendor/symfony/debug/Exception/ClassNotFoundException.php +36 -0
- data/helpers/vendor/symfony/debug/Exception/ContextErrorException.php +40 -0
- data/helpers/vendor/symfony/debug/Exception/FatalErrorException.php +82 -0
- data/helpers/vendor/symfony/debug/Exception/FatalThrowableError.php +45 -0
- data/helpers/vendor/symfony/debug/Exception/FlattenException.php +263 -0
- data/helpers/vendor/symfony/debug/Exception/OutOfMemoryException.php +21 -0
- data/helpers/vendor/symfony/debug/Exception/SilencedErrorContext.php +67 -0
- data/helpers/vendor/symfony/debug/Exception/UndefinedFunctionException.php +36 -0
- data/helpers/vendor/symfony/debug/Exception/UndefinedMethodException.php +36 -0
- data/helpers/vendor/symfony/debug/ExceptionHandler.php +444 -0
- data/helpers/vendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php +214 -0
- data/helpers/vendor/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.php +32 -0
- data/helpers/vendor/symfony/debug/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php +84 -0
- data/helpers/vendor/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php +66 -0
- data/helpers/vendor/symfony/debug/LICENSE +19 -0
- data/helpers/vendor/symfony/debug/README.md +13 -0
- data/helpers/vendor/symfony/debug/Resources/ext/README.md +134 -0
- data/helpers/vendor/symfony/debug/Resources/ext/config.m4 +63 -0
- data/helpers/vendor/symfony/debug/Resources/ext/config.w32 +13 -0
- data/helpers/vendor/symfony/debug/Resources/ext/php_symfony_debug.h +60 -0
- data/helpers/vendor/symfony/debug/Resources/ext/symfony_debug.c +283 -0
- data/helpers/vendor/symfony/debug/Resources/ext/tests/001.phpt +155 -0
- data/helpers/vendor/symfony/debug/Resources/ext/tests/002.phpt +65 -0
- data/helpers/vendor/symfony/debug/Resources/ext/tests/002_1.phpt +48 -0
- data/helpers/vendor/symfony/debug/Resources/ext/tests/003.phpt +87 -0
- data/helpers/vendor/symfony/debug/Tests/DebugClassLoaderTest.php +445 -0
- data/helpers/vendor/symfony/debug/Tests/ErrorHandlerTest.php +646 -0
- data/helpers/vendor/symfony/debug/Tests/Exception/FlattenExceptionTest.php +302 -0
- data/helpers/vendor/symfony/debug/Tests/ExceptionHandlerTest.php +163 -0
- data/helpers/vendor/symfony/debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php +180 -0
- data/helpers/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php +81 -0
- data/helpers/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php +76 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/AnnotatedClass.php +13 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/ClassAlias.php +3 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/DefinitionInEvaluatedCode.php +11 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/DeprecatedClass.php +12 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/DeprecatedInterface.php +12 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php +22 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/ExtendedFinalMethod.php +19 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/FinalClasses.php +85 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/FinalMethod.php +26 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/FinalMethod2Trait.php +10 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/InternalClass.php +15 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/InternalInterface.php +10 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/InternalTrait.php +10 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/InternalTrait2.php +23 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/LoggerThatSetAnErrorHandler.php +15 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/NonDeprecatedInterface.php +7 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/PEARClass.php +5 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/Throwing.php +3 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php +24 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/TraitWithInternalMethod.php +13 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/casemismatch.php +7 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/notPsr0Bis.php +7 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/psr4/Psr4CaseMismatch.php +7 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures/reallyNotPsr0.php +7 -0
- data/helpers/vendor/symfony/debug/Tests/Fixtures2/RequiredTwice.php +7 -0
- data/helpers/vendor/symfony/debug/Tests/HeaderMock.php +38 -0
- data/helpers/vendor/symfony/debug/Tests/phpt/debug_class_loader.phpt +27 -0
- data/helpers/vendor/symfony/debug/Tests/phpt/decorate_exception_hander.phpt +47 -0
- data/helpers/vendor/symfony/debug/Tests/phpt/exception_rethrown.phpt +35 -0
- data/helpers/vendor/symfony/debug/Tests/phpt/fatal_with_nested_handlers.phpt +42 -0
- data/helpers/vendor/symfony/debug/composer.json +40 -0
- data/helpers/vendor/symfony/debug/phpunit.xml.dist +33 -0
- data/helpers/vendor/symfony/event-dispatcher/.gitignore +3 -0
- data/helpers/vendor/symfony/event-dispatcher/CHANGELOG.md +42 -0
- data/helpers/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php +198 -0
- data/helpers/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php +332 -0
- data/helpers/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcherInterface.php +36 -0
- data/helpers/vendor/symfony/event-dispatcher/Debug/WrappedListener.php +125 -0
- data/helpers/vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php +137 -0
- data/helpers/vendor/symfony/event-dispatcher/Event.php +58 -0
- data/helpers/vendor/symfony/event-dispatcher/EventDispatcher.php +238 -0
- data/helpers/vendor/symfony/event-dispatcher/EventDispatcherInterface.php +93 -0
- data/helpers/vendor/symfony/event-dispatcher/EventSubscriberInterface.php +46 -0
- data/helpers/vendor/symfony/event-dispatcher/GenericEvent.php +175 -0
- data/helpers/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php +91 -0
- data/helpers/vendor/symfony/event-dispatcher/LICENSE +19 -0
- data/helpers/vendor/symfony/event-dispatcher/README.md +15 -0
- data/helpers/vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php +442 -0
- data/helpers/vendor/symfony/event-dispatcher/Tests/ContainerAwareEventDispatcherTest.php +210 -0
- data/helpers/vendor/symfony/event-dispatcher/Tests/Debug/TraceableEventDispatcherTest.php +269 -0
- data/helpers/vendor/symfony/event-dispatcher/Tests/Debug/WrappedListenerTest.php +64 -0
- data/helpers/vendor/symfony/event-dispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php +147 -0
- data/helpers/vendor/symfony/event-dispatcher/Tests/EventDispatcherTest.php +22 -0
- data/helpers/vendor/symfony/event-dispatcher/Tests/EventTest.php +55 -0
- data/helpers/vendor/symfony/event-dispatcher/Tests/GenericEventTest.php +134 -0
- data/helpers/vendor/symfony/event-dispatcher/Tests/ImmutableEventDispatcherTest.php +100 -0
- data/helpers/vendor/symfony/event-dispatcher/composer.json +47 -0
- data/helpers/vendor/symfony/event-dispatcher/phpunit.xml.dist +31 -0
- data/helpers/vendor/symfony/filesystem/.gitignore +3 -0
- data/helpers/vendor/symfony/filesystem/CHANGELOG.md +53 -0
- data/helpers/vendor/symfony/filesystem/Exception/ExceptionInterface.php +21 -0
- data/helpers/vendor/symfony/filesystem/Exception/FileNotFoundException.php +34 -0
- data/helpers/vendor/symfony/filesystem/Exception/IOException.php +39 -0
- data/helpers/vendor/symfony/filesystem/Exception/IOExceptionInterface.php +27 -0
- data/helpers/vendor/symfony/filesystem/Filesystem.php +775 -0
- data/helpers/vendor/symfony/filesystem/LICENSE +19 -0
- data/helpers/vendor/symfony/filesystem/LockHandler.php +121 -0
- data/helpers/vendor/symfony/filesystem/README.md +13 -0
- data/helpers/vendor/symfony/filesystem/Tests/ExceptionTest.php +47 -0
- data/helpers/vendor/symfony/filesystem/Tests/FilesystemTest.php +1656 -0
- data/helpers/vendor/symfony/filesystem/Tests/FilesystemTestCase.php +165 -0
- data/helpers/vendor/symfony/filesystem/Tests/Fixtures/MockStream/MockStream.php +46 -0
- data/helpers/vendor/symfony/filesystem/Tests/LockHandlerTest.php +144 -0
- data/helpers/vendor/symfony/filesystem/composer.json +34 -0
- data/helpers/vendor/symfony/filesystem/phpunit.xml.dist +30 -0
- data/helpers/vendor/symfony/finder +1 -0
- data/helpers/vendor/symfony/options-resolver/.gitignore +3 -0
- data/helpers/vendor/symfony/options-resolver/CHANGELOG.md +52 -0
- data/helpers/vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php +102 -0
- data/helpers/vendor/symfony/options-resolver/Exception/AccessException.php +22 -0
- data/helpers/vendor/symfony/options-resolver/Exception/ExceptionInterface.php +21 -0
- data/helpers/vendor/symfony/options-resolver/Exception/InvalidArgumentException.php +21 -0
- data/helpers/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php +23 -0
- data/helpers/vendor/symfony/options-resolver/Exception/MissingOptionsException.php +23 -0
- data/helpers/vendor/symfony/options-resolver/Exception/NoConfigurationException.php +26 -0
- data/helpers/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php +26 -0
- data/helpers/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php +21 -0
- data/helpers/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php +24 -0
- data/helpers/vendor/symfony/options-resolver/LICENSE +19 -0
- data/helpers/vendor/symfony/options-resolver/Options.php +22 -0
- data/helpers/vendor/symfony/options-resolver/OptionsResolver.php +1065 -0
- data/helpers/vendor/symfony/options-resolver/README.md +15 -0
- data/helpers/vendor/symfony/options-resolver/Tests/Debug/OptionsResolverIntrospectorTest.php +183 -0
- data/helpers/vendor/symfony/options-resolver/Tests/OptionsResolverTest.php +1619 -0
- data/helpers/vendor/symfony/options-resolver/composer.json +33 -0
- data/helpers/vendor/symfony/options-resolver/phpunit.xml.dist +31 -0
- data/helpers/vendor/symfony/polyfill-ctype/Ctype.php +227 -0
- data/helpers/vendor/symfony/polyfill-ctype/LICENSE +19 -0
- data/helpers/vendor/symfony/polyfill-ctype/README.md +12 -0
- data/helpers/vendor/symfony/polyfill-ctype/bootstrap.php +26 -0
- data/helpers/vendor/symfony/polyfill-ctype/composer.json +34 -0
- data/helpers/vendor/symfony/polyfill-mbstring/LICENSE +19 -0
- data/helpers/vendor/symfony/polyfill-mbstring/Mbstring.php +829 -0
- data/helpers/vendor/symfony/polyfill-mbstring/README.md +13 -0
- data/helpers/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1096 -0
- data/helpers/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +5 -0
- data/helpers/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +1104 -0
- data/helpers/vendor/symfony/polyfill-mbstring/bootstrap.php +62 -0
- data/helpers/vendor/symfony/polyfill-mbstring/composer.json +34 -0
- data/helpers/vendor/symfony/polyfill-php70/LICENSE +19 -0
- data/helpers/vendor/symfony/polyfill-php70/Php70.php +74 -0
- data/helpers/vendor/symfony/polyfill-php70/README.md +28 -0
- data/helpers/vendor/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php +5 -0
- data/helpers/vendor/symfony/polyfill-php70/Resources/stubs/AssertionError.php +5 -0
- data/helpers/vendor/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php +5 -0
- data/helpers/vendor/symfony/polyfill-php70/Resources/stubs/Error.php +5 -0
- data/helpers/vendor/symfony/polyfill-php70/Resources/stubs/ParseError.php +5 -0
- data/helpers/vendor/symfony/polyfill-php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.php +23 -0
- data/helpers/vendor/symfony/polyfill-php70/Resources/stubs/TypeError.php +5 -0
- data/helpers/vendor/symfony/polyfill-php70/bootstrap.php +27 -0
- data/helpers/vendor/symfony/polyfill-php70/composer.json +33 -0
- data/helpers/vendor/symfony/polyfill-php72/LICENSE +19 -0
- data/helpers/vendor/symfony/polyfill-php72/Php72.php +216 -0
- data/helpers/vendor/symfony/polyfill-php72/README.md +27 -0
- data/helpers/vendor/symfony/polyfill-php72/bootstrap.php +36 -0
- data/helpers/vendor/symfony/polyfill-php72/composer.json +31 -0
- data/helpers/vendor/symfony/process +1 -0
- data/helpers/vendor/symfony/stopwatch/.gitignore +3 -0
- data/helpers/vendor/symfony/stopwatch/CHANGELOG.md +9 -0
- data/helpers/vendor/symfony/stopwatch/LICENSE +19 -0
- data/helpers/vendor/symfony/stopwatch/README.md +13 -0
- data/helpers/vendor/symfony/stopwatch/Section.php +200 -0
- data/helpers/vendor/symfony/stopwatch/Stopwatch.php +176 -0
- data/helpers/vendor/symfony/stopwatch/StopwatchEvent.php +248 -0
- data/helpers/vendor/symfony/stopwatch/StopwatchPeriod.php +76 -0
- data/helpers/vendor/symfony/stopwatch/Tests/StopwatchEventTest.php +172 -0
- data/helpers/vendor/symfony/stopwatch/Tests/StopwatchPeriodTest.php +67 -0
- data/helpers/vendor/symfony/stopwatch/Tests/StopwatchTest.php +182 -0
- data/helpers/vendor/symfony/stopwatch/composer.json +33 -0
- data/helpers/vendor/symfony/stopwatch/phpunit.xml.dist +30 -0
- metadata +2968 -4
@@ -0,0 +1,176 @@
|
|
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\Tester;
|
13
|
+
|
14
|
+
use Symfony\Component\Console\Application;
|
15
|
+
use Symfony\Component\Console\Input\ArrayInput;
|
16
|
+
use Symfony\Component\Console\Input\InputInterface;
|
17
|
+
use Symfony\Component\Console\Output\ConsoleOutput;
|
18
|
+
use Symfony\Component\Console\Output\OutputInterface;
|
19
|
+
use Symfony\Component\Console\Output\StreamOutput;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Eases the testing of console applications.
|
23
|
+
*
|
24
|
+
* When testing an application, don't forget to disable the auto exit flag:
|
25
|
+
*
|
26
|
+
* $application = new Application();
|
27
|
+
* $application->setAutoExit(false);
|
28
|
+
*
|
29
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
30
|
+
*/
|
31
|
+
class ApplicationTester
|
32
|
+
{
|
33
|
+
private $application;
|
34
|
+
private $input;
|
35
|
+
private $statusCode;
|
36
|
+
/**
|
37
|
+
* @var OutputInterface
|
38
|
+
*/
|
39
|
+
private $output;
|
40
|
+
private $captureStreamsIndependently = false;
|
41
|
+
|
42
|
+
public function __construct(Application $application)
|
43
|
+
{
|
44
|
+
$this->application = $application;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Executes the application.
|
49
|
+
*
|
50
|
+
* Available options:
|
51
|
+
*
|
52
|
+
* * interactive: Sets the input interactive flag
|
53
|
+
* * decorated: Sets the output decorated flag
|
54
|
+
* * verbosity: Sets the output verbosity flag
|
55
|
+
* * capture_stderr_separately: Make output of stdOut and stdErr separately available
|
56
|
+
*
|
57
|
+
* @param array $input An array of arguments and options
|
58
|
+
* @param array $options An array of options
|
59
|
+
*
|
60
|
+
* @return int The command exit code
|
61
|
+
*/
|
62
|
+
public function run(array $input, $options = [])
|
63
|
+
{
|
64
|
+
$this->input = new ArrayInput($input);
|
65
|
+
if (isset($options['interactive'])) {
|
66
|
+
$this->input->setInteractive($options['interactive']);
|
67
|
+
}
|
68
|
+
|
69
|
+
$this->captureStreamsIndependently = \array_key_exists('capture_stderr_separately', $options) && $options['capture_stderr_separately'];
|
70
|
+
if (!$this->captureStreamsIndependently) {
|
71
|
+
$this->output = new StreamOutput(fopen('php://memory', 'w', false));
|
72
|
+
if (isset($options['decorated'])) {
|
73
|
+
$this->output->setDecorated($options['decorated']);
|
74
|
+
}
|
75
|
+
if (isset($options['verbosity'])) {
|
76
|
+
$this->output->setVerbosity($options['verbosity']);
|
77
|
+
}
|
78
|
+
} else {
|
79
|
+
$this->output = new ConsoleOutput(
|
80
|
+
isset($options['verbosity']) ? $options['verbosity'] : ConsoleOutput::VERBOSITY_NORMAL,
|
81
|
+
isset($options['decorated']) ? $options['decorated'] : null
|
82
|
+
);
|
83
|
+
|
84
|
+
$errorOutput = new StreamOutput(fopen('php://memory', 'w', false));
|
85
|
+
$errorOutput->setFormatter($this->output->getFormatter());
|
86
|
+
$errorOutput->setVerbosity($this->output->getVerbosity());
|
87
|
+
$errorOutput->setDecorated($this->output->isDecorated());
|
88
|
+
|
89
|
+
$reflectedOutput = new \ReflectionObject($this->output);
|
90
|
+
$strErrProperty = $reflectedOutput->getProperty('stderr');
|
91
|
+
$strErrProperty->setAccessible(true);
|
92
|
+
$strErrProperty->setValue($this->output, $errorOutput);
|
93
|
+
|
94
|
+
$reflectedParent = $reflectedOutput->getParentClass();
|
95
|
+
$streamProperty = $reflectedParent->getProperty('stream');
|
96
|
+
$streamProperty->setAccessible(true);
|
97
|
+
$streamProperty->setValue($this->output, fopen('php://memory', 'w', false));
|
98
|
+
}
|
99
|
+
|
100
|
+
return $this->statusCode = $this->application->run($this->input, $this->output);
|
101
|
+
}
|
102
|
+
|
103
|
+
/**
|
104
|
+
* Gets the display returned by the last execution of the application.
|
105
|
+
*
|
106
|
+
* @param bool $normalize Whether to normalize end of lines to \n or not
|
107
|
+
*
|
108
|
+
* @return string The display
|
109
|
+
*/
|
110
|
+
public function getDisplay($normalize = false)
|
111
|
+
{
|
112
|
+
rewind($this->output->getStream());
|
113
|
+
|
114
|
+
$display = stream_get_contents($this->output->getStream());
|
115
|
+
|
116
|
+
if ($normalize) {
|
117
|
+
$display = str_replace(PHP_EOL, "\n", $display);
|
118
|
+
}
|
119
|
+
|
120
|
+
return $display;
|
121
|
+
}
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Gets the output written to STDERR by the application.
|
125
|
+
*
|
126
|
+
* @param bool $normalize Whether to normalize end of lines to \n or not
|
127
|
+
*
|
128
|
+
* @return string
|
129
|
+
*/
|
130
|
+
public function getErrorOutput($normalize = false)
|
131
|
+
{
|
132
|
+
if (!$this->captureStreamsIndependently) {
|
133
|
+
throw new \LogicException('The error output is not available when the tester is run without "capture_stderr_separately" option set.');
|
134
|
+
}
|
135
|
+
|
136
|
+
rewind($this->output->getErrorOutput()->getStream());
|
137
|
+
|
138
|
+
$display = stream_get_contents($this->output->getErrorOutput()->getStream());
|
139
|
+
|
140
|
+
if ($normalize) {
|
141
|
+
$display = str_replace(PHP_EOL, "\n", $display);
|
142
|
+
}
|
143
|
+
|
144
|
+
return $display;
|
145
|
+
}
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Gets the input instance used by the last execution of the application.
|
149
|
+
*
|
150
|
+
* @return InputInterface The current input instance
|
151
|
+
*/
|
152
|
+
public function getInput()
|
153
|
+
{
|
154
|
+
return $this->input;
|
155
|
+
}
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Gets the output instance used by the last execution of the application.
|
159
|
+
*
|
160
|
+
* @return OutputInterface The current output instance
|
161
|
+
*/
|
162
|
+
public function getOutput()
|
163
|
+
{
|
164
|
+
return $this->output;
|
165
|
+
}
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Gets the status code returned by the last execution of the application.
|
169
|
+
*
|
170
|
+
* @return int The status code
|
171
|
+
*/
|
172
|
+
public function getStatusCode()
|
173
|
+
{
|
174
|
+
return $this->statusCode;
|
175
|
+
}
|
176
|
+
}
|
@@ -0,0 +1,162 @@
|
|
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\Tester;
|
13
|
+
|
14
|
+
use Symfony\Component\Console\Command\Command;
|
15
|
+
use Symfony\Component\Console\Input\ArrayInput;
|
16
|
+
use Symfony\Component\Console\Input\InputInterface;
|
17
|
+
use Symfony\Component\Console\Output\OutputInterface;
|
18
|
+
use Symfony\Component\Console\Output\StreamOutput;
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Eases the testing of console commands.
|
22
|
+
*
|
23
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
24
|
+
* @author Robin Chalas <robin.chalas@gmail.com>
|
25
|
+
*/
|
26
|
+
class CommandTester
|
27
|
+
{
|
28
|
+
private $command;
|
29
|
+
private $input;
|
30
|
+
private $output;
|
31
|
+
private $inputs = [];
|
32
|
+
private $statusCode;
|
33
|
+
|
34
|
+
public function __construct(Command $command)
|
35
|
+
{
|
36
|
+
$this->command = $command;
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Executes the command.
|
41
|
+
*
|
42
|
+
* Available execution options:
|
43
|
+
*
|
44
|
+
* * interactive: Sets the input interactive flag
|
45
|
+
* * decorated: Sets the output decorated flag
|
46
|
+
* * verbosity: Sets the output verbosity flag
|
47
|
+
*
|
48
|
+
* @param array $input An array of command arguments and options
|
49
|
+
* @param array $options An array of execution options
|
50
|
+
*
|
51
|
+
* @return int The command exit code
|
52
|
+
*/
|
53
|
+
public function execute(array $input, array $options = [])
|
54
|
+
{
|
55
|
+
// set the command name automatically if the application requires
|
56
|
+
// this argument and no command name was passed
|
57
|
+
if (!isset($input['command'])
|
58
|
+
&& (null !== $application = $this->command->getApplication())
|
59
|
+
&& $application->getDefinition()->hasArgument('command')
|
60
|
+
) {
|
61
|
+
$input = array_merge(['command' => $this->command->getName()], $input);
|
62
|
+
}
|
63
|
+
|
64
|
+
$this->input = new ArrayInput($input);
|
65
|
+
// Use an in-memory input stream even if no inputs are set so that QuestionHelper::ask() does not rely on the blocking STDIN.
|
66
|
+
$this->input->setStream(self::createStream($this->inputs));
|
67
|
+
|
68
|
+
if (isset($options['interactive'])) {
|
69
|
+
$this->input->setInteractive($options['interactive']);
|
70
|
+
}
|
71
|
+
|
72
|
+
$this->output = new StreamOutput(fopen('php://memory', 'w', false));
|
73
|
+
$this->output->setDecorated(isset($options['decorated']) ? $options['decorated'] : false);
|
74
|
+
if (isset($options['verbosity'])) {
|
75
|
+
$this->output->setVerbosity($options['verbosity']);
|
76
|
+
}
|
77
|
+
|
78
|
+
return $this->statusCode = $this->command->run($this->input, $this->output);
|
79
|
+
}
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Gets the display returned by the last execution of the command.
|
83
|
+
*
|
84
|
+
* @param bool $normalize Whether to normalize end of lines to \n or not
|
85
|
+
*
|
86
|
+
* @return string The display
|
87
|
+
*/
|
88
|
+
public function getDisplay($normalize = false)
|
89
|
+
{
|
90
|
+
if (null === $this->output) {
|
91
|
+
throw new \RuntimeException('Output not initialized, did you execute the command before requesting the display?');
|
92
|
+
}
|
93
|
+
|
94
|
+
rewind($this->output->getStream());
|
95
|
+
|
96
|
+
$display = stream_get_contents($this->output->getStream());
|
97
|
+
|
98
|
+
if ($normalize) {
|
99
|
+
$display = str_replace(PHP_EOL, "\n", $display);
|
100
|
+
}
|
101
|
+
|
102
|
+
return $display;
|
103
|
+
}
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Gets the input instance used by the last execution of the command.
|
107
|
+
*
|
108
|
+
* @return InputInterface The current input instance
|
109
|
+
*/
|
110
|
+
public function getInput()
|
111
|
+
{
|
112
|
+
return $this->input;
|
113
|
+
}
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Gets the output instance used by the last execution of the command.
|
117
|
+
*
|
118
|
+
* @return OutputInterface The current output instance
|
119
|
+
*/
|
120
|
+
public function getOutput()
|
121
|
+
{
|
122
|
+
return $this->output;
|
123
|
+
}
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Gets the status code returned by the last execution of the application.
|
127
|
+
*
|
128
|
+
* @return int The status code
|
129
|
+
*/
|
130
|
+
public function getStatusCode()
|
131
|
+
{
|
132
|
+
return $this->statusCode;
|
133
|
+
}
|
134
|
+
|
135
|
+
/**
|
136
|
+
* Sets the user inputs.
|
137
|
+
*
|
138
|
+
* @param array $inputs An array of strings representing each input
|
139
|
+
* passed to the command input stream
|
140
|
+
*
|
141
|
+
* @return CommandTester
|
142
|
+
*/
|
143
|
+
public function setInputs(array $inputs)
|
144
|
+
{
|
145
|
+
$this->inputs = $inputs;
|
146
|
+
|
147
|
+
return $this;
|
148
|
+
}
|
149
|
+
|
150
|
+
private static function createStream(array $inputs)
|
151
|
+
{
|
152
|
+
$stream = fopen('php://memory', 'r+', false);
|
153
|
+
|
154
|
+
foreach ($inputs as $input) {
|
155
|
+
fwrite($stream, $input.PHP_EOL);
|
156
|
+
}
|
157
|
+
|
158
|
+
rewind($stream);
|
159
|
+
|
160
|
+
return $stream;
|
161
|
+
}
|
162
|
+
}
|
@@ -0,0 +1,1744 @@
|
|
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\Tests;
|
13
|
+
|
14
|
+
use PHPUnit\Framework\TestCase;
|
15
|
+
use Symfony\Component\Console\Application;
|
16
|
+
use Symfony\Component\Console\Command\Command;
|
17
|
+
use Symfony\Component\Console\CommandLoader\FactoryCommandLoader;
|
18
|
+
use Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass;
|
19
|
+
use Symfony\Component\Console\Event\ConsoleCommandEvent;
|
20
|
+
use Symfony\Component\Console\Event\ConsoleErrorEvent;
|
21
|
+
use Symfony\Component\Console\Event\ConsoleExceptionEvent;
|
22
|
+
use Symfony\Component\Console\Event\ConsoleTerminateEvent;
|
23
|
+
use Symfony\Component\Console\Exception\CommandNotFoundException;
|
24
|
+
use Symfony\Component\Console\Helper\FormatterHelper;
|
25
|
+
use Symfony\Component\Console\Helper\HelperSet;
|
26
|
+
use Symfony\Component\Console\Input\ArgvInput;
|
27
|
+
use Symfony\Component\Console\Input\ArrayInput;
|
28
|
+
use Symfony\Component\Console\Input\InputArgument;
|
29
|
+
use Symfony\Component\Console\Input\InputDefinition;
|
30
|
+
use Symfony\Component\Console\Input\InputInterface;
|
31
|
+
use Symfony\Component\Console\Input\InputOption;
|
32
|
+
use Symfony\Component\Console\Output\NullOutput;
|
33
|
+
use Symfony\Component\Console\Output\Output;
|
34
|
+
use Symfony\Component\Console\Output\OutputInterface;
|
35
|
+
use Symfony\Component\Console\Output\StreamOutput;
|
36
|
+
use Symfony\Component\Console\Tester\ApplicationTester;
|
37
|
+
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
38
|
+
use Symfony\Component\EventDispatcher\EventDispatcher;
|
39
|
+
|
40
|
+
class ApplicationTest extends TestCase
|
41
|
+
{
|
42
|
+
protected static $fixturesPath;
|
43
|
+
|
44
|
+
private $colSize;
|
45
|
+
|
46
|
+
protected function setUp()
|
47
|
+
{
|
48
|
+
$this->colSize = getenv('COLUMNS');
|
49
|
+
}
|
50
|
+
|
51
|
+
protected function tearDown()
|
52
|
+
{
|
53
|
+
putenv($this->colSize ? 'COLUMNS='.$this->colSize : 'COLUMNS');
|
54
|
+
putenv('SHELL_VERBOSITY');
|
55
|
+
unset($_ENV['SHELL_VERBOSITY']);
|
56
|
+
unset($_SERVER['SHELL_VERBOSITY']);
|
57
|
+
}
|
58
|
+
|
59
|
+
public static function setUpBeforeClass()
|
60
|
+
{
|
61
|
+
self::$fixturesPath = realpath(__DIR__.'/Fixtures/');
|
62
|
+
require_once self::$fixturesPath.'/FooCommand.php';
|
63
|
+
require_once self::$fixturesPath.'/FooOptCommand.php';
|
64
|
+
require_once self::$fixturesPath.'/Foo1Command.php';
|
65
|
+
require_once self::$fixturesPath.'/Foo2Command.php';
|
66
|
+
require_once self::$fixturesPath.'/Foo3Command.php';
|
67
|
+
require_once self::$fixturesPath.'/Foo4Command.php';
|
68
|
+
require_once self::$fixturesPath.'/Foo5Command.php';
|
69
|
+
require_once self::$fixturesPath.'/FooSameCaseUppercaseCommand.php';
|
70
|
+
require_once self::$fixturesPath.'/FooSameCaseLowercaseCommand.php';
|
71
|
+
require_once self::$fixturesPath.'/FoobarCommand.php';
|
72
|
+
require_once self::$fixturesPath.'/BarBucCommand.php';
|
73
|
+
require_once self::$fixturesPath.'/FooSubnamespaced1Command.php';
|
74
|
+
require_once self::$fixturesPath.'/FooSubnamespaced2Command.php';
|
75
|
+
require_once self::$fixturesPath.'/TestAmbiguousCommandRegistering.php';
|
76
|
+
require_once self::$fixturesPath.'/TestAmbiguousCommandRegistering2.php';
|
77
|
+
require_once self::$fixturesPath.'/FooHiddenCommand.php';
|
78
|
+
}
|
79
|
+
|
80
|
+
protected function normalizeLineBreaks($text)
|
81
|
+
{
|
82
|
+
return str_replace(PHP_EOL, "\n", $text);
|
83
|
+
}
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Replaces the dynamic placeholders of the command help text with a static version.
|
87
|
+
* The placeholder %command.full_name% includes the script path that is not predictable
|
88
|
+
* and can not be tested against.
|
89
|
+
*/
|
90
|
+
protected function ensureStaticCommandHelp(Application $application)
|
91
|
+
{
|
92
|
+
foreach ($application->all() as $command) {
|
93
|
+
$command->setHelp(str_replace('%command.full_name%', 'app/console %command.name%', $command->getHelp()));
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
public function testConstructor()
|
98
|
+
{
|
99
|
+
$application = new Application('foo', 'bar');
|
100
|
+
$this->assertEquals('foo', $application->getName(), '__construct() takes the application name as its first argument');
|
101
|
+
$this->assertEquals('bar', $application->getVersion(), '__construct() takes the application version as its second argument');
|
102
|
+
$this->assertEquals(['help', 'list'], array_keys($application->all()), '__construct() registered the help and list commands by default');
|
103
|
+
}
|
104
|
+
|
105
|
+
public function testSetGetName()
|
106
|
+
{
|
107
|
+
$application = new Application();
|
108
|
+
$application->setName('foo');
|
109
|
+
$this->assertEquals('foo', $application->getName(), '->setName() sets the name of the application');
|
110
|
+
}
|
111
|
+
|
112
|
+
public function testSetGetVersion()
|
113
|
+
{
|
114
|
+
$application = new Application();
|
115
|
+
$application->setVersion('bar');
|
116
|
+
$this->assertEquals('bar', $application->getVersion(), '->setVersion() sets the version of the application');
|
117
|
+
}
|
118
|
+
|
119
|
+
public function testGetLongVersion()
|
120
|
+
{
|
121
|
+
$application = new Application('foo', 'bar');
|
122
|
+
$this->assertEquals('foo <info>bar</info>', $application->getLongVersion(), '->getLongVersion() returns the long version of the application');
|
123
|
+
}
|
124
|
+
|
125
|
+
public function testHelp()
|
126
|
+
{
|
127
|
+
$application = new Application();
|
128
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_gethelp.txt', $this->normalizeLineBreaks($application->getHelp()), '->getHelp() returns a help message');
|
129
|
+
}
|
130
|
+
|
131
|
+
public function testAll()
|
132
|
+
{
|
133
|
+
$application = new Application();
|
134
|
+
$commands = $application->all();
|
135
|
+
$this->assertInstanceOf('Symfony\\Component\\Console\\Command\\HelpCommand', $commands['help'], '->all() returns the registered commands');
|
136
|
+
|
137
|
+
$application->add(new \FooCommand());
|
138
|
+
$commands = $application->all('foo');
|
139
|
+
$this->assertCount(1, $commands, '->all() takes a namespace as its first argument');
|
140
|
+
}
|
141
|
+
|
142
|
+
public function testAllWithCommandLoader()
|
143
|
+
{
|
144
|
+
$application = new Application();
|
145
|
+
$commands = $application->all();
|
146
|
+
$this->assertInstanceOf('Symfony\\Component\\Console\\Command\\HelpCommand', $commands['help'], '->all() returns the registered commands');
|
147
|
+
|
148
|
+
$application->add(new \FooCommand());
|
149
|
+
$commands = $application->all('foo');
|
150
|
+
$this->assertCount(1, $commands, '->all() takes a namespace as its first argument');
|
151
|
+
|
152
|
+
$application->setCommandLoader(new FactoryCommandLoader([
|
153
|
+
'foo:bar1' => function () { return new \Foo1Command(); },
|
154
|
+
]));
|
155
|
+
$commands = $application->all('foo');
|
156
|
+
$this->assertCount(2, $commands, '->all() takes a namespace as its first argument');
|
157
|
+
$this->assertInstanceOf(\FooCommand::class, $commands['foo:bar'], '->all() returns the registered commands');
|
158
|
+
$this->assertInstanceOf(\Foo1Command::class, $commands['foo:bar1'], '->all() returns the registered commands');
|
159
|
+
}
|
160
|
+
|
161
|
+
public function testRegister()
|
162
|
+
{
|
163
|
+
$application = new Application();
|
164
|
+
$command = $application->register('foo');
|
165
|
+
$this->assertEquals('foo', $command->getName(), '->register() registers a new command');
|
166
|
+
}
|
167
|
+
|
168
|
+
public function testRegisterAmbiguous()
|
169
|
+
{
|
170
|
+
$code = function (InputInterface $input, OutputInterface $output) {
|
171
|
+
$output->writeln('It works!');
|
172
|
+
};
|
173
|
+
|
174
|
+
$application = new Application();
|
175
|
+
$application->setAutoExit(false);
|
176
|
+
$application
|
177
|
+
->register('test-foo')
|
178
|
+
->setAliases(['test'])
|
179
|
+
->setCode($code);
|
180
|
+
|
181
|
+
$application
|
182
|
+
->register('test-bar')
|
183
|
+
->setCode($code);
|
184
|
+
|
185
|
+
$tester = new ApplicationTester($application);
|
186
|
+
$tester->run(['test']);
|
187
|
+
$this->assertStringContainsString('It works!', $tester->getDisplay(true));
|
188
|
+
}
|
189
|
+
|
190
|
+
public function testAdd()
|
191
|
+
{
|
192
|
+
$application = new Application();
|
193
|
+
$application->add($foo = new \FooCommand());
|
194
|
+
$commands = $application->all();
|
195
|
+
$this->assertEquals($foo, $commands['foo:bar'], '->add() registers a command');
|
196
|
+
|
197
|
+
$application = new Application();
|
198
|
+
$application->addCommands([$foo = new \FooCommand(), $foo1 = new \Foo1Command()]);
|
199
|
+
$commands = $application->all();
|
200
|
+
$this->assertEquals([$foo, $foo1], [$commands['foo:bar'], $commands['foo:bar1']], '->addCommands() registers an array of commands');
|
201
|
+
}
|
202
|
+
|
203
|
+
public function testAddCommandWithEmptyConstructor()
|
204
|
+
{
|
205
|
+
$this->expectException('LogicException');
|
206
|
+
$this->expectExceptionMessage('Command class "Foo5Command" is not correctly initialized. You probably forgot to call the parent constructor.');
|
207
|
+
$application = new Application();
|
208
|
+
$application->add(new \Foo5Command());
|
209
|
+
}
|
210
|
+
|
211
|
+
public function testHasGet()
|
212
|
+
{
|
213
|
+
$application = new Application();
|
214
|
+
$this->assertTrue($application->has('list'), '->has() returns true if a named command is registered');
|
215
|
+
$this->assertFalse($application->has('afoobar'), '->has() returns false if a named command is not registered');
|
216
|
+
|
217
|
+
$application->add($foo = new \FooCommand());
|
218
|
+
$this->assertTrue($application->has('afoobar'), '->has() returns true if an alias is registered');
|
219
|
+
$this->assertEquals($foo, $application->get('foo:bar'), '->get() returns a command by name');
|
220
|
+
$this->assertEquals($foo, $application->get('afoobar'), '->get() returns a command by alias');
|
221
|
+
|
222
|
+
$application = new Application();
|
223
|
+
$application->add($foo = new \FooCommand());
|
224
|
+
// simulate --help
|
225
|
+
$r = new \ReflectionObject($application);
|
226
|
+
$p = $r->getProperty('wantHelps');
|
227
|
+
$p->setAccessible(true);
|
228
|
+
$p->setValue($application, true);
|
229
|
+
$command = $application->get('foo:bar');
|
230
|
+
$this->assertInstanceOf('Symfony\Component\Console\Command\HelpCommand', $command, '->get() returns the help command if --help is provided as the input');
|
231
|
+
}
|
232
|
+
|
233
|
+
public function testHasGetWithCommandLoader()
|
234
|
+
{
|
235
|
+
$application = new Application();
|
236
|
+
$this->assertTrue($application->has('list'), '->has() returns true if a named command is registered');
|
237
|
+
$this->assertFalse($application->has('afoobar'), '->has() returns false if a named command is not registered');
|
238
|
+
|
239
|
+
$application->add($foo = new \FooCommand());
|
240
|
+
$this->assertTrue($application->has('afoobar'), '->has() returns true if an alias is registered');
|
241
|
+
$this->assertEquals($foo, $application->get('foo:bar'), '->get() returns a command by name');
|
242
|
+
$this->assertEquals($foo, $application->get('afoobar'), '->get() returns a command by alias');
|
243
|
+
|
244
|
+
$application->setCommandLoader(new FactoryCommandLoader([
|
245
|
+
'foo:bar1' => function () { return new \Foo1Command(); },
|
246
|
+
]));
|
247
|
+
|
248
|
+
$this->assertTrue($application->has('afoobar'), '->has() returns true if an instance is registered for an alias even with command loader');
|
249
|
+
$this->assertEquals($foo, $application->get('foo:bar'), '->get() returns an instance by name even with command loader');
|
250
|
+
$this->assertEquals($foo, $application->get('afoobar'), '->get() returns an instance by alias even with command loader');
|
251
|
+
$this->assertTrue($application->has('foo:bar1'), '->has() returns true for commands registered in the loader');
|
252
|
+
$this->assertInstanceOf(\Foo1Command::class, $foo1 = $application->get('foo:bar1'), '->get() returns a command by name from the command loader');
|
253
|
+
$this->assertTrue($application->has('afoobar1'), '->has() returns true for commands registered in the loader');
|
254
|
+
$this->assertEquals($foo1, $application->get('afoobar1'), '->get() returns a command by name from the command loader');
|
255
|
+
}
|
256
|
+
|
257
|
+
public function testSilentHelp()
|
258
|
+
{
|
259
|
+
$application = new Application();
|
260
|
+
$application->setAutoExit(false);
|
261
|
+
$application->setCatchExceptions(false);
|
262
|
+
|
263
|
+
$tester = new ApplicationTester($application);
|
264
|
+
$tester->run(['-h' => true, '-q' => true], ['decorated' => false]);
|
265
|
+
|
266
|
+
$this->assertEmpty($tester->getDisplay(true));
|
267
|
+
}
|
268
|
+
|
269
|
+
public function testGetInvalidCommand()
|
270
|
+
{
|
271
|
+
$this->expectException('Symfony\Component\Console\Exception\CommandNotFoundException');
|
272
|
+
$this->expectExceptionMessage('The command "foofoo" does not exist.');
|
273
|
+
$application = new Application();
|
274
|
+
$application->get('foofoo');
|
275
|
+
}
|
276
|
+
|
277
|
+
public function testGetNamespaces()
|
278
|
+
{
|
279
|
+
$application = new Application();
|
280
|
+
$application->add(new \FooCommand());
|
281
|
+
$application->add(new \Foo1Command());
|
282
|
+
$this->assertEquals(['foo'], $application->getNamespaces(), '->getNamespaces() returns an array of unique used namespaces');
|
283
|
+
}
|
284
|
+
|
285
|
+
public function testFindNamespace()
|
286
|
+
{
|
287
|
+
$application = new Application();
|
288
|
+
$application->add(new \FooCommand());
|
289
|
+
$this->assertEquals('foo', $application->findNamespace('foo'), '->findNamespace() returns the given namespace if it exists');
|
290
|
+
$this->assertEquals('foo', $application->findNamespace('f'), '->findNamespace() finds a namespace given an abbreviation');
|
291
|
+
$application->add(new \Foo2Command());
|
292
|
+
$this->assertEquals('foo', $application->findNamespace('foo'), '->findNamespace() returns the given namespace if it exists');
|
293
|
+
}
|
294
|
+
|
295
|
+
public function testFindNamespaceWithSubnamespaces()
|
296
|
+
{
|
297
|
+
$application = new Application();
|
298
|
+
$application->add(new \FooSubnamespaced1Command());
|
299
|
+
$application->add(new \FooSubnamespaced2Command());
|
300
|
+
$this->assertEquals('foo', $application->findNamespace('foo'), '->findNamespace() returns commands even if the commands are only contained in subnamespaces');
|
301
|
+
}
|
302
|
+
|
303
|
+
public function testFindAmbiguousNamespace()
|
304
|
+
{
|
305
|
+
$application = new Application();
|
306
|
+
$application->add(new \BarBucCommand());
|
307
|
+
$application->add(new \FooCommand());
|
308
|
+
$application->add(new \Foo2Command());
|
309
|
+
|
310
|
+
$expectedMsg = "The namespace \"f\" is ambiguous.\nDid you mean one of these?\n foo\n foo1";
|
311
|
+
|
312
|
+
$this->expectException(CommandNotFoundException::class);
|
313
|
+
$this->expectExceptionMessage($expectedMsg);
|
314
|
+
|
315
|
+
$application->findNamespace('f');
|
316
|
+
}
|
317
|
+
|
318
|
+
public function testFindNonAmbiguous()
|
319
|
+
{
|
320
|
+
$application = new Application();
|
321
|
+
$application->add(new \TestAmbiguousCommandRegistering());
|
322
|
+
$application->add(new \TestAmbiguousCommandRegistering2());
|
323
|
+
$this->assertEquals('test-ambiguous', $application->find('test')->getName());
|
324
|
+
}
|
325
|
+
|
326
|
+
public function testFindInvalidNamespace()
|
327
|
+
{
|
328
|
+
$this->expectException('Symfony\Component\Console\Exception\CommandNotFoundException');
|
329
|
+
$this->expectExceptionMessage('There are no commands defined in the "bar" namespace.');
|
330
|
+
$application = new Application();
|
331
|
+
$application->findNamespace('bar');
|
332
|
+
}
|
333
|
+
|
334
|
+
public function testFindUniqueNameButNamespaceName()
|
335
|
+
{
|
336
|
+
$this->expectException('Symfony\Component\Console\Exception\CommandNotFoundException');
|
337
|
+
$this->expectExceptionMessage('Command "foo1" is not defined');
|
338
|
+
$application = new Application();
|
339
|
+
$application->add(new \FooCommand());
|
340
|
+
$application->add(new \Foo1Command());
|
341
|
+
$application->add(new \Foo2Command());
|
342
|
+
|
343
|
+
$application->find($commandName = 'foo1');
|
344
|
+
}
|
345
|
+
|
346
|
+
public function testFind()
|
347
|
+
{
|
348
|
+
$application = new Application();
|
349
|
+
$application->add(new \FooCommand());
|
350
|
+
|
351
|
+
$this->assertInstanceOf('FooCommand', $application->find('foo:bar'), '->find() returns a command if its name exists');
|
352
|
+
$this->assertInstanceOf('Symfony\Component\Console\Command\HelpCommand', $application->find('h'), '->find() returns a command if its name exists');
|
353
|
+
$this->assertInstanceOf('FooCommand', $application->find('f:bar'), '->find() returns a command if the abbreviation for the namespace exists');
|
354
|
+
$this->assertInstanceOf('FooCommand', $application->find('f:b'), '->find() returns a command if the abbreviation for the namespace and the command name exist');
|
355
|
+
$this->assertInstanceOf('FooCommand', $application->find('a'), '->find() returns a command if the abbreviation exists for an alias');
|
356
|
+
}
|
357
|
+
|
358
|
+
public function testFindCaseSensitiveFirst()
|
359
|
+
{
|
360
|
+
$application = new Application();
|
361
|
+
$application->add(new \FooSameCaseUppercaseCommand());
|
362
|
+
$application->add(new \FooSameCaseLowercaseCommand());
|
363
|
+
|
364
|
+
$this->assertInstanceOf('FooSameCaseUppercaseCommand', $application->find('f:B'), '->find() returns a command if the abbreviation is the correct case');
|
365
|
+
$this->assertInstanceOf('FooSameCaseUppercaseCommand', $application->find('f:BAR'), '->find() returns a command if the abbreviation is the correct case');
|
366
|
+
$this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('f:b'), '->find() returns a command if the abbreviation is the correct case');
|
367
|
+
$this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('f:bar'), '->find() returns a command if the abbreviation is the correct case');
|
368
|
+
}
|
369
|
+
|
370
|
+
public function testFindCaseInsensitiveAsFallback()
|
371
|
+
{
|
372
|
+
$application = new Application();
|
373
|
+
$application->add(new \FooSameCaseLowercaseCommand());
|
374
|
+
|
375
|
+
$this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('f:b'), '->find() returns a command if the abbreviation is the correct case');
|
376
|
+
$this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('f:B'), '->find() will fallback to case insensitivity');
|
377
|
+
$this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('FoO:BaR'), '->find() will fallback to case insensitivity');
|
378
|
+
}
|
379
|
+
|
380
|
+
public function testFindCaseInsensitiveSuggestions()
|
381
|
+
{
|
382
|
+
$this->expectException('Symfony\Component\Console\Exception\CommandNotFoundException');
|
383
|
+
$this->expectExceptionMessage('Command "FoO:BaR" is ambiguous');
|
384
|
+
$application = new Application();
|
385
|
+
$application->add(new \FooSameCaseLowercaseCommand());
|
386
|
+
$application->add(new \FooSameCaseUppercaseCommand());
|
387
|
+
|
388
|
+
$this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('FoO:BaR'), '->find() will find two suggestions with case insensitivity');
|
389
|
+
}
|
390
|
+
|
391
|
+
public function testFindWithCommandLoader()
|
392
|
+
{
|
393
|
+
$application = new Application();
|
394
|
+
$application->setCommandLoader(new FactoryCommandLoader([
|
395
|
+
'foo:bar' => $f = function () { return new \FooCommand(); },
|
396
|
+
]));
|
397
|
+
|
398
|
+
$this->assertInstanceOf('FooCommand', $application->find('foo:bar'), '->find() returns a command if its name exists');
|
399
|
+
$this->assertInstanceOf('Symfony\Component\Console\Command\HelpCommand', $application->find('h'), '->find() returns a command if its name exists');
|
400
|
+
$this->assertInstanceOf('FooCommand', $application->find('f:bar'), '->find() returns a command if the abbreviation for the namespace exists');
|
401
|
+
$this->assertInstanceOf('FooCommand', $application->find('f:b'), '->find() returns a command if the abbreviation for the namespace and the command name exist');
|
402
|
+
$this->assertInstanceOf('FooCommand', $application->find('a'), '->find() returns a command if the abbreviation exists for an alias');
|
403
|
+
}
|
404
|
+
|
405
|
+
/**
|
406
|
+
* @dataProvider provideAmbiguousAbbreviations
|
407
|
+
*/
|
408
|
+
public function testFindWithAmbiguousAbbreviations($abbreviation, $expectedExceptionMessage)
|
409
|
+
{
|
410
|
+
putenv('COLUMNS=120');
|
411
|
+
$this->expectException('Symfony\Component\Console\Exception\CommandNotFoundException');
|
412
|
+
$this->expectExceptionMessage($expectedExceptionMessage);
|
413
|
+
|
414
|
+
$application = new Application();
|
415
|
+
$application->add(new \FooCommand());
|
416
|
+
$application->add(new \Foo1Command());
|
417
|
+
$application->add(new \Foo2Command());
|
418
|
+
|
419
|
+
$application->find($abbreviation);
|
420
|
+
}
|
421
|
+
|
422
|
+
public function provideAmbiguousAbbreviations()
|
423
|
+
{
|
424
|
+
return [
|
425
|
+
['f', 'Command "f" is not defined.'],
|
426
|
+
[
|
427
|
+
'a',
|
428
|
+
"Command \"a\" is ambiguous.\nDid you mean one of these?\n".
|
429
|
+
" afoobar The foo:bar command\n".
|
430
|
+
" afoobar1 The foo:bar1 command\n".
|
431
|
+
' afoobar2 The foo1:bar command',
|
432
|
+
],
|
433
|
+
[
|
434
|
+
'foo:b',
|
435
|
+
"Command \"foo:b\" is ambiguous.\nDid you mean one of these?\n".
|
436
|
+
" foo:bar The foo:bar command\n".
|
437
|
+
" foo:bar1 The foo:bar1 command\n".
|
438
|
+
' foo1:bar The foo1:bar command',
|
439
|
+
],
|
440
|
+
];
|
441
|
+
}
|
442
|
+
|
443
|
+
public function testFindCommandEqualNamespace()
|
444
|
+
{
|
445
|
+
$application = new Application();
|
446
|
+
$application->add(new \Foo3Command());
|
447
|
+
$application->add(new \Foo4Command());
|
448
|
+
|
449
|
+
$this->assertInstanceOf('Foo3Command', $application->find('foo3:bar'), '->find() returns the good command even if a namespace has same name');
|
450
|
+
$this->assertInstanceOf('Foo4Command', $application->find('foo3:bar:toh'), '->find() returns a command even if its namespace equals another command name');
|
451
|
+
}
|
452
|
+
|
453
|
+
public function testFindCommandWithAmbiguousNamespacesButUniqueName()
|
454
|
+
{
|
455
|
+
$application = new Application();
|
456
|
+
$application->add(new \FooCommand());
|
457
|
+
$application->add(new \FoobarCommand());
|
458
|
+
|
459
|
+
$this->assertInstanceOf('FoobarCommand', $application->find('f:f'));
|
460
|
+
}
|
461
|
+
|
462
|
+
public function testFindCommandWithMissingNamespace()
|
463
|
+
{
|
464
|
+
$application = new Application();
|
465
|
+
$application->add(new \Foo4Command());
|
466
|
+
|
467
|
+
$this->assertInstanceOf('Foo4Command', $application->find('f::t'));
|
468
|
+
}
|
469
|
+
|
470
|
+
/**
|
471
|
+
* @dataProvider provideInvalidCommandNamesSingle
|
472
|
+
*/
|
473
|
+
public function testFindAlternativeExceptionMessageSingle($name)
|
474
|
+
{
|
475
|
+
$this->expectException('Symfony\Component\Console\Exception\CommandNotFoundException');
|
476
|
+
$this->expectExceptionMessage('Did you mean this');
|
477
|
+
$application = new Application();
|
478
|
+
$application->add(new \Foo3Command());
|
479
|
+
$application->find($name);
|
480
|
+
}
|
481
|
+
|
482
|
+
public function provideInvalidCommandNamesSingle()
|
483
|
+
{
|
484
|
+
return [
|
485
|
+
['foo3:barr'],
|
486
|
+
['fooo3:bar'],
|
487
|
+
];
|
488
|
+
}
|
489
|
+
|
490
|
+
public function testFindAlternativeExceptionMessageMultiple()
|
491
|
+
{
|
492
|
+
putenv('COLUMNS=120');
|
493
|
+
$application = new Application();
|
494
|
+
$application->add(new \FooCommand());
|
495
|
+
$application->add(new \Foo1Command());
|
496
|
+
$application->add(new \Foo2Command());
|
497
|
+
|
498
|
+
// Command + plural
|
499
|
+
try {
|
500
|
+
$application->find('foo:baR');
|
501
|
+
$this->fail('->find() throws a CommandNotFoundException if command does not exist, with alternatives');
|
502
|
+
} catch (\Exception $e) {
|
503
|
+
$this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if command does not exist, with alternatives');
|
504
|
+
$this->assertRegExp('/Did you mean one of these/', $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, with alternatives');
|
505
|
+
$this->assertRegExp('/foo1:bar/', $e->getMessage());
|
506
|
+
$this->assertRegExp('/foo:bar/', $e->getMessage());
|
507
|
+
}
|
508
|
+
|
509
|
+
// Namespace + plural
|
510
|
+
try {
|
511
|
+
$application->find('foo2:bar');
|
512
|
+
$this->fail('->find() throws a CommandNotFoundException if command does not exist, with alternatives');
|
513
|
+
} catch (\Exception $e) {
|
514
|
+
$this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if command does not exist, with alternatives');
|
515
|
+
$this->assertRegExp('/Did you mean one of these/', $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, with alternatives');
|
516
|
+
$this->assertRegExp('/foo1/', $e->getMessage());
|
517
|
+
}
|
518
|
+
|
519
|
+
$application->add(new \Foo3Command());
|
520
|
+
$application->add(new \Foo4Command());
|
521
|
+
|
522
|
+
// Subnamespace + plural
|
523
|
+
try {
|
524
|
+
$a = $application->find('foo3:');
|
525
|
+
$this->fail('->find() should throw an Symfony\Component\Console\Exception\CommandNotFoundException if a command is ambiguous because of a subnamespace, with alternatives');
|
526
|
+
} catch (\Exception $e) {
|
527
|
+
$this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e);
|
528
|
+
$this->assertRegExp('/foo3:bar/', $e->getMessage());
|
529
|
+
$this->assertRegExp('/foo3:bar:toh/', $e->getMessage());
|
530
|
+
}
|
531
|
+
}
|
532
|
+
|
533
|
+
public function testFindAlternativeCommands()
|
534
|
+
{
|
535
|
+
$application = new Application();
|
536
|
+
|
537
|
+
$application->add(new \FooCommand());
|
538
|
+
$application->add(new \Foo1Command());
|
539
|
+
$application->add(new \Foo2Command());
|
540
|
+
|
541
|
+
try {
|
542
|
+
$application->find($commandName = 'Unknown command');
|
543
|
+
$this->fail('->find() throws a CommandNotFoundException if command does not exist');
|
544
|
+
} catch (\Exception $e) {
|
545
|
+
$this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if command does not exist');
|
546
|
+
$this->assertSame([], $e->getAlternatives());
|
547
|
+
$this->assertEquals(sprintf('Command "%s" is not defined.', $commandName), $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, without alternatives');
|
548
|
+
}
|
549
|
+
|
550
|
+
// Test if "bar1" command throw a "CommandNotFoundException" and does not contain
|
551
|
+
// "foo:bar" as alternative because "bar1" is too far from "foo:bar"
|
552
|
+
try {
|
553
|
+
$application->find($commandName = 'bar1');
|
554
|
+
$this->fail('->find() throws a CommandNotFoundException if command does not exist');
|
555
|
+
} catch (\Exception $e) {
|
556
|
+
$this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if command does not exist');
|
557
|
+
$this->assertSame(['afoobar1', 'foo:bar1'], $e->getAlternatives());
|
558
|
+
$this->assertRegExp(sprintf('/Command "%s" is not defined./', $commandName), $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, with alternatives');
|
559
|
+
$this->assertRegExp('/afoobar1/', $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, with alternative : "afoobar1"');
|
560
|
+
$this->assertRegExp('/foo:bar1/', $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, with alternative : "foo:bar1"');
|
561
|
+
$this->assertNotRegExp('/foo:bar(?>!1)/', $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, without "foo:bar" alternative');
|
562
|
+
}
|
563
|
+
}
|
564
|
+
|
565
|
+
public function testFindAlternativeCommandsWithAnAlias()
|
566
|
+
{
|
567
|
+
$fooCommand = new \FooCommand();
|
568
|
+
$fooCommand->setAliases(['foo2']);
|
569
|
+
|
570
|
+
$application = new Application();
|
571
|
+
$application->add($fooCommand);
|
572
|
+
|
573
|
+
$result = $application->find('foo');
|
574
|
+
|
575
|
+
$this->assertSame($fooCommand, $result);
|
576
|
+
}
|
577
|
+
|
578
|
+
public function testFindAlternativeNamespace()
|
579
|
+
{
|
580
|
+
$application = new Application();
|
581
|
+
|
582
|
+
$application->add(new \FooCommand());
|
583
|
+
$application->add(new \Foo1Command());
|
584
|
+
$application->add(new \Foo2Command());
|
585
|
+
$application->add(new \Foo3Command());
|
586
|
+
|
587
|
+
try {
|
588
|
+
$application->find('Unknown-namespace:Unknown-command');
|
589
|
+
$this->fail('->find() throws a CommandNotFoundException if namespace does not exist');
|
590
|
+
} catch (\Exception $e) {
|
591
|
+
$this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if namespace does not exist');
|
592
|
+
$this->assertSame([], $e->getAlternatives());
|
593
|
+
$this->assertEquals('There are no commands defined in the "Unknown-namespace" namespace.', $e->getMessage(), '->find() throws a CommandNotFoundException if namespace does not exist, without alternatives');
|
594
|
+
}
|
595
|
+
|
596
|
+
try {
|
597
|
+
$application->find('foo2:command');
|
598
|
+
$this->fail('->find() throws a CommandNotFoundException if namespace does not exist');
|
599
|
+
} catch (\Exception $e) {
|
600
|
+
$this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if namespace does not exist');
|
601
|
+
$this->assertCount(3, $e->getAlternatives());
|
602
|
+
$this->assertContains('foo', $e->getAlternatives());
|
603
|
+
$this->assertContains('foo1', $e->getAlternatives());
|
604
|
+
$this->assertContains('foo3', $e->getAlternatives());
|
605
|
+
$this->assertRegExp('/There are no commands defined in the "foo2" namespace./', $e->getMessage(), '->find() throws a CommandNotFoundException if namespace does not exist, with alternative');
|
606
|
+
$this->assertRegExp('/foo/', $e->getMessage(), '->find() throws a CommandNotFoundException if namespace does not exist, with alternative : "foo"');
|
607
|
+
$this->assertRegExp('/foo1/', $e->getMessage(), '->find() throws a CommandNotFoundException if namespace does not exist, with alternative : "foo1"');
|
608
|
+
$this->assertRegExp('/foo3/', $e->getMessage(), '->find() throws a CommandNotFoundException if namespace does not exist, with alternative : "foo3"');
|
609
|
+
}
|
610
|
+
}
|
611
|
+
|
612
|
+
public function testFindAlternativesOutput()
|
613
|
+
{
|
614
|
+
$application = new Application();
|
615
|
+
|
616
|
+
$application->add(new \FooCommand());
|
617
|
+
$application->add(new \Foo1Command());
|
618
|
+
$application->add(new \Foo2Command());
|
619
|
+
$application->add(new \Foo3Command());
|
620
|
+
$application->add(new \FooHiddenCommand());
|
621
|
+
|
622
|
+
$expectedAlternatives = [
|
623
|
+
'afoobar',
|
624
|
+
'afoobar1',
|
625
|
+
'afoobar2',
|
626
|
+
'foo1:bar',
|
627
|
+
'foo3:bar',
|
628
|
+
'foo:bar',
|
629
|
+
'foo:bar1',
|
630
|
+
];
|
631
|
+
|
632
|
+
try {
|
633
|
+
$application->find('foo');
|
634
|
+
$this->fail('->find() throws a CommandNotFoundException if command is not defined');
|
635
|
+
} catch (\Exception $e) {
|
636
|
+
$this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if command is not defined');
|
637
|
+
$this->assertSame($expectedAlternatives, $e->getAlternatives());
|
638
|
+
|
639
|
+
$this->assertRegExp('/Command "foo" is not defined\..*Did you mean one of these\?.*/Ums', $e->getMessage());
|
640
|
+
}
|
641
|
+
}
|
642
|
+
|
643
|
+
public function testFindNamespaceDoesNotFailOnDeepSimilarNamespaces()
|
644
|
+
{
|
645
|
+
$application = $this->getMockBuilder('Symfony\Component\Console\Application')->setMethods(['getNamespaces'])->getMock();
|
646
|
+
$application->expects($this->once())
|
647
|
+
->method('getNamespaces')
|
648
|
+
->willReturn(['foo:sublong', 'bar:sub']);
|
649
|
+
|
650
|
+
$this->assertEquals('foo:sublong', $application->findNamespace('f:sub'));
|
651
|
+
}
|
652
|
+
|
653
|
+
public function testFindWithDoubleColonInNameThrowsException()
|
654
|
+
{
|
655
|
+
$this->expectException('Symfony\Component\Console\Exception\CommandNotFoundException');
|
656
|
+
$this->expectExceptionMessage('Command "foo::bar" is not defined.');
|
657
|
+
$application = new Application();
|
658
|
+
$application->add(new \FooCommand());
|
659
|
+
$application->add(new \Foo4Command());
|
660
|
+
$application->find('foo::bar');
|
661
|
+
}
|
662
|
+
|
663
|
+
public function testSetCatchExceptions()
|
664
|
+
{
|
665
|
+
$application = new Application();
|
666
|
+
$application->setAutoExit(false);
|
667
|
+
putenv('COLUMNS=120');
|
668
|
+
$tester = new ApplicationTester($application);
|
669
|
+
|
670
|
+
$application->setCatchExceptions(true);
|
671
|
+
$this->assertTrue($application->areExceptionsCaught());
|
672
|
+
|
673
|
+
$tester->run(['command' => 'foo'], ['decorated' => false]);
|
674
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception1.txt', $tester->getDisplay(true), '->setCatchExceptions() sets the catch exception flag');
|
675
|
+
|
676
|
+
$tester->run(['command' => 'foo'], ['decorated' => false, 'capture_stderr_separately' => true]);
|
677
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception1.txt', $tester->getErrorOutput(true), '->setCatchExceptions() sets the catch exception flag');
|
678
|
+
$this->assertSame('', $tester->getDisplay(true));
|
679
|
+
|
680
|
+
$application->setCatchExceptions(false);
|
681
|
+
try {
|
682
|
+
$tester->run(['command' => 'foo'], ['decorated' => false]);
|
683
|
+
$this->fail('->setCatchExceptions() sets the catch exception flag');
|
684
|
+
} catch (\Exception $e) {
|
685
|
+
$this->assertInstanceOf('\Exception', $e, '->setCatchExceptions() sets the catch exception flag');
|
686
|
+
$this->assertEquals('Command "foo" is not defined.', $e->getMessage(), '->setCatchExceptions() sets the catch exception flag');
|
687
|
+
}
|
688
|
+
}
|
689
|
+
|
690
|
+
public function testAutoExitSetting()
|
691
|
+
{
|
692
|
+
$application = new Application();
|
693
|
+
$this->assertTrue($application->isAutoExitEnabled());
|
694
|
+
|
695
|
+
$application->setAutoExit(false);
|
696
|
+
$this->assertFalse($application->isAutoExitEnabled());
|
697
|
+
}
|
698
|
+
|
699
|
+
public function testRenderException()
|
700
|
+
{
|
701
|
+
$application = new Application();
|
702
|
+
$application->setAutoExit(false);
|
703
|
+
putenv('COLUMNS=120');
|
704
|
+
$tester = new ApplicationTester($application);
|
705
|
+
|
706
|
+
$tester->run(['command' => 'foo'], ['decorated' => false, 'capture_stderr_separately' => true]);
|
707
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception1.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exception');
|
708
|
+
|
709
|
+
$tester->run(['command' => 'foo'], ['decorated' => false, 'verbosity' => Output::VERBOSITY_VERBOSE, 'capture_stderr_separately' => true]);
|
710
|
+
$this->assertStringContainsString('Exception trace', $tester->getErrorOutput(), '->renderException() renders a pretty exception with a stack trace when verbosity is verbose');
|
711
|
+
|
712
|
+
$tester->run(['command' => 'list', '--foo' => true], ['decorated' => false, 'capture_stderr_separately' => true]);
|
713
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception2.txt', $tester->getErrorOutput(true), '->renderException() renders the command synopsis when an exception occurs in the context of a command');
|
714
|
+
|
715
|
+
$application->add(new \Foo3Command());
|
716
|
+
$tester = new ApplicationTester($application);
|
717
|
+
$tester->run(['command' => 'foo3:bar'], ['decorated' => false, 'capture_stderr_separately' => true]);
|
718
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception3.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
|
719
|
+
|
720
|
+
$tester->run(['command' => 'foo3:bar'], ['decorated' => false, 'verbosity' => Output::VERBOSITY_VERBOSE]);
|
721
|
+
$this->assertRegExp('/\[Exception\]\s*First exception/', $tester->getDisplay(), '->renderException() renders a pretty exception without code exception when code exception is default and verbosity is verbose');
|
722
|
+
$this->assertRegExp('/\[Exception\]\s*Second exception/', $tester->getDisplay(), '->renderException() renders a pretty exception without code exception when code exception is 0 and verbosity is verbose');
|
723
|
+
$this->assertRegExp('/\[Exception \(404\)\]\s*Third exception/', $tester->getDisplay(), '->renderException() renders a pretty exception with code exception when code exception is 404 and verbosity is verbose');
|
724
|
+
|
725
|
+
$tester->run(['command' => 'foo3:bar'], ['decorated' => true]);
|
726
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception3decorated.txt', $tester->getDisplay(true), '->renderException() renders a pretty exceptions with previous exceptions');
|
727
|
+
|
728
|
+
$tester->run(['command' => 'foo3:bar'], ['decorated' => true, 'capture_stderr_separately' => true]);
|
729
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception3decorated.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
|
730
|
+
|
731
|
+
$application = new Application();
|
732
|
+
$application->setAutoExit(false);
|
733
|
+
putenv('COLUMNS=32');
|
734
|
+
$tester = new ApplicationTester($application);
|
735
|
+
|
736
|
+
$tester->run(['command' => 'foo'], ['decorated' => false, 'capture_stderr_separately' => true]);
|
737
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception4.txt', $tester->getErrorOutput(true), '->renderException() wraps messages when they are bigger than the terminal');
|
738
|
+
putenv('COLUMNS=120');
|
739
|
+
}
|
740
|
+
|
741
|
+
public function testRenderExceptionWithDoubleWidthCharacters()
|
742
|
+
{
|
743
|
+
$application = new Application();
|
744
|
+
$application->setAutoExit(false);
|
745
|
+
putenv('COLUMNS=120');
|
746
|
+
$application->register('foo')->setCode(function () {
|
747
|
+
throw new \Exception('エラーメッセージ');
|
748
|
+
});
|
749
|
+
$tester = new ApplicationTester($application);
|
750
|
+
|
751
|
+
$tester->run(['command' => 'foo'], ['decorated' => false, 'capture_stderr_separately' => true]);
|
752
|
+
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_doublewidth1.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
|
753
|
+
|
754
|
+
$tester->run(['command' => 'foo'], ['decorated' => true, 'capture_stderr_separately' => true]);
|
755
|
+
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_doublewidth1decorated.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
|
756
|
+
|
757
|
+
$application = new Application();
|
758
|
+
$application->setAutoExit(false);
|
759
|
+
putenv('COLUMNS=32');
|
760
|
+
$application->register('foo')->setCode(function () {
|
761
|
+
throw new \Exception('コマンドの実行中にエラーが発生しました。');
|
762
|
+
});
|
763
|
+
$tester = new ApplicationTester($application);
|
764
|
+
$tester->run(['command' => 'foo'], ['decorated' => false, 'capture_stderr_separately' => true]);
|
765
|
+
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_doublewidth2.txt', $tester->getErrorOutput(true), '->renderException() wraps messages when they are bigger than the terminal');
|
766
|
+
putenv('COLUMNS=120');
|
767
|
+
}
|
768
|
+
|
769
|
+
public function testRenderExceptionEscapesLines()
|
770
|
+
{
|
771
|
+
$application = new Application();
|
772
|
+
$application->setAutoExit(false);
|
773
|
+
putenv('COLUMNS=22');
|
774
|
+
$application->register('foo')->setCode(function () {
|
775
|
+
throw new \Exception('dont break here <info>!</info>');
|
776
|
+
});
|
777
|
+
$tester = new ApplicationTester($application);
|
778
|
+
|
779
|
+
$tester->run(['command' => 'foo'], ['decorated' => false]);
|
780
|
+
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_escapeslines.txt', $tester->getDisplay(true), '->renderException() escapes lines containing formatting');
|
781
|
+
putenv('COLUMNS=120');
|
782
|
+
}
|
783
|
+
|
784
|
+
public function testRenderExceptionLineBreaks()
|
785
|
+
{
|
786
|
+
$application = $this->getMockBuilder('Symfony\Component\Console\Application')->setMethods(['getTerminalWidth'])->getMock();
|
787
|
+
$application->setAutoExit(false);
|
788
|
+
$application->expects($this->any())
|
789
|
+
->method('getTerminalWidth')
|
790
|
+
->willReturn(120);
|
791
|
+
$application->register('foo')->setCode(function () {
|
792
|
+
throw new \InvalidArgumentException("\n\nline 1 with extra spaces \nline 2\n\nline 4\n");
|
793
|
+
});
|
794
|
+
$tester = new ApplicationTester($application);
|
795
|
+
|
796
|
+
$tester->run(['command' => 'foo'], ['decorated' => false]);
|
797
|
+
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_linebreaks.txt', $tester->getDisplay(true), '->renderException() keep multiple line breaks');
|
798
|
+
}
|
799
|
+
|
800
|
+
public function testRenderExceptionStackTraceContainsRootException()
|
801
|
+
{
|
802
|
+
$application = new Application();
|
803
|
+
$application->setAutoExit(false);
|
804
|
+
$application->register('foo')->setCode(function () {
|
805
|
+
throw new \Exception('Verbose exception');
|
806
|
+
});
|
807
|
+
|
808
|
+
$tester = new ApplicationTester($application);
|
809
|
+
$tester->run(['command' => 'foo'], ['decorated' => false, 'verbosity' => Output::VERBOSITY_VERBOSE]);
|
810
|
+
|
811
|
+
$this->assertStringContainsString(sprintf('() at %s:', __FILE__), $tester->getDisplay());
|
812
|
+
}
|
813
|
+
|
814
|
+
public function testRun()
|
815
|
+
{
|
816
|
+
$application = new Application();
|
817
|
+
$application->setAutoExit(false);
|
818
|
+
$application->setCatchExceptions(false);
|
819
|
+
$application->add($command = new \Foo1Command());
|
820
|
+
$_SERVER['argv'] = ['cli.php', 'foo:bar1'];
|
821
|
+
|
822
|
+
ob_start();
|
823
|
+
$application->run();
|
824
|
+
ob_end_clean();
|
825
|
+
|
826
|
+
$this->assertInstanceOf('Symfony\Component\Console\Input\ArgvInput', $command->input, '->run() creates an ArgvInput by default if none is given');
|
827
|
+
$this->assertInstanceOf('Symfony\Component\Console\Output\ConsoleOutput', $command->output, '->run() creates a ConsoleOutput by default if none is given');
|
828
|
+
|
829
|
+
$application = new Application();
|
830
|
+
$application->setAutoExit(false);
|
831
|
+
$application->setCatchExceptions(false);
|
832
|
+
|
833
|
+
$this->ensureStaticCommandHelp($application);
|
834
|
+
$tester = new ApplicationTester($application);
|
835
|
+
|
836
|
+
$tester->run([], ['decorated' => false]);
|
837
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_run1.txt', $tester->getDisplay(true), '->run() runs the list command if no argument is passed');
|
838
|
+
|
839
|
+
$tester->run(['--help' => true], ['decorated' => false]);
|
840
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_run2.txt', $tester->getDisplay(true), '->run() runs the help command if --help is passed');
|
841
|
+
|
842
|
+
$tester->run(['-h' => true], ['decorated' => false]);
|
843
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_run2.txt', $tester->getDisplay(true), '->run() runs the help command if -h is passed');
|
844
|
+
|
845
|
+
$tester->run(['command' => 'list', '--help' => true], ['decorated' => false]);
|
846
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_run3.txt', $tester->getDisplay(true), '->run() displays the help if --help is passed');
|
847
|
+
|
848
|
+
$tester->run(['command' => 'list', '-h' => true], ['decorated' => false]);
|
849
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_run3.txt', $tester->getDisplay(true), '->run() displays the help if -h is passed');
|
850
|
+
|
851
|
+
$tester->run(['--ansi' => true]);
|
852
|
+
$this->assertTrue($tester->getOutput()->isDecorated(), '->run() forces color output if --ansi is passed');
|
853
|
+
|
854
|
+
$tester->run(['--no-ansi' => true]);
|
855
|
+
$this->assertFalse($tester->getOutput()->isDecorated(), '->run() forces color output to be disabled if --no-ansi is passed');
|
856
|
+
|
857
|
+
$tester->run(['--version' => true], ['decorated' => false]);
|
858
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_run4.txt', $tester->getDisplay(true), '->run() displays the program version if --version is passed');
|
859
|
+
|
860
|
+
$tester->run(['-V' => true], ['decorated' => false]);
|
861
|
+
$this->assertStringEqualsFile(self::$fixturesPath.'/application_run4.txt', $tester->getDisplay(true), '->run() displays the program version if -v is passed');
|
862
|
+
|
863
|
+
$tester->run(['command' => 'list', '--quiet' => true]);
|
864
|
+
$this->assertSame('', $tester->getDisplay(), '->run() removes all output if --quiet is passed');
|
865
|
+
$this->assertFalse($tester->getInput()->isInteractive(), '->run() sets off the interactive mode if --quiet is passed');
|
866
|
+
|
867
|
+
$tester->run(['command' => 'list', '-q' => true]);
|
868
|
+
$this->assertSame('', $tester->getDisplay(), '->run() removes all output if -q is passed');
|
869
|
+
$this->assertFalse($tester->getInput()->isInteractive(), '->run() sets off the interactive mode if -q is passed');
|
870
|
+
|
871
|
+
$tester->run(['command' => 'list', '--verbose' => true]);
|
872
|
+
$this->assertSame(Output::VERBOSITY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if --verbose is passed');
|
873
|
+
|
874
|
+
$tester->run(['command' => 'list', '--verbose' => 1]);
|
875
|
+
$this->assertSame(Output::VERBOSITY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if --verbose=1 is passed');
|
876
|
+
|
877
|
+
$tester->run(['command' => 'list', '--verbose' => 2]);
|
878
|
+
$this->assertSame(Output::VERBOSITY_VERY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to very verbose if --verbose=2 is passed');
|
879
|
+
|
880
|
+
$tester->run(['command' => 'list', '--verbose' => 3]);
|
881
|
+
$this->assertSame(Output::VERBOSITY_DEBUG, $tester->getOutput()->getVerbosity(), '->run() sets the output to debug if --verbose=3 is passed');
|
882
|
+
|
883
|
+
$tester->run(['command' => 'list', '--verbose' => 4]);
|
884
|
+
$this->assertSame(Output::VERBOSITY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if unknown --verbose level is passed');
|
885
|
+
|
886
|
+
$tester->run(['command' => 'list', '-v' => true]);
|
887
|
+
$this->assertSame(Output::VERBOSITY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if -v is passed');
|
888
|
+
|
889
|
+
$tester->run(['command' => 'list', '-vv' => true]);
|
890
|
+
$this->assertSame(Output::VERBOSITY_VERY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if -v is passed');
|
891
|
+
|
892
|
+
$tester->run(['command' => 'list', '-vvv' => true]);
|
893
|
+
$this->assertSame(Output::VERBOSITY_DEBUG, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if -v is passed');
|
894
|
+
|
895
|
+
$application = new Application();
|
896
|
+
$application->setAutoExit(false);
|
897
|
+
$application->setCatchExceptions(false);
|
898
|
+
$application->add(new \FooCommand());
|
899
|
+
$tester = new ApplicationTester($application);
|
900
|
+
|
901
|
+
$tester->run(['command' => 'foo:bar', '--no-interaction' => true], ['decorated' => false]);
|
902
|
+
$this->assertSame('called'.PHP_EOL, $tester->getDisplay(), '->run() does not call interact() if --no-interaction is passed');
|
903
|
+
|
904
|
+
$tester->run(['command' => 'foo:bar', '-n' => true], ['decorated' => false]);
|
905
|
+
$this->assertSame('called'.PHP_EOL, $tester->getDisplay(), '->run() does not call interact() if -n is passed');
|
906
|
+
}
|
907
|
+
|
908
|
+
public function testRunWithGlobalOptionAndNoCommand()
|
909
|
+
{
|
910
|
+
$application = new Application();
|
911
|
+
$application->setAutoExit(false);
|
912
|
+
$application->setCatchExceptions(false);
|
913
|
+
$application->getDefinition()->addOption(new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL));
|
914
|
+
|
915
|
+
$output = new StreamOutput(fopen('php://memory', 'w', false));
|
916
|
+
$input = new ArgvInput(['cli.php', '--foo', 'bar']);
|
917
|
+
|
918
|
+
$this->assertSame(0, $application->run($input, $output));
|
919
|
+
}
|
920
|
+
|
921
|
+
/**
|
922
|
+
* Issue #9285.
|
923
|
+
*
|
924
|
+
* If the "verbose" option is just before an argument in ArgvInput,
|
925
|
+
* an argument value should not be treated as verbosity value.
|
926
|
+
* This test will fail with "Not enough arguments." if broken
|
927
|
+
*/
|
928
|
+
public function testVerboseValueNotBreakArguments()
|
929
|
+
{
|
930
|
+
$application = new Application();
|
931
|
+
$application->setAutoExit(false);
|
932
|
+
$application->setCatchExceptions(false);
|
933
|
+
$application->add(new \FooCommand());
|
934
|
+
|
935
|
+
$output = new StreamOutput(fopen('php://memory', 'w', false));
|
936
|
+
|
937
|
+
$input = new ArgvInput(['cli.php', '-v', 'foo:bar']);
|
938
|
+
$application->run($input, $output);
|
939
|
+
|
940
|
+
$this->addToAssertionCount(1);
|
941
|
+
|
942
|
+
$input = new ArgvInput(['cli.php', '--verbose', 'foo:bar']);
|
943
|
+
$application->run($input, $output);
|
944
|
+
|
945
|
+
$this->addToAssertionCount(1);
|
946
|
+
}
|
947
|
+
|
948
|
+
public function testRunReturnsIntegerExitCode()
|
949
|
+
{
|
950
|
+
$exception = new \Exception('', 4);
|
951
|
+
|
952
|
+
$application = $this->getMockBuilder('Symfony\Component\Console\Application')->setMethods(['doRun'])->getMock();
|
953
|
+
$application->setAutoExit(false);
|
954
|
+
$application->expects($this->once())
|
955
|
+
->method('doRun')
|
956
|
+
->willThrowException($exception);
|
957
|
+
|
958
|
+
$exitCode = $application->run(new ArrayInput([]), new NullOutput());
|
959
|
+
|
960
|
+
$this->assertSame(4, $exitCode, '->run() returns integer exit code extracted from raised exception');
|
961
|
+
}
|
962
|
+
|
963
|
+
public function testRunDispatchesIntegerExitCode()
|
964
|
+
{
|
965
|
+
$passedRightValue = false;
|
966
|
+
|
967
|
+
// We can assume here that some other test asserts that the event is dispatched at all
|
968
|
+
$dispatcher = new EventDispatcher();
|
969
|
+
$dispatcher->addListener('console.terminate', function (ConsoleTerminateEvent $event) use (&$passedRightValue) {
|
970
|
+
$passedRightValue = (4 === $event->getExitCode());
|
971
|
+
});
|
972
|
+
|
973
|
+
$application = new Application();
|
974
|
+
$application->setDispatcher($dispatcher);
|
975
|
+
$application->setAutoExit(false);
|
976
|
+
|
977
|
+
$application->register('test')->setCode(function (InputInterface $input, OutputInterface $output) {
|
978
|
+
throw new \Exception('', 4);
|
979
|
+
});
|
980
|
+
|
981
|
+
$tester = new ApplicationTester($application);
|
982
|
+
$tester->run(['command' => 'test']);
|
983
|
+
|
984
|
+
$this->assertTrue($passedRightValue, '-> exit code 4 was passed in the console.terminate event');
|
985
|
+
}
|
986
|
+
|
987
|
+
public function testRunReturnsExitCodeOneForExceptionCodeZero()
|
988
|
+
{
|
989
|
+
$exception = new \Exception('', 0);
|
990
|
+
|
991
|
+
$application = $this->getMockBuilder('Symfony\Component\Console\Application')->setMethods(['doRun'])->getMock();
|
992
|
+
$application->setAutoExit(false);
|
993
|
+
$application->expects($this->once())
|
994
|
+
->method('doRun')
|
995
|
+
->willThrowException($exception);
|
996
|
+
|
997
|
+
$exitCode = $application->run(new ArrayInput([]), new NullOutput());
|
998
|
+
|
999
|
+
$this->assertSame(1, $exitCode, '->run() returns exit code 1 when exception code is 0');
|
1000
|
+
}
|
1001
|
+
|
1002
|
+
public function testRunDispatchesExitCodeOneForExceptionCodeZero()
|
1003
|
+
{
|
1004
|
+
$passedRightValue = false;
|
1005
|
+
|
1006
|
+
// We can assume here that some other test asserts that the event is dispatched at all
|
1007
|
+
$dispatcher = new EventDispatcher();
|
1008
|
+
$dispatcher->addListener('console.terminate', function (ConsoleTerminateEvent $event) use (&$passedRightValue) {
|
1009
|
+
$passedRightValue = (1 === $event->getExitCode());
|
1010
|
+
});
|
1011
|
+
|
1012
|
+
$application = new Application();
|
1013
|
+
$application->setDispatcher($dispatcher);
|
1014
|
+
$application->setAutoExit(false);
|
1015
|
+
|
1016
|
+
$application->register('test')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1017
|
+
throw new \Exception();
|
1018
|
+
});
|
1019
|
+
|
1020
|
+
$tester = new ApplicationTester($application);
|
1021
|
+
$tester->run(['command' => 'test']);
|
1022
|
+
|
1023
|
+
$this->assertTrue($passedRightValue, '-> exit code 1 was passed in the console.terminate event');
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
public function testAddingOptionWithDuplicateShortcut()
|
1027
|
+
{
|
1028
|
+
$this->expectException('LogicException');
|
1029
|
+
$this->expectExceptionMessage('An option with shortcut "e" already exists.');
|
1030
|
+
$dispatcher = new EventDispatcher();
|
1031
|
+
$application = new Application();
|
1032
|
+
$application->setAutoExit(false);
|
1033
|
+
$application->setCatchExceptions(false);
|
1034
|
+
$application->setDispatcher($dispatcher);
|
1035
|
+
|
1036
|
+
$application->getDefinition()->addOption(new InputOption('--env', '-e', InputOption::VALUE_REQUIRED, 'Environment'));
|
1037
|
+
|
1038
|
+
$application
|
1039
|
+
->register('foo')
|
1040
|
+
->setAliases(['f'])
|
1041
|
+
->setDefinition([new InputOption('survey', 'e', InputOption::VALUE_REQUIRED, 'My option with a shortcut.')])
|
1042
|
+
->setCode(function (InputInterface $input, OutputInterface $output) {})
|
1043
|
+
;
|
1044
|
+
|
1045
|
+
$input = new ArrayInput(['command' => 'foo']);
|
1046
|
+
$output = new NullOutput();
|
1047
|
+
|
1048
|
+
$application->run($input, $output);
|
1049
|
+
}
|
1050
|
+
|
1051
|
+
/**
|
1052
|
+
* @dataProvider getAddingAlreadySetDefinitionElementData
|
1053
|
+
*/
|
1054
|
+
public function testAddingAlreadySetDefinitionElementData($def)
|
1055
|
+
{
|
1056
|
+
$this->expectException('LogicException');
|
1057
|
+
$application = new Application();
|
1058
|
+
$application->setAutoExit(false);
|
1059
|
+
$application->setCatchExceptions(false);
|
1060
|
+
$application
|
1061
|
+
->register('foo')
|
1062
|
+
->setDefinition([$def])
|
1063
|
+
->setCode(function (InputInterface $input, OutputInterface $output) {})
|
1064
|
+
;
|
1065
|
+
|
1066
|
+
$input = new ArrayInput(['command' => 'foo']);
|
1067
|
+
$output = new NullOutput();
|
1068
|
+
$application->run($input, $output);
|
1069
|
+
}
|
1070
|
+
|
1071
|
+
public function getAddingAlreadySetDefinitionElementData()
|
1072
|
+
{
|
1073
|
+
return [
|
1074
|
+
[new InputArgument('command', InputArgument::REQUIRED)],
|
1075
|
+
[new InputOption('quiet', '', InputOption::VALUE_NONE)],
|
1076
|
+
[new InputOption('query', 'q', InputOption::VALUE_NONE)],
|
1077
|
+
];
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
public function testGetDefaultHelperSetReturnsDefaultValues()
|
1081
|
+
{
|
1082
|
+
$application = new Application();
|
1083
|
+
$application->setAutoExit(false);
|
1084
|
+
$application->setCatchExceptions(false);
|
1085
|
+
|
1086
|
+
$helperSet = $application->getHelperSet();
|
1087
|
+
|
1088
|
+
$this->assertTrue($helperSet->has('formatter'));
|
1089
|
+
}
|
1090
|
+
|
1091
|
+
public function testAddingSingleHelperSetOverwritesDefaultValues()
|
1092
|
+
{
|
1093
|
+
$application = new Application();
|
1094
|
+
$application->setAutoExit(false);
|
1095
|
+
$application->setCatchExceptions(false);
|
1096
|
+
|
1097
|
+
$application->setHelperSet(new HelperSet([new FormatterHelper()]));
|
1098
|
+
|
1099
|
+
$helperSet = $application->getHelperSet();
|
1100
|
+
|
1101
|
+
$this->assertTrue($helperSet->has('formatter'));
|
1102
|
+
|
1103
|
+
// no other default helper set should be returned
|
1104
|
+
$this->assertFalse($helperSet->has('dialog'));
|
1105
|
+
$this->assertFalse($helperSet->has('progress'));
|
1106
|
+
}
|
1107
|
+
|
1108
|
+
public function testOverwritingDefaultHelperSetOverwritesDefaultValues()
|
1109
|
+
{
|
1110
|
+
$application = new CustomApplication();
|
1111
|
+
$application->setAutoExit(false);
|
1112
|
+
$application->setCatchExceptions(false);
|
1113
|
+
|
1114
|
+
$application->setHelperSet(new HelperSet([new FormatterHelper()]));
|
1115
|
+
|
1116
|
+
$helperSet = $application->getHelperSet();
|
1117
|
+
|
1118
|
+
$this->assertTrue($helperSet->has('formatter'));
|
1119
|
+
|
1120
|
+
// no other default helper set should be returned
|
1121
|
+
$this->assertFalse($helperSet->has('dialog'));
|
1122
|
+
$this->assertFalse($helperSet->has('progress'));
|
1123
|
+
}
|
1124
|
+
|
1125
|
+
public function testGetDefaultInputDefinitionReturnsDefaultValues()
|
1126
|
+
{
|
1127
|
+
$application = new Application();
|
1128
|
+
$application->setAutoExit(false);
|
1129
|
+
$application->setCatchExceptions(false);
|
1130
|
+
|
1131
|
+
$inputDefinition = $application->getDefinition();
|
1132
|
+
|
1133
|
+
$this->assertTrue($inputDefinition->hasArgument('command'));
|
1134
|
+
|
1135
|
+
$this->assertTrue($inputDefinition->hasOption('help'));
|
1136
|
+
$this->assertTrue($inputDefinition->hasOption('quiet'));
|
1137
|
+
$this->assertTrue($inputDefinition->hasOption('verbose'));
|
1138
|
+
$this->assertTrue($inputDefinition->hasOption('version'));
|
1139
|
+
$this->assertTrue($inputDefinition->hasOption('ansi'));
|
1140
|
+
$this->assertTrue($inputDefinition->hasOption('no-ansi'));
|
1141
|
+
$this->assertTrue($inputDefinition->hasOption('no-interaction'));
|
1142
|
+
}
|
1143
|
+
|
1144
|
+
public function testOverwritingDefaultInputDefinitionOverwritesDefaultValues()
|
1145
|
+
{
|
1146
|
+
$application = new CustomApplication();
|
1147
|
+
$application->setAutoExit(false);
|
1148
|
+
$application->setCatchExceptions(false);
|
1149
|
+
|
1150
|
+
$inputDefinition = $application->getDefinition();
|
1151
|
+
|
1152
|
+
// check whether the default arguments and options are not returned any more
|
1153
|
+
$this->assertFalse($inputDefinition->hasArgument('command'));
|
1154
|
+
|
1155
|
+
$this->assertFalse($inputDefinition->hasOption('help'));
|
1156
|
+
$this->assertFalse($inputDefinition->hasOption('quiet'));
|
1157
|
+
$this->assertFalse($inputDefinition->hasOption('verbose'));
|
1158
|
+
$this->assertFalse($inputDefinition->hasOption('version'));
|
1159
|
+
$this->assertFalse($inputDefinition->hasOption('ansi'));
|
1160
|
+
$this->assertFalse($inputDefinition->hasOption('no-ansi'));
|
1161
|
+
$this->assertFalse($inputDefinition->hasOption('no-interaction'));
|
1162
|
+
|
1163
|
+
$this->assertTrue($inputDefinition->hasOption('custom'));
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
public function testSettingCustomInputDefinitionOverwritesDefaultValues()
|
1167
|
+
{
|
1168
|
+
$application = new Application();
|
1169
|
+
$application->setAutoExit(false);
|
1170
|
+
$application->setCatchExceptions(false);
|
1171
|
+
|
1172
|
+
$application->setDefinition(new InputDefinition([new InputOption('--custom', '-c', InputOption::VALUE_NONE, 'Set the custom input definition.')]));
|
1173
|
+
|
1174
|
+
$inputDefinition = $application->getDefinition();
|
1175
|
+
|
1176
|
+
// check whether the default arguments and options are not returned any more
|
1177
|
+
$this->assertFalse($inputDefinition->hasArgument('command'));
|
1178
|
+
|
1179
|
+
$this->assertFalse($inputDefinition->hasOption('help'));
|
1180
|
+
$this->assertFalse($inputDefinition->hasOption('quiet'));
|
1181
|
+
$this->assertFalse($inputDefinition->hasOption('verbose'));
|
1182
|
+
$this->assertFalse($inputDefinition->hasOption('version'));
|
1183
|
+
$this->assertFalse($inputDefinition->hasOption('ansi'));
|
1184
|
+
$this->assertFalse($inputDefinition->hasOption('no-ansi'));
|
1185
|
+
$this->assertFalse($inputDefinition->hasOption('no-interaction'));
|
1186
|
+
|
1187
|
+
$this->assertTrue($inputDefinition->hasOption('custom'));
|
1188
|
+
}
|
1189
|
+
|
1190
|
+
public function testRunWithDispatcher()
|
1191
|
+
{
|
1192
|
+
$application = new Application();
|
1193
|
+
$application->setAutoExit(false);
|
1194
|
+
$application->setDispatcher($this->getDispatcher());
|
1195
|
+
|
1196
|
+
$application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1197
|
+
$output->write('foo.');
|
1198
|
+
});
|
1199
|
+
|
1200
|
+
$tester = new ApplicationTester($application);
|
1201
|
+
$tester->run(['command' => 'foo']);
|
1202
|
+
$this->assertEquals('before.foo.after.'.PHP_EOL, $tester->getDisplay());
|
1203
|
+
}
|
1204
|
+
|
1205
|
+
public function testRunWithExceptionAndDispatcher()
|
1206
|
+
{
|
1207
|
+
$this->expectException('LogicException');
|
1208
|
+
$this->expectExceptionMessage('error');
|
1209
|
+
$application = new Application();
|
1210
|
+
$application->setDispatcher($this->getDispatcher());
|
1211
|
+
$application->setAutoExit(false);
|
1212
|
+
$application->setCatchExceptions(false);
|
1213
|
+
|
1214
|
+
$application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1215
|
+
throw new \RuntimeException('foo');
|
1216
|
+
});
|
1217
|
+
|
1218
|
+
$tester = new ApplicationTester($application);
|
1219
|
+
$tester->run(['command' => 'foo']);
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
public function testRunDispatchesAllEventsWithException()
|
1223
|
+
{
|
1224
|
+
$application = new Application();
|
1225
|
+
$application->setDispatcher($this->getDispatcher());
|
1226
|
+
$application->setAutoExit(false);
|
1227
|
+
|
1228
|
+
$application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1229
|
+
$output->write('foo.');
|
1230
|
+
|
1231
|
+
throw new \RuntimeException('foo');
|
1232
|
+
});
|
1233
|
+
|
1234
|
+
$tester = new ApplicationTester($application);
|
1235
|
+
$tester->run(['command' => 'foo']);
|
1236
|
+
$this->assertStringContainsString('before.foo.error.after.', $tester->getDisplay());
|
1237
|
+
}
|
1238
|
+
|
1239
|
+
public function testRunDispatchesAllEventsWithExceptionInListener()
|
1240
|
+
{
|
1241
|
+
$dispatcher = $this->getDispatcher();
|
1242
|
+
$dispatcher->addListener('console.command', function () {
|
1243
|
+
throw new \RuntimeException('foo');
|
1244
|
+
});
|
1245
|
+
|
1246
|
+
$application = new Application();
|
1247
|
+
$application->setDispatcher($dispatcher);
|
1248
|
+
$application->setAutoExit(false);
|
1249
|
+
|
1250
|
+
$application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1251
|
+
$output->write('foo.');
|
1252
|
+
});
|
1253
|
+
|
1254
|
+
$tester = new ApplicationTester($application);
|
1255
|
+
$tester->run(['command' => 'foo']);
|
1256
|
+
$this->assertStringContainsString('before.error.after.', $tester->getDisplay());
|
1257
|
+
}
|
1258
|
+
|
1259
|
+
/**
|
1260
|
+
* @requires PHP 7
|
1261
|
+
*/
|
1262
|
+
public function testRunWithError()
|
1263
|
+
{
|
1264
|
+
$application = new Application();
|
1265
|
+
$application->setAutoExit(false);
|
1266
|
+
$application->setCatchExceptions(false);
|
1267
|
+
|
1268
|
+
$application->register('dym')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1269
|
+
$output->write('dym.');
|
1270
|
+
|
1271
|
+
throw new \Error('dymerr');
|
1272
|
+
});
|
1273
|
+
|
1274
|
+
$tester = new ApplicationTester($application);
|
1275
|
+
|
1276
|
+
try {
|
1277
|
+
$tester->run(['command' => 'dym']);
|
1278
|
+
$this->fail('Error expected.');
|
1279
|
+
} catch (\Error $e) {
|
1280
|
+
$this->assertSame('dymerr', $e->getMessage());
|
1281
|
+
}
|
1282
|
+
}
|
1283
|
+
|
1284
|
+
public function testRunAllowsErrorListenersToSilenceTheException()
|
1285
|
+
{
|
1286
|
+
$dispatcher = $this->getDispatcher();
|
1287
|
+
$dispatcher->addListener('console.error', function (ConsoleErrorEvent $event) {
|
1288
|
+
$event->getOutput()->write('silenced.');
|
1289
|
+
|
1290
|
+
$event->setExitCode(0);
|
1291
|
+
});
|
1292
|
+
|
1293
|
+
$dispatcher->addListener('console.command', function () {
|
1294
|
+
throw new \RuntimeException('foo');
|
1295
|
+
});
|
1296
|
+
|
1297
|
+
$application = new Application();
|
1298
|
+
$application->setDispatcher($dispatcher);
|
1299
|
+
$application->setAutoExit(false);
|
1300
|
+
|
1301
|
+
$application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1302
|
+
$output->write('foo.');
|
1303
|
+
});
|
1304
|
+
|
1305
|
+
$tester = new ApplicationTester($application);
|
1306
|
+
$tester->run(['command' => 'foo']);
|
1307
|
+
$this->assertStringContainsString('before.error.silenced.after.', $tester->getDisplay());
|
1308
|
+
$this->assertEquals(ConsoleCommandEvent::RETURN_CODE_DISABLED, $tester->getStatusCode());
|
1309
|
+
}
|
1310
|
+
|
1311
|
+
public function testConsoleErrorEventIsTriggeredOnCommandNotFound()
|
1312
|
+
{
|
1313
|
+
$dispatcher = new EventDispatcher();
|
1314
|
+
$dispatcher->addListener('console.error', function (ConsoleErrorEvent $event) {
|
1315
|
+
$this->assertNull($event->getCommand());
|
1316
|
+
$this->assertInstanceOf(CommandNotFoundException::class, $event->getError());
|
1317
|
+
$event->getOutput()->write('silenced command not found');
|
1318
|
+
});
|
1319
|
+
|
1320
|
+
$application = new Application();
|
1321
|
+
$application->setDispatcher($dispatcher);
|
1322
|
+
$application->setAutoExit(false);
|
1323
|
+
|
1324
|
+
$tester = new ApplicationTester($application);
|
1325
|
+
$tester->run(['command' => 'unknown']);
|
1326
|
+
$this->assertStringContainsString('silenced command not found', $tester->getDisplay());
|
1327
|
+
$this->assertEquals(1, $tester->getStatusCode());
|
1328
|
+
}
|
1329
|
+
|
1330
|
+
/**
|
1331
|
+
* @group legacy
|
1332
|
+
* @expectedDeprecation The "ConsoleEvents::EXCEPTION" event is deprecated since Symfony 3.3 and will be removed in 4.0. Listen to the "ConsoleEvents::ERROR" event instead.
|
1333
|
+
*/
|
1334
|
+
public function testLegacyExceptionListenersAreStillTriggered()
|
1335
|
+
{
|
1336
|
+
$dispatcher = $this->getDispatcher();
|
1337
|
+
$dispatcher->addListener('console.exception', function (ConsoleExceptionEvent $event) {
|
1338
|
+
$event->getOutput()->write('caught.');
|
1339
|
+
|
1340
|
+
$event->setException(new \RuntimeException('replaced in caught.'));
|
1341
|
+
});
|
1342
|
+
|
1343
|
+
$application = new Application();
|
1344
|
+
$application->setDispatcher($dispatcher);
|
1345
|
+
$application->setAutoExit(false);
|
1346
|
+
|
1347
|
+
$application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1348
|
+
throw new \RuntimeException('foo');
|
1349
|
+
});
|
1350
|
+
|
1351
|
+
$tester = new ApplicationTester($application);
|
1352
|
+
$tester->run(['command' => 'foo']);
|
1353
|
+
$this->assertStringContainsString('before.caught.error.after.', $tester->getDisplay());
|
1354
|
+
$this->assertStringContainsString('replaced in caught.', $tester->getDisplay());
|
1355
|
+
}
|
1356
|
+
|
1357
|
+
/**
|
1358
|
+
* @requires PHP 7
|
1359
|
+
*/
|
1360
|
+
public function testErrorIsRethrownIfNotHandledByConsoleErrorEvent()
|
1361
|
+
{
|
1362
|
+
$application = new Application();
|
1363
|
+
$application->setAutoExit(false);
|
1364
|
+
$application->setCatchExceptions(false);
|
1365
|
+
$application->setDispatcher(new EventDispatcher());
|
1366
|
+
|
1367
|
+
$application->register('dym')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1368
|
+
new \UnknownClass();
|
1369
|
+
});
|
1370
|
+
|
1371
|
+
$tester = new ApplicationTester($application);
|
1372
|
+
|
1373
|
+
try {
|
1374
|
+
$tester->run(['command' => 'dym']);
|
1375
|
+
$this->fail('->run() should rethrow PHP errors if not handled via ConsoleErrorEvent.');
|
1376
|
+
} catch (\Error $e) {
|
1377
|
+
$this->assertSame($e->getMessage(), 'Class \'UnknownClass\' not found');
|
1378
|
+
}
|
1379
|
+
}
|
1380
|
+
|
1381
|
+
/**
|
1382
|
+
* @requires PHP 7
|
1383
|
+
*/
|
1384
|
+
public function testRunWithErrorAndDispatcher()
|
1385
|
+
{
|
1386
|
+
$this->expectException('LogicException');
|
1387
|
+
$this->expectExceptionMessage('error');
|
1388
|
+
$application = new Application();
|
1389
|
+
$application->setDispatcher($this->getDispatcher());
|
1390
|
+
$application->setAutoExit(false);
|
1391
|
+
$application->setCatchExceptions(false);
|
1392
|
+
|
1393
|
+
$application->register('dym')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1394
|
+
$output->write('dym.');
|
1395
|
+
|
1396
|
+
throw new \Error('dymerr');
|
1397
|
+
});
|
1398
|
+
|
1399
|
+
$tester = new ApplicationTester($application);
|
1400
|
+
$tester->run(['command' => 'dym']);
|
1401
|
+
$this->assertStringContainsString('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
|
1402
|
+
}
|
1403
|
+
|
1404
|
+
/**
|
1405
|
+
* @requires PHP 7
|
1406
|
+
*/
|
1407
|
+
public function testRunDispatchesAllEventsWithError()
|
1408
|
+
{
|
1409
|
+
$application = new Application();
|
1410
|
+
$application->setDispatcher($this->getDispatcher());
|
1411
|
+
$application->setAutoExit(false);
|
1412
|
+
|
1413
|
+
$application->register('dym')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1414
|
+
$output->write('dym.');
|
1415
|
+
|
1416
|
+
throw new \Error('dymerr');
|
1417
|
+
});
|
1418
|
+
|
1419
|
+
$tester = new ApplicationTester($application);
|
1420
|
+
$tester->run(['command' => 'dym']);
|
1421
|
+
$this->assertStringContainsString('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
|
1422
|
+
}
|
1423
|
+
|
1424
|
+
/**
|
1425
|
+
* @requires PHP 7
|
1426
|
+
*/
|
1427
|
+
public function testRunWithErrorFailingStatusCode()
|
1428
|
+
{
|
1429
|
+
$application = new Application();
|
1430
|
+
$application->setDispatcher($this->getDispatcher());
|
1431
|
+
$application->setAutoExit(false);
|
1432
|
+
|
1433
|
+
$application->register('dus')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1434
|
+
$output->write('dus.');
|
1435
|
+
|
1436
|
+
throw new \Error('duserr');
|
1437
|
+
});
|
1438
|
+
|
1439
|
+
$tester = new ApplicationTester($application);
|
1440
|
+
$tester->run(['command' => 'dus']);
|
1441
|
+
$this->assertSame(1, $tester->getStatusCode(), 'Status code should be 1');
|
1442
|
+
}
|
1443
|
+
|
1444
|
+
public function testRunWithDispatcherSkippingCommand()
|
1445
|
+
{
|
1446
|
+
$application = new Application();
|
1447
|
+
$application->setDispatcher($this->getDispatcher(true));
|
1448
|
+
$application->setAutoExit(false);
|
1449
|
+
|
1450
|
+
$application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1451
|
+
$output->write('foo.');
|
1452
|
+
});
|
1453
|
+
|
1454
|
+
$tester = new ApplicationTester($application);
|
1455
|
+
$exitCode = $tester->run(['command' => 'foo']);
|
1456
|
+
$this->assertStringContainsString('before.after.', $tester->getDisplay());
|
1457
|
+
$this->assertEquals(ConsoleCommandEvent::RETURN_CODE_DISABLED, $exitCode);
|
1458
|
+
}
|
1459
|
+
|
1460
|
+
public function testRunWithDispatcherAccessingInputOptions()
|
1461
|
+
{
|
1462
|
+
$noInteractionValue = null;
|
1463
|
+
$quietValue = null;
|
1464
|
+
|
1465
|
+
$dispatcher = $this->getDispatcher();
|
1466
|
+
$dispatcher->addListener('console.command', function (ConsoleCommandEvent $event) use (&$noInteractionValue, &$quietValue) {
|
1467
|
+
$input = $event->getInput();
|
1468
|
+
|
1469
|
+
$noInteractionValue = $input->getOption('no-interaction');
|
1470
|
+
$quietValue = $input->getOption('quiet');
|
1471
|
+
});
|
1472
|
+
|
1473
|
+
$application = new Application();
|
1474
|
+
$application->setDispatcher($dispatcher);
|
1475
|
+
$application->setAutoExit(false);
|
1476
|
+
|
1477
|
+
$application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1478
|
+
$output->write('foo.');
|
1479
|
+
});
|
1480
|
+
|
1481
|
+
$tester = new ApplicationTester($application);
|
1482
|
+
$tester->run(['command' => 'foo', '--no-interaction' => true]);
|
1483
|
+
|
1484
|
+
$this->assertTrue($noInteractionValue);
|
1485
|
+
$this->assertFalse($quietValue);
|
1486
|
+
}
|
1487
|
+
|
1488
|
+
public function testRunWithDispatcherAddingInputOptions()
|
1489
|
+
{
|
1490
|
+
$extraValue = null;
|
1491
|
+
|
1492
|
+
$dispatcher = $this->getDispatcher();
|
1493
|
+
$dispatcher->addListener('console.command', function (ConsoleCommandEvent $event) use (&$extraValue) {
|
1494
|
+
$definition = $event->getCommand()->getDefinition();
|
1495
|
+
$input = $event->getInput();
|
1496
|
+
|
1497
|
+
$definition->addOption(new InputOption('extra', null, InputOption::VALUE_REQUIRED));
|
1498
|
+
$input->bind($definition);
|
1499
|
+
|
1500
|
+
$extraValue = $input->getOption('extra');
|
1501
|
+
});
|
1502
|
+
|
1503
|
+
$application = new Application();
|
1504
|
+
$application->setDispatcher($dispatcher);
|
1505
|
+
$application->setAutoExit(false);
|
1506
|
+
|
1507
|
+
$application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1508
|
+
$output->write('foo.');
|
1509
|
+
});
|
1510
|
+
|
1511
|
+
$tester = new ApplicationTester($application);
|
1512
|
+
$tester->run(['command' => 'foo', '--extra' => 'some test value']);
|
1513
|
+
|
1514
|
+
$this->assertEquals('some test value', $extraValue);
|
1515
|
+
}
|
1516
|
+
|
1517
|
+
/**
|
1518
|
+
* @group legacy
|
1519
|
+
*/
|
1520
|
+
public function testTerminalDimensions()
|
1521
|
+
{
|
1522
|
+
$application = new Application();
|
1523
|
+
$originalDimensions = $application->getTerminalDimensions();
|
1524
|
+
$this->assertCount(2, $originalDimensions);
|
1525
|
+
|
1526
|
+
$width = 80;
|
1527
|
+
if ($originalDimensions[0] == $width) {
|
1528
|
+
$width = 100;
|
1529
|
+
}
|
1530
|
+
|
1531
|
+
$application->setTerminalDimensions($width, 80);
|
1532
|
+
$this->assertSame([$width, 80], $application->getTerminalDimensions());
|
1533
|
+
}
|
1534
|
+
|
1535
|
+
public function testSetRunCustomDefaultCommand()
|
1536
|
+
{
|
1537
|
+
$command = new \FooCommand();
|
1538
|
+
|
1539
|
+
$application = new Application();
|
1540
|
+
$application->setAutoExit(false);
|
1541
|
+
$application->add($command);
|
1542
|
+
$application->setDefaultCommand($command->getName());
|
1543
|
+
|
1544
|
+
$tester = new ApplicationTester($application);
|
1545
|
+
$tester->run([], ['interactive' => false]);
|
1546
|
+
$this->assertEquals('called'.PHP_EOL, $tester->getDisplay(), 'Application runs the default set command if different from \'list\' command');
|
1547
|
+
|
1548
|
+
$application = new CustomDefaultCommandApplication();
|
1549
|
+
$application->setAutoExit(false);
|
1550
|
+
|
1551
|
+
$tester = new ApplicationTester($application);
|
1552
|
+
$tester->run([], ['interactive' => false]);
|
1553
|
+
|
1554
|
+
$this->assertEquals('called'.PHP_EOL, $tester->getDisplay(), 'Application runs the default set command if different from \'list\' command');
|
1555
|
+
}
|
1556
|
+
|
1557
|
+
public function testSetRunCustomDefaultCommandWithOption()
|
1558
|
+
{
|
1559
|
+
$command = new \FooOptCommand();
|
1560
|
+
|
1561
|
+
$application = new Application();
|
1562
|
+
$application->setAutoExit(false);
|
1563
|
+
$application->add($command);
|
1564
|
+
$application->setDefaultCommand($command->getName());
|
1565
|
+
|
1566
|
+
$tester = new ApplicationTester($application);
|
1567
|
+
$tester->run(['--fooopt' => 'opt'], ['interactive' => false]);
|
1568
|
+
|
1569
|
+
$this->assertEquals('called'.PHP_EOL.'opt'.PHP_EOL, $tester->getDisplay(), 'Application runs the default set command if different from \'list\' command');
|
1570
|
+
}
|
1571
|
+
|
1572
|
+
public function testSetRunCustomSingleCommand()
|
1573
|
+
{
|
1574
|
+
$command = new \FooCommand();
|
1575
|
+
|
1576
|
+
$application = new Application();
|
1577
|
+
$application->setAutoExit(false);
|
1578
|
+
$application->add($command);
|
1579
|
+
$application->setDefaultCommand($command->getName(), true);
|
1580
|
+
|
1581
|
+
$tester = new ApplicationTester($application);
|
1582
|
+
|
1583
|
+
$tester->run([]);
|
1584
|
+
$this->assertStringContainsString('called', $tester->getDisplay());
|
1585
|
+
|
1586
|
+
$tester->run(['--help' => true]);
|
1587
|
+
$this->assertStringContainsString('The foo:bar command', $tester->getDisplay());
|
1588
|
+
}
|
1589
|
+
|
1590
|
+
public function testRunLazyCommandService()
|
1591
|
+
{
|
1592
|
+
$container = new ContainerBuilder();
|
1593
|
+
$container->addCompilerPass(new AddConsoleCommandPass());
|
1594
|
+
$container
|
1595
|
+
->register('lazy-command', LazyCommand::class)
|
1596
|
+
->addTag('console.command', ['command' => 'lazy:command'])
|
1597
|
+
->addTag('console.command', ['command' => 'lazy:alias'])
|
1598
|
+
->addTag('console.command', ['command' => 'lazy:alias2']);
|
1599
|
+
$container->compile();
|
1600
|
+
|
1601
|
+
$application = new Application();
|
1602
|
+
$application->setCommandLoader($container->get('console.command_loader'));
|
1603
|
+
$application->setAutoExit(false);
|
1604
|
+
|
1605
|
+
$tester = new ApplicationTester($application);
|
1606
|
+
|
1607
|
+
$tester->run(['command' => 'lazy:command']);
|
1608
|
+
$this->assertSame("lazy-command called\n", $tester->getDisplay(true));
|
1609
|
+
|
1610
|
+
$tester->run(['command' => 'lazy:alias']);
|
1611
|
+
$this->assertSame("lazy-command called\n", $tester->getDisplay(true));
|
1612
|
+
|
1613
|
+
$tester->run(['command' => 'lazy:alias2']);
|
1614
|
+
$this->assertSame("lazy-command called\n", $tester->getDisplay(true));
|
1615
|
+
|
1616
|
+
$command = $application->get('lazy:command');
|
1617
|
+
$this->assertSame(['lazy:alias', 'lazy:alias2'], $command->getAliases());
|
1618
|
+
}
|
1619
|
+
|
1620
|
+
public function testGetDisabledLazyCommand()
|
1621
|
+
{
|
1622
|
+
$this->expectException('Symfony\Component\Console\Exception\CommandNotFoundException');
|
1623
|
+
$application = new Application();
|
1624
|
+
$application->setCommandLoader(new FactoryCommandLoader(['disabled' => function () { return new DisabledCommand(); }]));
|
1625
|
+
$application->get('disabled');
|
1626
|
+
}
|
1627
|
+
|
1628
|
+
public function testHasReturnsFalseForDisabledLazyCommand()
|
1629
|
+
{
|
1630
|
+
$application = new Application();
|
1631
|
+
$application->setCommandLoader(new FactoryCommandLoader(['disabled' => function () { return new DisabledCommand(); }]));
|
1632
|
+
$this->assertFalse($application->has('disabled'));
|
1633
|
+
}
|
1634
|
+
|
1635
|
+
public function testAllExcludesDisabledLazyCommand()
|
1636
|
+
{
|
1637
|
+
$application = new Application();
|
1638
|
+
$application->setCommandLoader(new FactoryCommandLoader(['disabled' => function () { return new DisabledCommand(); }]));
|
1639
|
+
$this->assertArrayNotHasKey('disabled', $application->all());
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
protected function getDispatcher($skipCommand = false)
|
1643
|
+
{
|
1644
|
+
$dispatcher = new EventDispatcher();
|
1645
|
+
$dispatcher->addListener('console.command', function (ConsoleCommandEvent $event) use ($skipCommand) {
|
1646
|
+
$event->getOutput()->write('before.');
|
1647
|
+
|
1648
|
+
if ($skipCommand) {
|
1649
|
+
$event->disableCommand();
|
1650
|
+
}
|
1651
|
+
});
|
1652
|
+
$dispatcher->addListener('console.terminate', function (ConsoleTerminateEvent $event) use ($skipCommand) {
|
1653
|
+
$event->getOutput()->writeln('after.');
|
1654
|
+
|
1655
|
+
if (!$skipCommand) {
|
1656
|
+
$event->setExitCode(ConsoleCommandEvent::RETURN_CODE_DISABLED);
|
1657
|
+
}
|
1658
|
+
});
|
1659
|
+
$dispatcher->addListener('console.error', function (ConsoleErrorEvent $event) {
|
1660
|
+
$event->getOutput()->write('error.');
|
1661
|
+
|
1662
|
+
$event->setError(new \LogicException('error.', $event->getExitCode(), $event->getError()));
|
1663
|
+
});
|
1664
|
+
|
1665
|
+
return $dispatcher;
|
1666
|
+
}
|
1667
|
+
|
1668
|
+
/**
|
1669
|
+
* @requires PHP 7
|
1670
|
+
*/
|
1671
|
+
public function testErrorIsRethrownIfNotHandledByConsoleErrorEventWithCatchingEnabled()
|
1672
|
+
{
|
1673
|
+
$application = new Application();
|
1674
|
+
$application->setAutoExit(false);
|
1675
|
+
$application->setDispatcher(new EventDispatcher());
|
1676
|
+
|
1677
|
+
$application->register('dym')->setCode(function (InputInterface $input, OutputInterface $output) {
|
1678
|
+
new \UnknownClass();
|
1679
|
+
});
|
1680
|
+
|
1681
|
+
$tester = new ApplicationTester($application);
|
1682
|
+
|
1683
|
+
try {
|
1684
|
+
$tester->run(['command' => 'dym']);
|
1685
|
+
$this->fail('->run() should rethrow PHP errors if not handled via ConsoleErrorEvent.');
|
1686
|
+
} catch (\Error $e) {
|
1687
|
+
$this->assertSame($e->getMessage(), 'Class \'UnknownClass\' not found');
|
1688
|
+
}
|
1689
|
+
}
|
1690
|
+
}
|
1691
|
+
|
1692
|
+
class CustomApplication extends Application
|
1693
|
+
{
|
1694
|
+
/**
|
1695
|
+
* Overwrites the default input definition.
|
1696
|
+
*
|
1697
|
+
* @return InputDefinition An InputDefinition instance
|
1698
|
+
*/
|
1699
|
+
protected function getDefaultInputDefinition()
|
1700
|
+
{
|
1701
|
+
return new InputDefinition([new InputOption('--custom', '-c', InputOption::VALUE_NONE, 'Set the custom input definition.')]);
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
/**
|
1705
|
+
* Gets the default helper set with the helpers that should always be available.
|
1706
|
+
*
|
1707
|
+
* @return HelperSet A HelperSet instance
|
1708
|
+
*/
|
1709
|
+
protected function getDefaultHelperSet()
|
1710
|
+
{
|
1711
|
+
return new HelperSet([new FormatterHelper()]);
|
1712
|
+
}
|
1713
|
+
}
|
1714
|
+
|
1715
|
+
class CustomDefaultCommandApplication extends Application
|
1716
|
+
{
|
1717
|
+
/**
|
1718
|
+
* Overwrites the constructor in order to set a different default command.
|
1719
|
+
*/
|
1720
|
+
public function __construct()
|
1721
|
+
{
|
1722
|
+
parent::__construct();
|
1723
|
+
|
1724
|
+
$command = new \FooCommand();
|
1725
|
+
$this->add($command);
|
1726
|
+
$this->setDefaultCommand($command->getName());
|
1727
|
+
}
|
1728
|
+
}
|
1729
|
+
|
1730
|
+
class LazyCommand extends Command
|
1731
|
+
{
|
1732
|
+
public function execute(InputInterface $input, OutputInterface $output)
|
1733
|
+
{
|
1734
|
+
$output->writeln('lazy-command called');
|
1735
|
+
}
|
1736
|
+
}
|
1737
|
+
|
1738
|
+
class DisabledCommand extends Command
|
1739
|
+
{
|
1740
|
+
public function isEnabled()
|
1741
|
+
{
|
1742
|
+
return false;
|
1743
|
+
}
|
1744
|
+
}
|