@averay/codeformat 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1215) hide show
  1. package/.editorconfig +1 -1
  2. package/.php-cs-fixer.cache +1 -0
  3. package/.php-cs-fixer.php +9 -0
  4. package/.prettierrc.json +3 -1
  5. package/.stylelintignore +2 -0
  6. package/README.md +19 -5
  7. package/bin/codeformat.ts +26 -0
  8. package/bin/tools/eslint.ts +16 -0
  9. package/bin/tools/index.ts +5 -0
  10. package/bin/tools/phpCsFixer.ts +17 -0
  11. package/bin/tools/prettier.ts +20 -0
  12. package/bin/tools/stylelint.ts +16 -0
  13. package/bin/tools/tsc.ts +12 -0
  14. package/bin/utils/Cli.ts +77 -0
  15. package/bin/utils/Output.ts +30 -0
  16. package/bin/utils/ToolRunner.ts +60 -0
  17. package/bin/utils/filesystem.ts +16 -0
  18. package/bin/utils/runners.ts +10 -0
  19. package/bin/utils/types.ts +22 -0
  20. package/composer.json +6 -0
  21. package/composer.lock +3231 -0
  22. package/eslint.config.js +26 -0
  23. package/lib/cssPatterns.ts +7 -0
  24. package/package.json +34 -30
  25. package/rulesets/eslint/ruleset-shared.ts +9 -5
  26. package/rulesets/eslint/ruleset-typescript.ts +30 -17
  27. package/rulesets/php/ruleset-php-cs-fixer.php +93 -0
  28. package/rulesets/stylelint/ruleset-css.ts +21 -5
  29. package/rulesets/stylelint/ruleset-scss.ts +7 -8
  30. package/src/makeStylelintConfig.ts +13 -5
  31. package/src/php/PhpCsFixerConfig.php +27 -0
  32. package/{stylelint.config.cjs → stylelint.config.js} +2 -2
  33. package/vendor/autoload.php +22 -0
  34. package/vendor/bin/php-cs-fixer +119 -0
  35. package/vendor/clue/ndjson-react/.github/FUNDING.yml +2 -0
  36. package/vendor/clue/ndjson-react/CHANGELOG.md +75 -0
  37. package/vendor/clue/ndjson-react/LICENSE +21 -0
  38. package/vendor/clue/ndjson-react/README.md +365 -0
  39. package/vendor/clue/ndjson-react/composer.json +31 -0
  40. package/vendor/clue/ndjson-react/src/Decoder.php +166 -0
  41. package/vendor/clue/ndjson-react/src/Encoder.php +144 -0
  42. package/vendor/composer/ClassLoader.php +579 -0
  43. package/vendor/composer/InstalledVersions.php +396 -0
  44. package/vendor/composer/LICENSE +21 -0
  45. package/vendor/composer/autoload_classmap.php +34 -0
  46. package/vendor/composer/autoload_files.php +18 -0
  47. package/vendor/composer/autoload_namespaces.php +9 -0
  48. package/vendor/composer/autoload_psr4.php +42 -0
  49. package/vendor/composer/autoload_real.php +48 -0
  50. package/vendor/composer/autoload_static.php +247 -0
  51. package/vendor/composer/installed.json +3634 -0
  52. package/vendor/composer/installed.php +367 -0
  53. package/vendor/composer/pcre/LICENSE +19 -0
  54. package/vendor/composer/pcre/README.md +189 -0
  55. package/vendor/composer/pcre/composer.json +54 -0
  56. package/vendor/composer/pcre/extension.neon +22 -0
  57. package/vendor/composer/pcre/src/MatchAllResult.php +46 -0
  58. package/vendor/composer/pcre/src/MatchAllStrictGroupsResult.php +46 -0
  59. package/vendor/composer/pcre/src/MatchAllWithOffsetsResult.php +48 -0
  60. package/vendor/composer/pcre/src/MatchResult.php +39 -0
  61. package/vendor/composer/pcre/src/MatchStrictGroupsResult.php +39 -0
  62. package/vendor/composer/pcre/src/MatchWithOffsetsResult.php +41 -0
  63. package/vendor/composer/pcre/src/PHPStan/InvalidRegexPatternRule.php +142 -0
  64. package/vendor/composer/pcre/src/PHPStan/PregMatchFlags.php +70 -0
  65. package/vendor/composer/pcre/src/PHPStan/PregMatchParameterOutTypeExtension.php +65 -0
  66. package/vendor/composer/pcre/src/PHPStan/PregMatchTypeSpecifyingExtension.php +119 -0
  67. package/vendor/composer/pcre/src/PHPStan/PregReplaceCallbackClosureTypeExtension.php +91 -0
  68. package/vendor/composer/pcre/src/PHPStan/UnsafeStrictGroupsCallRule.php +112 -0
  69. package/vendor/composer/pcre/src/PcreException.php +55 -0
  70. package/vendor/composer/pcre/src/Preg.php +430 -0
  71. package/vendor/composer/pcre/src/Regex.php +176 -0
  72. package/vendor/composer/pcre/src/ReplaceResult.php +43 -0
  73. package/vendor/composer/pcre/src/UnexpectedNullMatchException.php +20 -0
  74. package/vendor/composer/semver/CHANGELOG.md +229 -0
  75. package/vendor/composer/semver/LICENSE +19 -0
  76. package/vendor/composer/semver/README.md +99 -0
  77. package/vendor/composer/semver/composer.json +59 -0
  78. package/vendor/composer/semver/src/Comparator.php +113 -0
  79. package/vendor/composer/semver/src/CompilingMatcher.php +94 -0
  80. package/vendor/composer/semver/src/Constraint/Bound.php +122 -0
  81. package/vendor/composer/semver/src/Constraint/Constraint.php +435 -0
  82. package/vendor/composer/semver/src/Constraint/ConstraintInterface.php +75 -0
  83. package/vendor/composer/semver/src/Constraint/MatchAllConstraint.php +85 -0
  84. package/vendor/composer/semver/src/Constraint/MatchNoneConstraint.php +83 -0
  85. package/vendor/composer/semver/src/Constraint/MultiConstraint.php +325 -0
  86. package/vendor/composer/semver/src/Interval.php +98 -0
  87. package/vendor/composer/semver/src/Intervals.php +478 -0
  88. package/vendor/composer/semver/src/Semver.php +129 -0
  89. package/vendor/composer/semver/src/VersionParser.php +591 -0
  90. package/vendor/composer/xdebug-handler/CHANGELOG.md +143 -0
  91. package/vendor/composer/xdebug-handler/LICENSE +21 -0
  92. package/vendor/composer/xdebug-handler/README.md +305 -0
  93. package/vendor/composer/xdebug-handler/composer.json +44 -0
  94. package/vendor/composer/xdebug-handler/src/PhpConfig.php +91 -0
  95. package/vendor/composer/xdebug-handler/src/Process.php +119 -0
  96. package/vendor/composer/xdebug-handler/src/Status.php +222 -0
  97. package/vendor/composer/xdebug-handler/src/XdebugHandler.php +722 -0
  98. package/vendor/evenement/evenement/.gitattributes +7 -0
  99. package/vendor/evenement/evenement/LICENSE +19 -0
  100. package/vendor/evenement/evenement/README.md +64 -0
  101. package/vendor/evenement/evenement/composer.json +29 -0
  102. package/vendor/evenement/evenement/src/EventEmitter.php +17 -0
  103. package/vendor/evenement/evenement/src/EventEmitterInterface.php +22 -0
  104. package/vendor/evenement/evenement/src/EventEmitterTrait.php +154 -0
  105. package/vendor/fidry/cpu-core-counter/.envrc +5 -0
  106. package/vendor/fidry/cpu-core-counter/LICENSE.md +16 -0
  107. package/vendor/fidry/cpu-core-counter/README.md +138 -0
  108. package/vendor/fidry/cpu-core-counter/bin/diagnose.php +27 -0
  109. package/vendor/fidry/cpu-core-counter/bin/execute.php +21 -0
  110. package/vendor/fidry/cpu-core-counter/bin/trace.php +32 -0
  111. package/vendor/fidry/cpu-core-counter/composer.json +48 -0
  112. package/vendor/fidry/cpu-core-counter/src/CpuCoreCounter.php +268 -0
  113. package/vendor/fidry/cpu-core-counter/src/Diagnoser.php +101 -0
  114. package/vendor/fidry/cpu-core-counter/src/Executor/ProcOpenExecutor.php +56 -0
  115. package/vendor/fidry/cpu-core-counter/src/Executor/ProcessExecutor.php +22 -0
  116. package/vendor/fidry/cpu-core-counter/src/Finder/CmiCmdletLogicalFinder.php +46 -0
  117. package/vendor/fidry/cpu-core-counter/src/Finder/CmiCmdletPhysicalFinder.php +47 -0
  118. package/vendor/fidry/cpu-core-counter/src/Finder/CpuCoreFinder.php +37 -0
  119. package/vendor/fidry/cpu-core-counter/src/Finder/CpuInfoFinder.php +100 -0
  120. package/vendor/fidry/cpu-core-counter/src/Finder/DummyCpuCoreFinder.php +57 -0
  121. package/vendor/fidry/cpu-core-counter/src/Finder/EnvVariableFinder.php +69 -0
  122. package/vendor/fidry/cpu-core-counter/src/Finder/FinderRegistry.php +91 -0
  123. package/vendor/fidry/cpu-core-counter/src/Finder/HwLogicalFinder.php +33 -0
  124. package/vendor/fidry/cpu-core-counter/src/Finder/HwPhysicalFinder.php +33 -0
  125. package/vendor/fidry/cpu-core-counter/src/Finder/LscpuLogicalFinder.php +52 -0
  126. package/vendor/fidry/cpu-core-counter/src/Finder/LscpuPhysicalFinder.php +66 -0
  127. package/vendor/fidry/cpu-core-counter/src/Finder/NProcFinder.php +59 -0
  128. package/vendor/fidry/cpu-core-counter/src/Finder/NProcessorFinder.php +32 -0
  129. package/vendor/fidry/cpu-core-counter/src/Finder/NullCpuCoreFinder.php +35 -0
  130. package/vendor/fidry/cpu-core-counter/src/Finder/OnlyInPowerShellFinder.php +62 -0
  131. package/vendor/fidry/cpu-core-counter/src/Finder/OnlyOnOSFamilyFinder.php +113 -0
  132. package/vendor/fidry/cpu-core-counter/src/Finder/ProcOpenBasedFinder.php +107 -0
  133. package/vendor/fidry/cpu-core-counter/src/Finder/SkipOnOSFamilyFinder.php +113 -0
  134. package/vendor/fidry/cpu-core-counter/src/Finder/WindowsRegistryLogicalFinder.php +51 -0
  135. package/vendor/fidry/cpu-core-counter/src/Finder/WmicLogicalFinder.php +47 -0
  136. package/vendor/fidry/cpu-core-counter/src/Finder/WmicPhysicalFinder.php +47 -0
  137. package/vendor/fidry/cpu-core-counter/src/Finder/_NProcessorFinder.php +32 -0
  138. package/vendor/fidry/cpu-core-counter/src/NumberOfCpuCoreNotFound.php +26 -0
  139. package/vendor/fidry/cpu-core-counter/src/ParallelisationResult.php +87 -0
  140. package/vendor/friendsofphp/php-cs-fixer/CHANGELOG.md +5983 -0
  141. package/vendor/friendsofphp/php-cs-fixer/CONTRIBUTING.md +103 -0
  142. package/vendor/friendsofphp/php-cs-fixer/LICENSE +19 -0
  143. package/vendor/friendsofphp/php-cs-fixer/README.md +88 -0
  144. package/vendor/friendsofphp/php-cs-fixer/UPGRADE-v3.md +162 -0
  145. package/vendor/friendsofphp/php-cs-fixer/ci-integration.sh +8 -0
  146. package/vendor/friendsofphp/php-cs-fixer/composer.json +210 -0
  147. package/vendor/friendsofphp/php-cs-fixer/feature-or-bug.rst +24 -0
  148. package/vendor/friendsofphp/php-cs-fixer/logo.md +3 -0
  149. package/vendor/friendsofphp/php-cs-fixer/logo.png +0 -0
  150. package/vendor/friendsofphp/php-cs-fixer/php-cs-fixer +110 -0
  151. package/vendor/friendsofphp/php-cs-fixer/src/AbstractDoctrineAnnotationFixer.php +241 -0
  152. package/vendor/friendsofphp/php-cs-fixer/src/AbstractFixer.php +102 -0
  153. package/vendor/friendsofphp/php-cs-fixer/src/AbstractFopenFlagFixer.php +116 -0
  154. package/vendor/friendsofphp/php-cs-fixer/src/AbstractFunctionReferenceFixer.php +71 -0
  155. package/vendor/friendsofphp/php-cs-fixer/src/AbstractNoUselessElseFixer.php +204 -0
  156. package/vendor/friendsofphp/php-cs-fixer/src/AbstractPhpdocToTypeDeclarationFixer.php +314 -0
  157. package/vendor/friendsofphp/php-cs-fixer/src/AbstractPhpdocTypesFixer.php +105 -0
  158. package/vendor/friendsofphp/php-cs-fixer/src/AbstractProxyFixer.php +106 -0
  159. package/vendor/friendsofphp/php-cs-fixer/src/Cache/Cache.php +151 -0
  160. package/vendor/friendsofphp/php-cs-fixer/src/Cache/CacheInterface.php +35 -0
  161. package/vendor/friendsofphp/php-cs-fixer/src/Cache/CacheManagerInterface.php +29 -0
  162. package/vendor/friendsofphp/php-cs-fixer/src/Cache/Directory.php +51 -0
  163. package/vendor/friendsofphp/php-cs-fixer/src/Cache/DirectoryInterface.php +23 -0
  164. package/vendor/friendsofphp/php-cs-fixer/src/Cache/FileCacheManager.php +143 -0
  165. package/vendor/friendsofphp/php-cs-fixer/src/Cache/FileHandler.php +184 -0
  166. package/vendor/friendsofphp/php-cs-fixer/src/Cache/FileHandlerInterface.php +29 -0
  167. package/vendor/friendsofphp/php-cs-fixer/src/Cache/NullCacheManager.php +33 -0
  168. package/vendor/friendsofphp/php-cs-fixer/src/Cache/Signature.php +100 -0
  169. package/vendor/friendsofphp/php-cs-fixer/src/Cache/SignatureInterface.php +38 -0
  170. package/vendor/friendsofphp/php-cs-fixer/src/Config.php +267 -0
  171. package/vendor/friendsofphp/php-cs-fixer/src/ConfigInterface.php +162 -0
  172. package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidConfigurationException.php +36 -0
  173. package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidFixerConfigurationException.php +45 -0
  174. package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/InvalidForEnvFixerConfigurationException.php +22 -0
  175. package/vendor/friendsofphp/php-cs-fixer/src/ConfigurationException/RequiredFixerConfigurationException.php +22 -0
  176. package/vendor/friendsofphp/php-cs-fixer/src/Console/Application.php +212 -0
  177. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/CheckCommand.php +64 -0
  178. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DescribeCommand.php +476 -0
  179. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DescribeNameNotFoundException.php +46 -0
  180. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/DocumentationCommand.php +123 -0
  181. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommand.php +397 -0
  182. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommandExitStatusCalculator.php +56 -0
  183. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/HelpCommand.php +76 -0
  184. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/ListFilesCommand.php +91 -0
  185. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/ListSetsCommand.php +87 -0
  186. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/SelfUpdateCommand.php +176 -0
  187. package/vendor/friendsofphp/php-cs-fixer/src/Console/Command/WorkerCommand.php +243 -0
  188. package/vendor/friendsofphp/php-cs-fixer/src/Console/ConfigurationResolver.php +961 -0
  189. package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/ErrorOutput.php +155 -0
  190. package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/OutputContext.php +54 -0
  191. package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/DotsOutput.php +124 -0
  192. package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/NullOutput.php +29 -0
  193. package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/PercentageBarOutput.php +78 -0
  194. package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/ProgressOutputFactory.php +63 -0
  195. package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/ProgressOutputInterface.php +27 -0
  196. package/vendor/friendsofphp/php-cs-fixer/src/Console/Output/Progress/ProgressOutputType.php +37 -0
  197. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/CheckstyleReporter.php +71 -0
  198. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/GitlabReporter.php +96 -0
  199. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/JsonReporter.php +65 -0
  200. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/JunitReporter.php +145 -0
  201. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/ReportSummary.php +103 -0
  202. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/ReporterFactory.php +90 -0
  203. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/ReporterInterface.php +30 -0
  204. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/TextReporter.php +104 -0
  205. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/FixReport/XmlReporter.php +136 -0
  206. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/JsonReporter.php +52 -0
  207. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/ReportSummary.php +48 -0
  208. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/ReporterFactory.php +89 -0
  209. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/ReporterInterface.php +30 -0
  210. package/vendor/friendsofphp/php-cs-fixer/src/Console/Report/ListSetsReport/TextReporter.php +51 -0
  211. package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/GithubClient.php +69 -0
  212. package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/GithubClientInterface.php +26 -0
  213. package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/NewVersionChecker.php +102 -0
  214. package/vendor/friendsofphp/php-cs-fixer/src/Console/SelfUpdate/NewVersionCheckerInterface.php +37 -0
  215. package/vendor/friendsofphp/php-cs-fixer/src/Console/WarningsDetector.php +76 -0
  216. package/vendor/friendsofphp/php-cs-fixer/src/Differ/DiffConsoleFormatter.php +85 -0
  217. package/vendor/friendsofphp/php-cs-fixer/src/Differ/DifferInterface.php +26 -0
  218. package/vendor/friendsofphp/php-cs-fixer/src/Differ/FullDiffer.php +46 -0
  219. package/vendor/friendsofphp/php-cs-fixer/src/Differ/NullDiffer.php +26 -0
  220. package/vendor/friendsofphp/php-cs-fixer/src/Differ/UnifiedDiffer.php +47 -0
  221. package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Annotation.php +319 -0
  222. package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/DocBlock.php +250 -0
  223. package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Line.php +128 -0
  224. package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/ShortDescription.php +65 -0
  225. package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/Tag.php +102 -0
  226. package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/TagComparator.php +66 -0
  227. package/vendor/friendsofphp/php-cs-fixer/src/DocBlock/TypeExpression.php +857 -0
  228. package/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/DocLexer.php +171 -0
  229. package/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/Token.php +87 -0
  230. package/vendor/friendsofphp/php-cs-fixer/src/Doctrine/Annotation/Tokens.php +303 -0
  231. package/vendor/friendsofphp/php-cs-fixer/src/Documentation/DocumentationLocator.php +82 -0
  232. package/vendor/friendsofphp/php-cs-fixer/src/Documentation/FixerDocumentGenerator.php +415 -0
  233. package/vendor/friendsofphp/php-cs-fixer/src/Documentation/RstUtils.php +45 -0
  234. package/vendor/friendsofphp/php-cs-fixer/src/Documentation/RuleSetDocumentationGenerator.php +174 -0
  235. package/vendor/friendsofphp/php-cs-fixer/src/Error/Error.php +125 -0
  236. package/vendor/friendsofphp/php-cs-fixer/src/Error/ErrorsManager.php +83 -0
  237. package/vendor/friendsofphp/php-cs-fixer/src/Error/SourceExceptionFactory.php +62 -0
  238. package/vendor/friendsofphp/php-cs-fixer/src/ExecutorWithoutErrorHandler.php +58 -0
  239. package/vendor/friendsofphp/php-cs-fixer/src/ExecutorWithoutErrorHandlerException.php +22 -0
  240. package/vendor/friendsofphp/php-cs-fixer/src/FileReader.php +70 -0
  241. package/vendor/friendsofphp/php-cs-fixer/src/FileRemoval.php +100 -0
  242. package/vendor/friendsofphp/php-cs-fixer/src/Finder.php +35 -0
  243. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AbstractIncrementOperatorFixer.php +58 -0
  244. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AbstractPhpUnitFixer.php +278 -0
  245. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AbstractShortOperatorFixer.php +264 -0
  246. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/ArrayPushFixer.php +207 -0
  247. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/BacktickToShellExecFixer.php +149 -0
  248. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/EregToPregFixer.php +193 -0
  249. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/MbStrFunctionsFixer.php +180 -0
  250. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/ModernizeStrposFixer.php +338 -0
  251. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoAliasFunctionsFixer.php +337 -0
  252. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoAliasLanguageConstructCallFixer.php +59 -0
  253. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/NoMixedEchoPrintFixer.php +142 -0
  254. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/PowToExponentiationFixer.php +219 -0
  255. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/RandomApiMigrationFixer.php +153 -0
  256. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Alias/SetTypeToCastFixer.php +240 -0
  257. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/ArraySyntaxFixer.php +138 -0
  258. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoMultilineWhitespaceAroundDoubleArrowFixer.php +80 -0
  259. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoTrailingCommaInSinglelineArrayFixer.php +52 -0
  260. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoWhitespaceBeforeCommaInArrayFixer.php +153 -0
  261. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NormalizeIndexBraceFixer.php +57 -0
  262. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/ReturnToYieldFromFixer.php +105 -0
  263. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/TrimArraySpacesFixer.php +97 -0
  264. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/WhitespaceAfterCommaInArrayFixer.php +150 -0
  265. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/YieldFromArrayToYieldsFixer.php +189 -0
  266. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AttributeNotation/AttributeEmptyParenthesesFixer.php +136 -0
  267. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AttributeNotation/GeneralAttributeRemoveFixer.php +142 -0
  268. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/AttributeNotation/OrderedAttributesFixer.php +274 -0
  269. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/BracesFixer.php +268 -0
  270. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/BracesPositionFixer.php +449 -0
  271. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/CurlyBracesPositionFixer.php +126 -0
  272. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/EncodingFixer.php +80 -0
  273. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NoMultipleStatementsPerLineFixer.php +111 -0
  274. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NoTrailingCommaInSinglelineFixer.php +162 -0
  275. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NonPrintableCharacterFixer.php +191 -0
  276. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/NumericLiteralSeparatorFixer.php +232 -0
  277. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/OctalNotationFixer.php +64 -0
  278. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/PsrAutoloadingFixer.php +291 -0
  279. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/SingleLineEmptyBodyFixer.php +83 -0
  280. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/ClassReferenceNameCasingFixer.php +168 -0
  281. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/ConstantCaseFixer.php +130 -0
  282. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/IntegerLiteralCaseFixer.php +62 -0
  283. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/LowercaseKeywordsFixer.php +67 -0
  284. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/LowercaseStaticReferenceFixer.php +107 -0
  285. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/MagicConstantCasingFixer.php +92 -0
  286. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/MagicMethodCasingFixer.php +202 -0
  287. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeFunctionCasingFixer.php +89 -0
  288. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeFunctionTypeDeclarationCasingFixer.php +58 -0
  289. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeTypeDeclarationCasingFixer.php +151 -0
  290. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/CastSpacesFixer.php +131 -0
  291. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/LowercaseCastFixer.php +66 -0
  292. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/ModernizeTypesCastingFixer.php +164 -0
  293. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/NoShortBoolCastFixer.php +88 -0
  294. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/NoUnsetCastFixer.php +88 -0
  295. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/CastNotation/ShortScalarCastFixer.php +71 -0
  296. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php +605 -0
  297. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ClassDefinitionFixer.php +572 -0
  298. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalClassFixer.php +67 -0
  299. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalInternalClassFixer.php +374 -0
  300. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/FinalPublicMethodForAbstractClassFixer.php +160 -0
  301. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoBlankLinesAfterClassOpeningFixer.php +93 -0
  302. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoNullPropertyInitializationFixer.php +141 -0
  303. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoPhp4ConstructorFixer.php +408 -0
  304. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/NoUnneededFinalMethodFixer.php +215 -0
  305. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedClassElementsFixer.php +610 -0
  306. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedInterfacesFixer.php +272 -0
  307. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedTraitsFixer.php +226 -0
  308. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/OrderedTypesFixer.php +453 -0
  309. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/PhpdocReadonlyClassCommentToKeywordFixer.php +129 -0
  310. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/ProtectedToPrivateFixer.php +168 -0
  311. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SelfAccessorFixer.php +200 -0
  312. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SelfStaticAccessorFixer.php +224 -0
  313. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SingleClassElementPerStatementFixer.php +241 -0
  314. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/SingleTraitInsertPerStatementFixer.php +116 -0
  315. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassNotation/VisibilityRequiredFixer.php +214 -0
  316. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ClassUsage/DateTimeImmutableFixer.php +146 -0
  317. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/CommentToPhpdocFixer.php +230 -0
  318. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/HeaderCommentFixer.php +543 -0
  319. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/MultilineCommentOpeningClosingFixer.php +89 -0
  320. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/NoEmptyCommentFixer.php +162 -0
  321. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/NoTrailingWhitespaceInCommentFixer.php +75 -0
  322. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/SingleLineCommentSpacingFixer.php +110 -0
  323. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Comment/SingleLineCommentStyleFixer.php +178 -0
  324. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConfigurableFixerInterface.php +50 -0
  325. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConfigurableFixerTrait.php +124 -0
  326. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ConstantNotation/NativeConstantInvocationFixer.php +307 -0
  327. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/ControlStructureBracesFixer.php +256 -0
  328. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/ControlStructureContinuationPositionFixer.php +157 -0
  329. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/ElseifFixer.php +98 -0
  330. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/EmptyLoopBodyFixer.php +139 -0
  331. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/EmptyLoopConditionFixer.php +202 -0
  332. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/IncludeFixer.php +153 -0
  333. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoAlternativeSyntaxFixer.php +244 -0
  334. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoBreakCommentFixer.php +366 -0
  335. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoSuperfluousElseifFixer.php +100 -0
  336. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoTrailingCommaInListCallFixer.php +51 -0
  337. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededBracesFixer.php +182 -0
  338. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededControlParenthesesFixer.php +758 -0
  339. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededCurlyBracesFixer.php +106 -0
  340. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUselessElseFixer.php +120 -0
  341. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SimplifiedIfReturnFixer.php +138 -0
  342. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchCaseSemicolonToColonFixer.php +87 -0
  343. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchCaseSpaceFixer.php +85 -0
  344. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/SwitchContinueToBreakFixer.php +240 -0
  345. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/TrailingCommaInMultilineFixer.php +237 -0
  346. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/YodaStyleFixer.php +758 -0
  347. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DeprecatedFixerInterface.php +28 -0
  348. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationArrayAssignmentFixer.php +114 -0
  349. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationBracesFixer.php +132 -0
  350. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationIndentationFixer.php +199 -0
  351. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/DoctrineAnnotation/DoctrineAnnotationSpacesFixer.php +320 -0
  352. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ExperimentalFixerInterface.php +20 -0
  353. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FixerInterface.php +79 -0
  354. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/CombineNestedDirnameFixer.php +224 -0
  355. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/DateTimeCreateFromFormatCallFixer.php +164 -0
  356. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FopenFlagOrderFixer.php +123 -0
  357. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FopenFlagsFixer.php +120 -0
  358. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FunctionDeclarationFixer.php +263 -0
  359. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FunctionTypehintSpaceFixer.php +60 -0
  360. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/ImplodeCallFixer.php +139 -0
  361. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/LambdaNotUsedImportFixer.php +350 -0
  362. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/MethodArgumentSpaceFixer.php +510 -0
  363. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php +420 -0
  364. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoSpacesAfterFunctionNameFixer.php +176 -0
  365. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoTrailingCommaInSinglelineFunctionCallFixer.php +59 -0
  366. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoUnreachableDefaultArgumentValueFixer.php +197 -0
  367. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoUselessSprintfFixer.php +109 -0
  368. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NullableTypeDeclarationForDefaultNullValueFixer.php +247 -0
  369. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/PhpdocToParamTypeFixer.php +244 -0
  370. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/PhpdocToPropertyTypeFixer.php +296 -0
  371. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/PhpdocToReturnTypeFixer.php +249 -0
  372. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/RegularCallableCallFixer.php +256 -0
  373. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/ReturnTypeDeclarationFixer.php +132 -0
  374. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/SingleLineThrowFixer.php +159 -0
  375. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/StaticLambdaFixer.php +130 -0
  376. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/UseArrowFunctionsFixer.php +181 -0
  377. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/VoidReturnFixer.php +256 -0
  378. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/FullyQualifiedStrictTypesFixer.php +987 -0
  379. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/GlobalNamespaceImportFixer.php +726 -0
  380. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/GroupImportFixer.php +369 -0
  381. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoLeadingImportSlashFixer.php +90 -0
  382. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoUnneededImportAliasFixer.php +88 -0
  383. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoUnusedImportsFixer.php +455 -0
  384. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/OrderedImportsFixer.php +626 -0
  385. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/SingleImportPerStatementFixer.php +274 -0
  386. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/SingleLineAfterImportsFixer.php +152 -0
  387. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Indentation.php +92 -0
  388. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/InternalFixerInterface.php +20 -0
  389. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ClassKeywordFixer.php +100 -0
  390. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ClassKeywordRemoveFixer.php +234 -0
  391. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/CombineConsecutiveIssetsFixer.php +163 -0
  392. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/CombineConsecutiveUnsetsFixer.php +179 -0
  393. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DeclareEqualNormalizeFixer.php +137 -0
  394. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DeclareParenthesesFixer.php +56 -0
  395. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/DirConstantFixer.php +129 -0
  396. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ErrorSuppressionFixer.php +186 -0
  397. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ExplicitIndirectVariableFixer.php +82 -0
  398. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/FunctionToConstantFixer.php +311 -0
  399. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/GetClassToClassKeywordFixer.php +158 -0
  400. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/IsNullFixer.php +169 -0
  401. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php +220 -0
  402. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/NullableTypeDeclarationFixer.php +348 -0
  403. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/SingleSpaceAfterConstructFixer.php +209 -0
  404. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/SingleSpaceAroundConstructFixer.php +516 -0
  405. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ListNotation/ListSyntaxFixer.php +133 -0
  406. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/BlankLineAfterNamespaceFixer.php +127 -0
  407. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/BlankLinesBeforeNamespaceFixer.php +242 -0
  408. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/CleanNamespaceFixer.php +108 -0
  409. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/NoBlankLinesBeforeNamespaceFixer.php +76 -0
  410. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/NoLeadingNamespaceWhitespaceFixer.php +95 -0
  411. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/SingleBlankLineBeforeNamespaceFixer.php +75 -0
  412. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Naming/NoHomoglyphNamesFixer.php +230 -0
  413. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/AssignNullCoalescingToCoalesceEqualFixer.php +71 -0
  414. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/BinaryOperatorSpacesFixer.php +961 -0
  415. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/ConcatSpaceFixer.php +160 -0
  416. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/IncrementStyleFixer.php +179 -0
  417. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/LogicalOperatorsFixer.php +67 -0
  418. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/LongToShorthandOperatorFixer.php +140 -0
  419. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NewWithBracesFixer.php +103 -0
  420. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NewWithParenthesesFixer.php +216 -0
  421. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NoSpaceAroundDoubleColonFixer.php +73 -0
  422. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NoUselessConcatOperatorFixer.php +375 -0
  423. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NoUselessNullsafeOperatorFixer.php +73 -0
  424. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NotOperatorWithSpaceFixer.php +75 -0
  425. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NotOperatorWithSuccessorSpaceFixer.php +68 -0
  426. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/ObjectOperatorWithoutWhitespaceFixer.php +62 -0
  427. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/OperatorLinebreakFixer.php +292 -0
  428. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/StandardizeIncrementFixer.php +122 -0
  429. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/StandardizeNotEqualsFixer.php +60 -0
  430. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryOperatorSpacesFixer.php +131 -0
  431. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryToElvisOperatorFixer.php +217 -0
  432. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryToNullCoalescingFixer.php +224 -0
  433. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/UnaryOperatorSpacesFixer.php +118 -0
  434. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/BlankLineAfterOpeningTagFixer.php +92 -0
  435. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/EchoTagSyntaxFixer.php +273 -0
  436. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/FullOpeningTagFixer.php +123 -0
  437. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/LinebreakAfterOpeningTagFixer.php +68 -0
  438. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpTag/NoClosingTagFixer.php +59 -0
  439. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitAssertNewNamesFixer.php +107 -0
  440. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitAttributesFixer.php +620 -0
  441. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitConstructFixer.php +210 -0
  442. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderMethodOrderFixer.php +288 -0
  443. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderNameFixer.php +199 -0
  444. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderReturnTypeFixer.php +120 -0
  445. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDataProviderStaticFixer.php +156 -0
  446. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php +590 -0
  447. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitDedicateAssertInternalTypeFixer.php +204 -0
  448. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitExpectationFixer.php +289 -0
  449. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitFqcnAnnotationFixer.php +86 -0
  450. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitInternalClassFixer.php +117 -0
  451. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMethodCasingFixer.php +238 -0
  452. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMockFixer.php +135 -0
  453. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitMockShortWillReturnFixer.php +123 -0
  454. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitNamespacedFixer.php +235 -0
  455. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitNoExpectationAnnotationFixer.php +278 -0
  456. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitSetUpTearDownVisibilityFixer.php +111 -0
  457. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitSizeClassFixer.php +107 -0
  458. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitStrictFixer.php +154 -0
  459. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTargetVersion.php +57 -0
  460. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestAnnotationFixer.php +416 -0
  461. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixer.php +564 -0
  462. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/PhpUnit/PhpUnitTestClassRequiresCoversFixer.php +88 -0
  463. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/AlignMultilineCommentFixer.php +178 -0
  464. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/GeneralPhpdocAnnotationRemoveFixer.php +177 -0
  465. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/GeneralPhpdocTagRenameFixer.php +213 -0
  466. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoBlankLinesAfterPhpdocFixer.php +110 -0
  467. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoEmptyPhpdocFixer.php +84 -0
  468. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoSuperfluousPhpdocTagsFixer.php +756 -0
  469. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAddMissingParamAnnotationFixer.php +289 -0
  470. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAlignFixer.php +506 -0
  471. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAnnotationWithoutDotFixer.php +123 -0
  472. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocArrayTypeFixer.php +92 -0
  473. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocIndentFixer.php +141 -0
  474. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocInlineTagNormalizerFixer.php +121 -0
  475. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocLineSpanFixer.php +173 -0
  476. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocListTypeFixer.php +70 -0
  477. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoAccessFixer.php +71 -0
  478. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoAliasTagFixer.php +137 -0
  479. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoEmptyReturnFixer.php +117 -0
  480. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoPackageFixer.php +70 -0
  481. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoUselessInheritdocFixer.php +151 -0
  482. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocOrderByValueFixer.php +225 -0
  483. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocOrderFixer.php +223 -0
  484. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocParamOrderFixer.php +273 -0
  485. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocReturnSelfReferenceFixer.php +234 -0
  486. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocScalarFixer.php +139 -0
  487. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSeparationFixer.php +333 -0
  488. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSingleLineVarSpacingFixer.php +89 -0
  489. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSummaryFixer.php +99 -0
  490. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTagCasingFixer.php +109 -0
  491. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTagTypeFixer.php +214 -0
  492. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocToCommentFixer.php +185 -0
  493. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTrimConsecutiveBlankLineSeparationFixer.php +191 -0
  494. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTrimFixer.php +115 -0
  495. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTypesFixer.php +173 -0
  496. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTypesOrderFixer.php +218 -0
  497. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocVarAnnotationCorrectOrderFixer.php +81 -0
  498. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocVarWithoutNameFixer.php +150 -0
  499. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/NoUselessReturnFixer.php +103 -0
  500. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/ReturnAssignmentFixer.php +527 -0
  501. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/ReturnNotation/SimplifiedNullReturnFixer.php +171 -0
  502. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/MultilineWhitespaceBeforeSemicolonsFixer.php +244 -0
  503. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/NoEmptyStatementFixer.php +186 -0
  504. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/NoSinglelineWhitespaceBeforeSemicolonsFixer.php +66 -0
  505. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/SemicolonAfterInstructionFixer.php +64 -0
  506. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Semicolon/SpaceAfterSemicolonFixer.php +148 -0
  507. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/DeclareStrictTypesFixer.php +132 -0
  508. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/StrictComparisonFixer.php +80 -0
  509. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/StrictParamFixer.php +168 -0
  510. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/EscapeImplicitBackslashesFixer.php +153 -0
  511. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/ExplicitStringVariableFixer.php +166 -0
  512. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/HeredocClosingMarkerFixer.php +205 -0
  513. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/HeredocToNowdocFixer.php +107 -0
  514. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/MultilineStringToHeredocFixer.php +166 -0
  515. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/NoBinaryStringFixer.php +75 -0
  516. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/NoTrailingWhitespaceInStringFixer.php +100 -0
  517. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/SimpleToComplexStringVariableFixer.php +96 -0
  518. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/SingleQuoteFixer.php +122 -0
  519. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/StringImplicitBackslashesFixer.php +193 -0
  520. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/StringLengthToEmptyFixer.php +322 -0
  521. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/StringLineEndingFixer.php +76 -0
  522. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/ArrayIndentationFixer.php +197 -0
  523. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/BlankLineBeforeStatementFixer.php +379 -0
  524. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/BlankLineBetweenImportGroupsFixer.php +180 -0
  525. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/CompactNullableTypeDeclarationFixer.php +72 -0
  526. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/CompactNullableTypehintFixer.php +63 -0
  527. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/HeredocIndentationFixer.php +180 -0
  528. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/IndentationTypeFixer.php +139 -0
  529. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/LineEndingFixer.php +85 -0
  530. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/MethodChainingIndentationFixer.php +229 -0
  531. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoExtraBlankLinesFixer.php +496 -0
  532. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoSpacesAroundOffsetFixer.php +112 -0
  533. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoSpacesInsideParenthesisFixer.php +75 -0
  534. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoTrailingWhitespaceFixer.php +104 -0
  535. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoWhitespaceInBlankLineFixer.php +89 -0
  536. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/SingleBlankLineAtEofFixer.php +64 -0
  537. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/SpacesInsideParenthesesFixer.php +223 -0
  538. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/StatementIndentationFixer.php +836 -0
  539. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/TypeDeclarationSpacesFixer.php +254 -0
  540. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/TypesSpacesFixer.php +173 -0
  541. package/vendor/friendsofphp/php-cs-fixer/src/Fixer/WhitespacesAwareFixerInterface.php +25 -0
  542. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AliasedFixerOption.php +75 -0
  543. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AliasedFixerOptionBuilder.php +78 -0
  544. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/AllowedValueSubset.php +65 -0
  545. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/DeprecatedFixerOption.php +74 -0
  546. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/DeprecatedFixerOptionInterface.php +20 -0
  547. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolver.php +152 -0
  548. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolverInterface.php +30 -0
  549. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOption.php +146 -0
  550. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionBuilder.php +126 -0
  551. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionInterface.php +43 -0
  552. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/FixerOptionSorter.php +37 -0
  553. package/vendor/friendsofphp/php-cs-fixer/src/FixerConfiguration/InvalidOptionsForEnvException.php +24 -0
  554. package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/CodeSample.php +49 -0
  555. package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/CodeSampleInterface.php +28 -0
  556. package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FileSpecificCodeSample.php +56 -0
  557. package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FileSpecificCodeSampleInterface.php +25 -0
  558. package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FixerDefinition.php +76 -0
  559. package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/FixerDefinitionInterface.php +37 -0
  560. package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificCodeSample.php +54 -0
  561. package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificCodeSampleInterface.php +23 -0
  562. package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecification.php +76 -0
  563. package/vendor/friendsofphp/php-cs-fixer/src/FixerDefinition/VersionSpecificationInterface.php +23 -0
  564. package/vendor/friendsofphp/php-cs-fixer/src/FixerFactory.php +248 -0
  565. package/vendor/friendsofphp/php-cs-fixer/src/FixerNameValidator.php +32 -0
  566. package/vendor/friendsofphp/php-cs-fixer/src/Hasher.php +38 -0
  567. package/vendor/friendsofphp/php-cs-fixer/src/Indicator/PhpUnitTestCaseIndicator.php +90 -0
  568. package/vendor/friendsofphp/php-cs-fixer/src/Linter/CachingLinter.php +56 -0
  569. package/vendor/friendsofphp/php-cs-fixer/src/Linter/Linter.php +49 -0
  570. package/vendor/friendsofphp/php-cs-fixer/src/Linter/LinterInterface.php +35 -0
  571. package/vendor/friendsofphp/php-cs-fixer/src/Linter/LintingException.php +24 -0
  572. package/vendor/friendsofphp/php-cs-fixer/src/Linter/LintingResultInterface.php +26 -0
  573. package/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLinter.php +149 -0
  574. package/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLinterProcessBuilder.php +46 -0
  575. package/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLintingResult.php +86 -0
  576. package/vendor/friendsofphp/php-cs-fixer/src/Linter/TokenizerLinter.php +58 -0
  577. package/vendor/friendsofphp/php-cs-fixer/src/Linter/TokenizerLintingResult.php +48 -0
  578. package/vendor/friendsofphp/php-cs-fixer/src/Linter/UnavailableLinterException.php +26 -0
  579. package/vendor/friendsofphp/php-cs-fixer/src/ParallelAwareConfigInterface.php +29 -0
  580. package/vendor/friendsofphp/php-cs-fixer/src/PharChecker.php +38 -0
  581. package/vendor/friendsofphp/php-cs-fixer/src/PharCheckerInterface.php +26 -0
  582. package/vendor/friendsofphp/php-cs-fixer/src/Preg.php +215 -0
  583. package/vendor/friendsofphp/php-cs-fixer/src/PregException.php +24 -0
  584. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/AbstractMigrationSetDescription.php +38 -0
  585. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/AbstractRuleSetDescription.php +35 -0
  586. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/DeprecatedRuleSetDescriptionInterface.php +28 -0
  587. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSet.php +159 -0
  588. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSetDescriptionInterface.php +34 -0
  589. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSetInterface.php +49 -0
  590. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSets.php +72 -0
  591. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/DoctrineAnnotationSet.php +42 -0
  592. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS1x0RiskySet.php +44 -0
  593. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS1x0Set.php +44 -0
  594. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS2x0RiskySet.php +44 -0
  595. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCS2x0Set.php +112 -0
  596. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCSRiskySet.php +40 -0
  597. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERCSSet.php +40 -0
  598. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERRiskySet.php +52 -0
  599. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PERSet.php +47 -0
  600. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP54MigrationSet.php +30 -0
  601. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP56MigrationRiskySet.php +30 -0
  602. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP70MigrationRiskySet.php +39 -0
  603. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP70MigrationSet.php +31 -0
  604. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP71MigrationRiskySet.php +31 -0
  605. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP71MigrationSet.php +32 -0
  606. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP73MigrationSet.php +34 -0
  607. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP74MigrationRiskySet.php +33 -0
  608. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP74MigrationSet.php +33 -0
  609. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP80MigrationRiskySet.php +40 -0
  610. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP80MigrationSet.php +32 -0
  611. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP81MigrationSet.php +31 -0
  612. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP82MigrationRiskySet.php +31 -0
  613. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP82MigrationSet.php +31 -0
  614. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP83MigrationSet.php +30 -0
  615. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHP84MigrationSet.php +31 -0
  616. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit100MigrationRiskySet.php +31 -0
  617. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit30MigrationRiskySet.php +33 -0
  618. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit32MigrationRiskySet.php +34 -0
  619. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit35MigrationRiskySet.php +34 -0
  620. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit43MigrationRiskySet.php +34 -0
  621. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit48MigrationRiskySet.php +34 -0
  622. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit50MigrationRiskySet.php +34 -0
  623. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit52MigrationRiskySet.php +34 -0
  624. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit54MigrationRiskySet.php +34 -0
  625. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit55MigrationRiskySet.php +34 -0
  626. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit56MigrationRiskySet.php +37 -0
  627. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit57MigrationRiskySet.php +34 -0
  628. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit60MigrationRiskySet.php +34 -0
  629. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit75MigrationRiskySet.php +34 -0
  630. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit84MigrationRiskySet.php +35 -0
  631. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PHPUnit91MigrationRiskySet.php +31 -0
  632. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR12RiskySet.php +36 -0
  633. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR12Set.php +123 -0
  634. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR1Set.php +36 -0
  635. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PSR2Set.php +104 -0
  636. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PhpCsFixerRiskySet.php +67 -0
  637. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/PhpCsFixerSet.php +134 -0
  638. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/SymfonyRiskySet.php +78 -0
  639. package/vendor/friendsofphp/php-cs-fixer/src/RuleSet/Sets/SymfonySet.php +241 -0
  640. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Event/AnalysisStarted.php +54 -0
  641. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Event/FileProcessed.php +75 -0
  642. package/vendor/friendsofphp/php-cs-fixer/src/Runner/FileCachingLintingFileIterator.php +76 -0
  643. package/vendor/friendsofphp/php-cs-fixer/src/Runner/FileFilterIterator.php +108 -0
  644. package/vendor/friendsofphp/php-cs-fixer/src/Runner/LintingFileIterator.php +66 -0
  645. package/vendor/friendsofphp/php-cs-fixer/src/Runner/LintingResultAwareFileIteratorInterface.php +29 -0
  646. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelAction.php +35 -0
  647. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelConfig.php +67 -0
  648. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelConfigFactory.php +61 -0
  649. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ParallelisationException.php +30 -0
  650. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/Process.php +189 -0
  651. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ProcessFactory.php +111 -0
  652. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ProcessIdentifier.php +55 -0
  653. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/ProcessPool.php +99 -0
  654. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Parallel/WorkerException.php +66 -0
  655. package/vendor/friendsofphp/php-cs-fixer/src/Runner/Runner.php +587 -0
  656. package/vendor/friendsofphp/php-cs-fixer/src/Runner/RunnerConfig.php +64 -0
  657. package/vendor/friendsofphp/php-cs-fixer/src/StdinFileInfo.php +173 -0
  658. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/AbstractTransformer.php +40 -0
  659. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/AbstractTypeTransformer.php +89 -0
  660. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/AlternativeSyntaxAnalyzer.php +121 -0
  661. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/AbstractControlCaseStructuresAnalysis.php +51 -0
  662. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/ArgumentAnalysis.php +81 -0
  663. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/AttributeAnalysis.php +76 -0
  664. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/CaseAnalysis.php +45 -0
  665. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/DataProviderAnalysis.php +68 -0
  666. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/DefaultAnalysis.php +43 -0
  667. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/EnumAnalysis.php +46 -0
  668. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/MatchAnalysis.php +37 -0
  669. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/NamespaceAnalysis.php +98 -0
  670. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/NamespaceUseAnalysis.php +189 -0
  671. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/StartEndTokenAwareAnalysis.php +33 -0
  672. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/SwitchAnalysis.php +54 -0
  673. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/Analysis/TypeAnalysis.php +116 -0
  674. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ArgumentsAnalyzer.php +161 -0
  675. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/AttributeAnalyzer.php +211 -0
  676. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/BlocksAnalyzer.php +59 -0
  677. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ClassyAnalyzer.php +87 -0
  678. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/CommentsAnalyzer.php +370 -0
  679. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ControlCaseStructuresAnalyzer.php +312 -0
  680. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/DataProviderAnalyzer.php +115 -0
  681. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/FullyQualifiedNameAnalyzer.php +103 -0
  682. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/FunctionsAnalyzer.php +281 -0
  683. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/GotoLabelAnalyzer.php +40 -0
  684. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/NamespaceUsesAnalyzer.php +216 -0
  685. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/NamespacesAnalyzer.php +116 -0
  686. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/RangeAnalyzer.php +90 -0
  687. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/ReferenceAnalyzer.php +49 -0
  688. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/SwitchAnalyzer.php +71 -0
  689. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Analyzer/WhitespacesAnalyzer.php +52 -0
  690. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/CT.php +112 -0
  691. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Processor/ImportProcessor.php +103 -0
  692. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Token.php +541 -0
  693. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Tokens.php +1584 -0
  694. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/TokensAnalyzer.php +894 -0
  695. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ArrayTypehintTransformer.php +54 -0
  696. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/AttributeTransformer.php +67 -0
  697. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/BraceClassInstantiationTransformer.php +80 -0
  698. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/BraceTransformer.php +349 -0
  699. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ClassConstantTransformer.php +57 -0
  700. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ConstructorPromotionTransformer.php +71 -0
  701. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/DisjunctiveNormalFormTypeParenthesisTransformer.php +65 -0
  702. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/FirstClassCallableTransformer.php +49 -0
  703. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ImportTransformer.php +72 -0
  704. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NameQualifiedTransformer.php +67 -0
  705. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NamedArgumentTransformer.php +73 -0
  706. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NamespaceOperatorTransformer.php +53 -0
  707. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/NullableTypeTransformer.php +83 -0
  708. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/ReturnRefTransformer.php +47 -0
  709. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/SquareBraceTransformer.php +187 -0
  710. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeAlternationTransformer.php +57 -0
  711. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeColonTransformer.php +83 -0
  712. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/TypeIntersectionTransformer.php +55 -0
  713. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/UseTransformer.php +102 -0
  714. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformer/WhitespacyCommentTransformer.php +64 -0
  715. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/TransformerInterface.php +68 -0
  716. package/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Transformers.php +109 -0
  717. package/vendor/friendsofphp/php-cs-fixer/src/ToolInfo.php +120 -0
  718. package/vendor/friendsofphp/php-cs-fixer/src/ToolInfoInterface.php +38 -0
  719. package/vendor/friendsofphp/php-cs-fixer/src/Utils.php +250 -0
  720. package/vendor/friendsofphp/php-cs-fixer/src/WhitespacesFixerConfig.php +63 -0
  721. package/vendor/friendsofphp/php-cs-fixer/src/WordMatcher.php +55 -0
  722. package/vendor/psr/container/LICENSE +21 -0
  723. package/vendor/psr/container/README.md +13 -0
  724. package/vendor/psr/container/composer.json +27 -0
  725. package/vendor/psr/container/src/ContainerExceptionInterface.php +12 -0
  726. package/vendor/psr/container/src/ContainerInterface.php +36 -0
  727. package/vendor/psr/container/src/NotFoundExceptionInterface.php +10 -0
  728. package/vendor/psr/event-dispatcher/.editorconfig +15 -0
  729. package/vendor/psr/event-dispatcher/LICENSE +21 -0
  730. package/vendor/psr/event-dispatcher/README.md +6 -0
  731. package/vendor/psr/event-dispatcher/composer.json +26 -0
  732. package/vendor/psr/event-dispatcher/src/EventDispatcherInterface.php +21 -0
  733. package/vendor/psr/event-dispatcher/src/ListenerProviderInterface.php +19 -0
  734. package/vendor/psr/event-dispatcher/src/StoppableEventInterface.php +26 -0
  735. package/vendor/psr/log/LICENSE +19 -0
  736. package/vendor/psr/log/README.md +58 -0
  737. package/vendor/psr/log/composer.json +26 -0
  738. package/vendor/psr/log/src/AbstractLogger.php +15 -0
  739. package/vendor/psr/log/src/InvalidArgumentException.php +7 -0
  740. package/vendor/psr/log/src/LogLevel.php +18 -0
  741. package/vendor/psr/log/src/LoggerAwareInterface.php +14 -0
  742. package/vendor/psr/log/src/LoggerAwareTrait.php +22 -0
  743. package/vendor/psr/log/src/LoggerInterface.php +98 -0
  744. package/vendor/psr/log/src/LoggerTrait.php +98 -0
  745. package/vendor/psr/log/src/NullLogger.php +26 -0
  746. package/vendor/react/cache/CHANGELOG.md +96 -0
  747. package/vendor/react/cache/LICENSE +21 -0
  748. package/vendor/react/cache/README.md +367 -0
  749. package/vendor/react/cache/composer.json +45 -0
  750. package/vendor/react/cache/src/ArrayCache.php +181 -0
  751. package/vendor/react/cache/src/CacheInterface.php +194 -0
  752. package/vendor/react/child-process/CHANGELOG.md +176 -0
  753. package/vendor/react/child-process/LICENSE +21 -0
  754. package/vendor/react/child-process/README.md +619 -0
  755. package/vendor/react/child-process/composer.json +49 -0
  756. package/vendor/react/child-process/src/Process.php +585 -0
  757. package/vendor/react/dns/CHANGELOG.md +452 -0
  758. package/vendor/react/dns/LICENSE +21 -0
  759. package/vendor/react/dns/README.md +453 -0
  760. package/vendor/react/dns/composer.json +49 -0
  761. package/vendor/react/dns/src/BadServerException.php +7 -0
  762. package/vendor/react/dns/src/Config/Config.php +137 -0
  763. package/vendor/react/dns/src/Config/HostsFile.php +153 -0
  764. package/vendor/react/dns/src/Model/Message.php +230 -0
  765. package/vendor/react/dns/src/Model/Record.php +153 -0
  766. package/vendor/react/dns/src/Protocol/BinaryDumper.php +199 -0
  767. package/vendor/react/dns/src/Protocol/Parser.php +356 -0
  768. package/vendor/react/dns/src/Query/CachingExecutor.php +88 -0
  769. package/vendor/react/dns/src/Query/CancellationException.php +7 -0
  770. package/vendor/react/dns/src/Query/CoopExecutor.php +91 -0
  771. package/vendor/react/dns/src/Query/ExecutorInterface.php +43 -0
  772. package/vendor/react/dns/src/Query/FallbackExecutor.php +49 -0
  773. package/vendor/react/dns/src/Query/HostsFileExecutor.php +89 -0
  774. package/vendor/react/dns/src/Query/Query.php +69 -0
  775. package/vendor/react/dns/src/Query/RetryExecutor.php +85 -0
  776. package/vendor/react/dns/src/Query/SelectiveTransportExecutor.php +85 -0
  777. package/vendor/react/dns/src/Query/TcpTransportExecutor.php +382 -0
  778. package/vendor/react/dns/src/Query/TimeoutException.php +7 -0
  779. package/vendor/react/dns/src/Query/TimeoutExecutor.php +78 -0
  780. package/vendor/react/dns/src/Query/UdpTransportExecutor.php +221 -0
  781. package/vendor/react/dns/src/RecordNotFoundException.php +7 -0
  782. package/vendor/react/dns/src/Resolver/Factory.php +226 -0
  783. package/vendor/react/dns/src/Resolver/Resolver.php +147 -0
  784. package/vendor/react/dns/src/Resolver/ResolverInterface.php +94 -0
  785. package/vendor/react/event-loop/CHANGELOG.md +468 -0
  786. package/vendor/react/event-loop/LICENSE +21 -0
  787. package/vendor/react/event-loop/README.md +930 -0
  788. package/vendor/react/event-loop/composer.json +47 -0
  789. package/vendor/react/event-loop/src/ExtEvLoop.php +253 -0
  790. package/vendor/react/event-loop/src/ExtEventLoop.php +275 -0
  791. package/vendor/react/event-loop/src/ExtLibevLoop.php +201 -0
  792. package/vendor/react/event-loop/src/ExtLibeventLoop.php +285 -0
  793. package/vendor/react/event-loop/src/ExtUvLoop.php +342 -0
  794. package/vendor/react/event-loop/src/Factory.php +75 -0
  795. package/vendor/react/event-loop/src/Loop.php +266 -0
  796. package/vendor/react/event-loop/src/LoopInterface.php +472 -0
  797. package/vendor/react/event-loop/src/SignalsHandler.php +63 -0
  798. package/vendor/react/event-loop/src/StreamSelectLoop.php +330 -0
  799. package/vendor/react/event-loop/src/Tick/FutureTickQueue.php +60 -0
  800. package/vendor/react/event-loop/src/Timer/Timer.php +55 -0
  801. package/vendor/react/event-loop/src/Timer/Timers.php +113 -0
  802. package/vendor/react/event-loop/src/TimerInterface.php +27 -0
  803. package/vendor/react/promise/CHANGELOG.md +156 -0
  804. package/vendor/react/promise/LICENSE +24 -0
  805. package/vendor/react/promise/README.md +722 -0
  806. package/vendor/react/promise/composer.json +57 -0
  807. package/vendor/react/promise/src/Deferred.php +52 -0
  808. package/vendor/react/promise/src/Exception/CompositeException.php +32 -0
  809. package/vendor/react/promise/src/Exception/LengthException.php +7 -0
  810. package/vendor/react/promise/src/Internal/CancellationQueue.php +64 -0
  811. package/vendor/react/promise/src/Internal/FulfilledPromise.php +89 -0
  812. package/vendor/react/promise/src/Internal/RejectedPromise.php +128 -0
  813. package/vendor/react/promise/src/Promise.php +303 -0
  814. package/vendor/react/promise/src/PromiseInterface.php +152 -0
  815. package/vendor/react/promise/src/functions.php +345 -0
  816. package/vendor/react/promise/src/functions_include.php +5 -0
  817. package/vendor/react/socket/CHANGELOG.md +785 -0
  818. package/vendor/react/socket/LICENSE +21 -0
  819. package/vendor/react/socket/README.md +1564 -0
  820. package/vendor/react/socket/composer.json +52 -0
  821. package/vendor/react/socket/src/Connection.php +183 -0
  822. package/vendor/react/socket/src/ConnectionInterface.php +119 -0
  823. package/vendor/react/socket/src/Connector.php +236 -0
  824. package/vendor/react/socket/src/ConnectorInterface.php +59 -0
  825. package/vendor/react/socket/src/DnsConnector.php +117 -0
  826. package/vendor/react/socket/src/FdServer.php +222 -0
  827. package/vendor/react/socket/src/FixedUriConnector.php +41 -0
  828. package/vendor/react/socket/src/HappyEyeBallsConnectionBuilder.php +334 -0
  829. package/vendor/react/socket/src/HappyEyeBallsConnector.php +80 -0
  830. package/vendor/react/socket/src/LimitingServer.php +203 -0
  831. package/vendor/react/socket/src/SecureConnector.php +132 -0
  832. package/vendor/react/socket/src/SecureServer.php +210 -0
  833. package/vendor/react/socket/src/Server.php +118 -0
  834. package/vendor/react/socket/src/ServerInterface.php +151 -0
  835. package/vendor/react/socket/src/SocketServer.php +215 -0
  836. package/vendor/react/socket/src/StreamEncryption.php +158 -0
  837. package/vendor/react/socket/src/TcpConnector.php +173 -0
  838. package/vendor/react/socket/src/TcpServer.php +262 -0
  839. package/vendor/react/socket/src/TimeoutConnector.php +79 -0
  840. package/vendor/react/socket/src/UnixConnector.php +58 -0
  841. package/vendor/react/socket/src/UnixServer.php +162 -0
  842. package/vendor/react/stream/CHANGELOG.md +460 -0
  843. package/vendor/react/stream/LICENSE +21 -0
  844. package/vendor/react/stream/README.md +1249 -0
  845. package/vendor/react/stream/composer.json +47 -0
  846. package/vendor/react/stream/src/CompositeStream.php +83 -0
  847. package/vendor/react/stream/src/DuplexResourceStream.php +240 -0
  848. package/vendor/react/stream/src/DuplexStreamInterface.php +39 -0
  849. package/vendor/react/stream/src/ReadableResourceStream.php +188 -0
  850. package/vendor/react/stream/src/ReadableStreamInterface.php +362 -0
  851. package/vendor/react/stream/src/ThroughStream.php +195 -0
  852. package/vendor/react/stream/src/Util.php +75 -0
  853. package/vendor/react/stream/src/WritableResourceStream.php +178 -0
  854. package/vendor/react/stream/src/WritableStreamInterface.php +347 -0
  855. package/vendor/sebastian/diff/ChangeLog.md +179 -0
  856. package/vendor/sebastian/diff/LICENSE +29 -0
  857. package/vendor/sebastian/diff/README.md +151 -0
  858. package/vendor/sebastian/diff/SECURITY.md +30 -0
  859. package/vendor/sebastian/diff/composer.json +51 -0
  860. package/vendor/sebastian/diff/src/Chunk.php +83 -0
  861. package/vendor/sebastian/diff/src/Diff.php +84 -0
  862. package/vendor/sebastian/diff/src/Differ.php +247 -0
  863. package/vendor/sebastian/diff/src/Exception/ConfigurationException.php +32 -0
  864. package/vendor/sebastian/diff/src/Exception/Exception.php +16 -0
  865. package/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php +14 -0
  866. package/vendor/sebastian/diff/src/Line.php +50 -0
  867. package/vendor/sebastian/diff/src/LongestCommonSubsequenceCalculator.php +18 -0
  868. package/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php +96 -0
  869. package/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php +54 -0
  870. package/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php +74 -0
  871. package/vendor/sebastian/diff/src/Output/DiffOutputBuilderInterface.php +19 -0
  872. package/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php +331 -0
  873. package/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php +261 -0
  874. package/vendor/sebastian/diff/src/Parser.php +116 -0
  875. package/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php +81 -0
  876. package/vendor/symfony/console/Application.php +1328 -0
  877. package/vendor/symfony/console/Attribute/Argument.php +110 -0
  878. package/vendor/symfony/console/Attribute/AsCommand.php +49 -0
  879. package/vendor/symfony/console/Attribute/Option.php +181 -0
  880. package/vendor/symfony/console/CHANGELOG.md +299 -0
  881. package/vendor/symfony/console/CI/GithubActionReporter.php +97 -0
  882. package/vendor/symfony/console/Color.php +133 -0
  883. package/vendor/symfony/console/Command/Command.php +700 -0
  884. package/vendor/symfony/console/Command/CompleteCommand.php +212 -0
  885. package/vendor/symfony/console/Command/DumpCompletionCommand.php +151 -0
  886. package/vendor/symfony/console/Command/HelpCommand.php +76 -0
  887. package/vendor/symfony/console/Command/InvokableCommand.php +157 -0
  888. package/vendor/symfony/console/Command/LazyCommand.php +206 -0
  889. package/vendor/symfony/console/Command/ListCommand.php +72 -0
  890. package/vendor/symfony/console/Command/LockableTrait.php +85 -0
  891. package/vendor/symfony/console/Command/SignalableCommandInterface.php +32 -0
  892. package/vendor/symfony/console/Command/TraceableCommand.php +365 -0
  893. package/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php +38 -0
  894. package/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php +52 -0
  895. package/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php +52 -0
  896. package/vendor/symfony/console/Completion/CompletionInput.php +248 -0
  897. package/vendor/symfony/console/Completion/CompletionSuggestions.php +97 -0
  898. package/vendor/symfony/console/Completion/Output/BashCompletionOutput.php +33 -0
  899. package/vendor/symfony/console/Completion/Output/CompletionOutputInterface.php +25 -0
  900. package/vendor/symfony/console/Completion/Output/FishCompletionOutput.php +36 -0
  901. package/vendor/symfony/console/Completion/Output/ZshCompletionOutput.php +36 -0
  902. package/vendor/symfony/console/Completion/Suggestion.php +41 -0
  903. package/vendor/symfony/console/ConsoleEvents.php +72 -0
  904. package/vendor/symfony/console/Cursor.php +204 -0
  905. package/vendor/symfony/console/DataCollector/CommandDataCollector.php +238 -0
  906. package/vendor/symfony/console/Debug/CliRequest.php +70 -0
  907. package/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php +155 -0
  908. package/vendor/symfony/console/Descriptor/ApplicationDescription.php +136 -0
  909. package/vendor/symfony/console/Descriptor/Descriptor.php +74 -0
  910. package/vendor/symfony/console/Descriptor/DescriptorInterface.php +24 -0
  911. package/vendor/symfony/console/Descriptor/JsonDescriptor.php +166 -0
  912. package/vendor/symfony/console/Descriptor/MarkdownDescriptor.php +173 -0
  913. package/vendor/symfony/console/Descriptor/ReStructuredTextDescriptor.php +273 -0
  914. package/vendor/symfony/console/Descriptor/TextDescriptor.php +317 -0
  915. package/vendor/symfony/console/Descriptor/XmlDescriptor.php +230 -0
  916. package/vendor/symfony/console/Event/ConsoleAlarmEvent.php +47 -0
  917. package/vendor/symfony/console/Event/ConsoleCommandEvent.php +54 -0
  918. package/vendor/symfony/console/Event/ConsoleErrorEvent.php +58 -0
  919. package/vendor/symfony/console/Event/ConsoleEvent.php +56 -0
  920. package/vendor/symfony/console/Event/ConsoleSignalEvent.php +56 -0
  921. package/vendor/symfony/console/Event/ConsoleTerminateEvent.php +50 -0
  922. package/vendor/symfony/console/EventListener/ErrorListener.php +89 -0
  923. package/vendor/symfony/console/Exception/CommandNotFoundException.php +43 -0
  924. package/vendor/symfony/console/Exception/ExceptionInterface.php +21 -0
  925. package/vendor/symfony/console/Exception/InvalidArgumentException.php +19 -0
  926. package/vendor/symfony/console/Exception/InvalidOptionException.php +21 -0
  927. package/vendor/symfony/console/Exception/LogicException.php +19 -0
  928. package/vendor/symfony/console/Exception/MissingInputException.php +21 -0
  929. package/vendor/symfony/console/Exception/NamespaceNotFoundException.php +21 -0
  930. package/vendor/symfony/console/Exception/RunCommandFailedException.php +29 -0
  931. package/vendor/symfony/console/Exception/RuntimeException.php +19 -0
  932. package/vendor/symfony/console/Formatter/NullOutputFormatter.php +51 -0
  933. package/vendor/symfony/console/Formatter/NullOutputFormatterStyle.php +48 -0
  934. package/vendor/symfony/console/Formatter/OutputFormatter.php +267 -0
  935. package/vendor/symfony/console/Formatter/OutputFormatterInterface.php +52 -0
  936. package/vendor/symfony/console/Formatter/OutputFormatterStyle.php +89 -0
  937. package/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php +50 -0
  938. package/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php +103 -0
  939. package/vendor/symfony/console/Formatter/WrappableOutputFormatterInterface.php +25 -0
  940. package/vendor/symfony/console/Helper/DebugFormatterHelper.php +98 -0
  941. package/vendor/symfony/console/Helper/DescriptorHelper.php +91 -0
  942. package/vendor/symfony/console/Helper/Dumper.php +53 -0
  943. package/vendor/symfony/console/Helper/FormatterHelper.php +81 -0
  944. package/vendor/symfony/console/Helper/Helper.php +161 -0
  945. package/vendor/symfony/console/Helper/HelperInterface.php +35 -0
  946. package/vendor/symfony/console/Helper/HelperSet.php +74 -0
  947. package/vendor/symfony/console/Helper/InputAwareHelper.php +30 -0
  948. package/vendor/symfony/console/Helper/OutputWrapper.php +76 -0
  949. package/vendor/symfony/console/Helper/ProcessHelper.php +137 -0
  950. package/vendor/symfony/console/Helper/ProgressBar.php +654 -0
  951. package/vendor/symfony/console/Helper/ProgressIndicator.php +242 -0
  952. package/vendor/symfony/console/Helper/QuestionHelper.php +589 -0
  953. package/vendor/symfony/console/Helper/SymfonyQuestionHelper.php +103 -0
  954. package/vendor/symfony/console/Helper/Table.php +934 -0
  955. package/vendor/symfony/console/Helper/TableCell.php +71 -0
  956. package/vendor/symfony/console/Helper/TableCellStyle.php +84 -0
  957. package/vendor/symfony/console/Helper/TableRows.php +28 -0
  958. package/vendor/symfony/console/Helper/TableSeparator.php +25 -0
  959. package/vendor/symfony/console/Helper/TableStyle.php +375 -0
  960. package/vendor/symfony/console/Helper/TreeHelper.php +111 -0
  961. package/vendor/symfony/console/Helper/TreeNode.php +105 -0
  962. package/vendor/symfony/console/Helper/TreeStyle.php +78 -0
  963. package/vendor/symfony/console/Input/ArgvInput.php +402 -0
  964. package/vendor/symfony/console/Input/ArrayInput.php +191 -0
  965. package/vendor/symfony/console/Input/Input.php +174 -0
  966. package/vendor/symfony/console/Input/InputArgument.php +160 -0
  967. package/vendor/symfony/console/Input/InputAwareInterface.php +26 -0
  968. package/vendor/symfony/console/Input/InputDefinition.php +402 -0
  969. package/vendor/symfony/console/Input/InputInterface.php +138 -0
  970. package/vendor/symfony/console/Input/InputOption.php +262 -0
  971. package/vendor/symfony/console/Input/StreamableInputInterface.php +37 -0
  972. package/vendor/symfony/console/Input/StringInput.php +85 -0
  973. package/vendor/symfony/console/LICENSE +19 -0
  974. package/vendor/symfony/console/Logger/ConsoleLogger.php +120 -0
  975. package/vendor/symfony/console/Messenger/RunCommandContext.php +25 -0
  976. package/vendor/symfony/console/Messenger/RunCommandMessage.php +36 -0
  977. package/vendor/symfony/console/Messenger/RunCommandMessageHandler.php +49 -0
  978. package/vendor/symfony/console/Output/AnsiColorMode.php +106 -0
  979. package/vendor/symfony/console/Output/BufferedOutput.php +40 -0
  980. package/vendor/symfony/console/Output/ConsoleOutput.php +153 -0
  981. package/vendor/symfony/console/Output/ConsoleOutputInterface.php +30 -0
  982. package/vendor/symfony/console/Output/ConsoleSectionOutput.php +237 -0
  983. package/vendor/symfony/console/Output/NullOutput.php +94 -0
  984. package/vendor/symfony/console/Output/Output.php +144 -0
  985. package/vendor/symfony/console/Output/OutputInterface.php +103 -0
  986. package/vendor/symfony/console/Output/StreamOutput.php +127 -0
  987. package/vendor/symfony/console/Output/TrimmedBufferOutput.php +58 -0
  988. package/vendor/symfony/console/Question/ChoiceQuestion.php +178 -0
  989. package/vendor/symfony/console/Question/ConfirmationQuestion.php +57 -0
  990. package/vendor/symfony/console/Question/Question.php +280 -0
  991. package/vendor/symfony/console/README.md +27 -0
  992. package/vendor/symfony/console/Resources/bin/hiddeninput.exe +0 -0
  993. package/vendor/symfony/console/Resources/completion.bash +94 -0
  994. package/vendor/symfony/console/Resources/completion.fish +25 -0
  995. package/vendor/symfony/console/Resources/completion.zsh +82 -0
  996. package/vendor/symfony/console/SignalRegistry/SignalMap.php +36 -0
  997. package/vendor/symfony/console/SignalRegistry/SignalRegistry.php +65 -0
  998. package/vendor/symfony/console/SingleCommandApplication.php +72 -0
  999. package/vendor/symfony/console/Style/OutputStyle.php +115 -0
  1000. package/vendor/symfony/console/Style/StyleInterface.php +110 -0
  1001. package/vendor/symfony/console/Style/SymfonyStyle.php +476 -0
  1002. package/vendor/symfony/console/Terminal.php +227 -0
  1003. package/vendor/symfony/console/Tester/ApplicationTester.php +83 -0
  1004. package/vendor/symfony/console/Tester/CommandCompletionTester.php +54 -0
  1005. package/vendor/symfony/console/Tester/CommandTester.php +74 -0
  1006. package/vendor/symfony/console/Tester/Constraint/CommandIsSuccessful.php +43 -0
  1007. package/vendor/symfony/console/Tester/TesterTrait.php +178 -0
  1008. package/vendor/symfony/console/composer.json +55 -0
  1009. package/vendor/symfony/deprecation-contracts/CHANGELOG.md +5 -0
  1010. package/vendor/symfony/deprecation-contracts/LICENSE +19 -0
  1011. package/vendor/symfony/deprecation-contracts/README.md +26 -0
  1012. package/vendor/symfony/deprecation-contracts/composer.json +35 -0
  1013. package/vendor/symfony/deprecation-contracts/function.php +27 -0
  1014. package/vendor/symfony/event-dispatcher/Attribute/AsEventListener.php +35 -0
  1015. package/vendor/symfony/event-dispatcher/CHANGELOG.md +96 -0
  1016. package/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php +355 -0
  1017. package/vendor/symfony/event-dispatcher/Debug/WrappedListener.php +143 -0
  1018. package/vendor/symfony/event-dispatcher/DependencyInjection/AddEventAliasesPass.php +38 -0
  1019. package/vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php +213 -0
  1020. package/vendor/symfony/event-dispatcher/EventDispatcher.php +256 -0
  1021. package/vendor/symfony/event-dispatcher/EventDispatcherInterface.php +66 -0
  1022. package/vendor/symfony/event-dispatcher/EventSubscriberInterface.php +49 -0
  1023. package/vendor/symfony/event-dispatcher/GenericEvent.php +155 -0
  1024. package/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php +65 -0
  1025. package/vendor/symfony/event-dispatcher/LICENSE +19 -0
  1026. package/vendor/symfony/event-dispatcher/README.md +15 -0
  1027. package/vendor/symfony/event-dispatcher/composer.json +47 -0
  1028. package/vendor/symfony/event-dispatcher-contracts/CHANGELOG.md +5 -0
  1029. package/vendor/symfony/event-dispatcher-contracts/Event.php +51 -0
  1030. package/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php +33 -0
  1031. package/vendor/symfony/event-dispatcher-contracts/LICENSE +19 -0
  1032. package/vendor/symfony/event-dispatcher-contracts/README.md +9 -0
  1033. package/vendor/symfony/event-dispatcher-contracts/composer.json +35 -0
  1034. package/vendor/symfony/filesystem/CHANGELOG.md +92 -0
  1035. package/vendor/symfony/filesystem/Exception/ExceptionInterface.php +21 -0
  1036. package/vendor/symfony/filesystem/Exception/FileNotFoundException.php +34 -0
  1037. package/vendor/symfony/filesystem/Exception/IOException.php +36 -0
  1038. package/vendor/symfony/filesystem/Exception/IOExceptionInterface.php +25 -0
  1039. package/vendor/symfony/filesystem/Exception/InvalidArgumentException.php +19 -0
  1040. package/vendor/symfony/filesystem/Exception/RuntimeException.php +19 -0
  1041. package/vendor/symfony/filesystem/Filesystem.php +773 -0
  1042. package/vendor/symfony/filesystem/LICENSE +19 -0
  1043. package/vendor/symfony/filesystem/Path.php +816 -0
  1044. package/vendor/symfony/filesystem/README.md +13 -0
  1045. package/vendor/symfony/filesystem/composer.json +33 -0
  1046. package/vendor/symfony/finder/CHANGELOG.md +103 -0
  1047. package/vendor/symfony/finder/Comparator/Comparator.php +62 -0
  1048. package/vendor/symfony/finder/Comparator/DateComparator.php +50 -0
  1049. package/vendor/symfony/finder/Comparator/NumberComparator.php +78 -0
  1050. package/vendor/symfony/finder/Exception/AccessDeniedException.php +19 -0
  1051. package/vendor/symfony/finder/Exception/DirectoryNotFoundException.php +19 -0
  1052. package/vendor/symfony/finder/Finder.php +852 -0
  1053. package/vendor/symfony/finder/Gitignore.php +91 -0
  1054. package/vendor/symfony/finder/Glob.php +109 -0
  1055. package/vendor/symfony/finder/Iterator/CustomFilterIterator.php +61 -0
  1056. package/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php +58 -0
  1057. package/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php +48 -0
  1058. package/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php +110 -0
  1059. package/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php +51 -0
  1060. package/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php +58 -0
  1061. package/vendor/symfony/finder/Iterator/FilenameFilterIterator.php +45 -0
  1062. package/vendor/symfony/finder/Iterator/LazyIterator.php +32 -0
  1063. package/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php +107 -0
  1064. package/vendor/symfony/finder/Iterator/PathFilterIterator.php +56 -0
  1065. package/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php +134 -0
  1066. package/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php +57 -0
  1067. package/vendor/symfony/finder/Iterator/SortableIterator.php +103 -0
  1068. package/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php +173 -0
  1069. package/vendor/symfony/finder/LICENSE +19 -0
  1070. package/vendor/symfony/finder/README.md +14 -0
  1071. package/vendor/symfony/finder/SplFileInfo.php +80 -0
  1072. package/vendor/symfony/finder/composer.json +31 -0
  1073. package/vendor/symfony/options-resolver/CHANGELOG.md +103 -0
  1074. package/vendor/symfony/options-resolver/Debug/OptionsResolverIntrospector.php +114 -0
  1075. package/vendor/symfony/options-resolver/Exception/AccessException.php +22 -0
  1076. package/vendor/symfony/options-resolver/Exception/ExceptionInterface.php +21 -0
  1077. package/vendor/symfony/options-resolver/Exception/InvalidArgumentException.php +21 -0
  1078. package/vendor/symfony/options-resolver/Exception/InvalidOptionsException.php +23 -0
  1079. package/vendor/symfony/options-resolver/Exception/MissingOptionsException.php +23 -0
  1080. package/vendor/symfony/options-resolver/Exception/NoConfigurationException.php +26 -0
  1081. package/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php +26 -0
  1082. package/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php +21 -0
  1083. package/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php +24 -0
  1084. package/vendor/symfony/options-resolver/LICENSE +19 -0
  1085. package/vendor/symfony/options-resolver/OptionConfigurator.php +160 -0
  1086. package/vendor/symfony/options-resolver/Options.php +22 -0
  1087. package/vendor/symfony/options-resolver/OptionsResolver.php +1396 -0
  1088. package/vendor/symfony/options-resolver/README.md +15 -0
  1089. package/vendor/symfony/options-resolver/composer.json +29 -0
  1090. package/vendor/symfony/polyfill-ctype/Ctype.php +232 -0
  1091. package/vendor/symfony/polyfill-ctype/LICENSE +19 -0
  1092. package/vendor/symfony/polyfill-ctype/README.md +12 -0
  1093. package/vendor/symfony/polyfill-ctype/bootstrap.php +50 -0
  1094. package/vendor/symfony/polyfill-ctype/bootstrap80.php +46 -0
  1095. package/vendor/symfony/polyfill-ctype/composer.json +38 -0
  1096. package/vendor/symfony/polyfill-intl-grapheme/Grapheme.php +247 -0
  1097. package/vendor/symfony/polyfill-intl-grapheme/LICENSE +19 -0
  1098. package/vendor/symfony/polyfill-intl-grapheme/README.md +31 -0
  1099. package/vendor/symfony/polyfill-intl-grapheme/bootstrap.php +58 -0
  1100. package/vendor/symfony/polyfill-intl-grapheme/bootstrap80.php +50 -0
  1101. package/vendor/symfony/polyfill-intl-grapheme/composer.json +35 -0
  1102. package/vendor/symfony/polyfill-intl-normalizer/LICENSE +19 -0
  1103. package/vendor/symfony/polyfill-intl-normalizer/Normalizer.php +310 -0
  1104. package/vendor/symfony/polyfill-intl-normalizer/README.md +14 -0
  1105. package/vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php +17 -0
  1106. package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/canonicalComposition.php +945 -0
  1107. package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/canonicalDecomposition.php +2065 -0
  1108. package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/combiningClass.php +876 -0
  1109. package/vendor/symfony/polyfill-intl-normalizer/Resources/unidata/compatibilityDecomposition.php +3695 -0
  1110. package/vendor/symfony/polyfill-intl-normalizer/bootstrap.php +23 -0
  1111. package/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php +19 -0
  1112. package/vendor/symfony/polyfill-intl-normalizer/composer.json +36 -0
  1113. package/vendor/symfony/polyfill-mbstring/LICENSE +19 -0
  1114. package/vendor/symfony/polyfill-mbstring/Mbstring.php +1045 -0
  1115. package/vendor/symfony/polyfill-mbstring/README.md +13 -0
  1116. package/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +119 -0
  1117. package/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1397 -0
  1118. package/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +5 -0
  1119. package/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +1489 -0
  1120. package/vendor/symfony/polyfill-mbstring/bootstrap.php +172 -0
  1121. package/vendor/symfony/polyfill-mbstring/bootstrap80.php +167 -0
  1122. package/vendor/symfony/polyfill-mbstring/composer.json +39 -0
  1123. package/vendor/symfony/polyfill-php80/LICENSE +19 -0
  1124. package/vendor/symfony/polyfill-php80/Php80.php +115 -0
  1125. package/vendor/symfony/polyfill-php80/PhpToken.php +106 -0
  1126. package/vendor/symfony/polyfill-php80/README.md +25 -0
  1127. package/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +31 -0
  1128. package/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +16 -0
  1129. package/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +20 -0
  1130. package/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +16 -0
  1131. package/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +16 -0
  1132. package/vendor/symfony/polyfill-php80/bootstrap.php +42 -0
  1133. package/vendor/symfony/polyfill-php80/composer.json +37 -0
  1134. package/vendor/symfony/polyfill-php81/LICENSE +19 -0
  1135. package/vendor/symfony/polyfill-php81/Php81.php +37 -0
  1136. package/vendor/symfony/polyfill-php81/README.md +18 -0
  1137. package/vendor/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php +51 -0
  1138. package/vendor/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php +20 -0
  1139. package/vendor/symfony/polyfill-php81/bootstrap.php +28 -0
  1140. package/vendor/symfony/polyfill-php81/composer.json +33 -0
  1141. package/vendor/symfony/process/CHANGELOG.md +134 -0
  1142. package/vendor/symfony/process/Exception/ExceptionInterface.php +21 -0
  1143. package/vendor/symfony/process/Exception/InvalidArgumentException.php +21 -0
  1144. package/vendor/symfony/process/Exception/LogicException.php +21 -0
  1145. package/vendor/symfony/process/Exception/ProcessFailedException.php +53 -0
  1146. package/vendor/symfony/process/Exception/ProcessSignaledException.php +38 -0
  1147. package/vendor/symfony/process/Exception/ProcessStartFailedException.php +43 -0
  1148. package/vendor/symfony/process/Exception/ProcessTimedOutException.php +60 -0
  1149. package/vendor/symfony/process/Exception/RunProcessFailedException.php +25 -0
  1150. package/vendor/symfony/process/Exception/RuntimeException.php +21 -0
  1151. package/vendor/symfony/process/ExecutableFinder.php +103 -0
  1152. package/vendor/symfony/process/InputStream.php +91 -0
  1153. package/vendor/symfony/process/LICENSE +19 -0
  1154. package/vendor/symfony/process/Messenger/RunProcessContext.php +33 -0
  1155. package/vendor/symfony/process/Messenger/RunProcessMessage.php +47 -0
  1156. package/vendor/symfony/process/Messenger/RunProcessMessageHandler.php +36 -0
  1157. package/vendor/symfony/process/PhpExecutableFinder.php +98 -0
  1158. package/vendor/symfony/process/PhpProcess.php +66 -0
  1159. package/vendor/symfony/process/PhpSubprocess.php +164 -0
  1160. package/vendor/symfony/process/Pipes/AbstractPipes.php +176 -0
  1161. package/vendor/symfony/process/Pipes/PipesInterface.php +61 -0
  1162. package/vendor/symfony/process/Pipes/UnixPipes.php +144 -0
  1163. package/vendor/symfony/process/Pipes/WindowsPipes.php +185 -0
  1164. package/vendor/symfony/process/Process.php +1662 -0
  1165. package/vendor/symfony/process/ProcessUtils.php +64 -0
  1166. package/vendor/symfony/process/README.md +13 -0
  1167. package/vendor/symfony/process/composer.json +28 -0
  1168. package/vendor/symfony/service-contracts/Attribute/Required.php +25 -0
  1169. package/vendor/symfony/service-contracts/Attribute/SubscribedService.php +47 -0
  1170. package/vendor/symfony/service-contracts/CHANGELOG.md +5 -0
  1171. package/vendor/symfony/service-contracts/LICENSE +19 -0
  1172. package/vendor/symfony/service-contracts/README.md +9 -0
  1173. package/vendor/symfony/service-contracts/ResetInterface.php +33 -0
  1174. package/vendor/symfony/service-contracts/ServiceCollectionInterface.php +26 -0
  1175. package/vendor/symfony/service-contracts/ServiceLocatorTrait.php +114 -0
  1176. package/vendor/symfony/service-contracts/ServiceMethodsSubscriberTrait.php +80 -0
  1177. package/vendor/symfony/service-contracts/ServiceProviderInterface.php +45 -0
  1178. package/vendor/symfony/service-contracts/ServiceSubscriberInterface.php +62 -0
  1179. package/vendor/symfony/service-contracts/ServiceSubscriberTrait.php +84 -0
  1180. package/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php +23 -0
  1181. package/vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php +97 -0
  1182. package/vendor/symfony/service-contracts/composer.json +42 -0
  1183. package/vendor/symfony/stopwatch/CHANGELOG.md +30 -0
  1184. package/vendor/symfony/stopwatch/LICENSE +19 -0
  1185. package/vendor/symfony/stopwatch/README.md +42 -0
  1186. package/vendor/symfony/stopwatch/Section.php +155 -0
  1187. package/vendor/symfony/stopwatch/Stopwatch.php +163 -0
  1188. package/vendor/symfony/stopwatch/StopwatchEvent.php +238 -0
  1189. package/vendor/symfony/stopwatch/StopwatchPeriod.php +73 -0
  1190. package/vendor/symfony/stopwatch/composer.json +29 -0
  1191. package/vendor/symfony/string/AbstractString.php +723 -0
  1192. package/vendor/symfony/string/AbstractUnicodeString.php +670 -0
  1193. package/vendor/symfony/string/ByteString.php +490 -0
  1194. package/vendor/symfony/string/CHANGELOG.md +56 -0
  1195. package/vendor/symfony/string/CodePointString.php +260 -0
  1196. package/vendor/symfony/string/Exception/ExceptionInterface.php +16 -0
  1197. package/vendor/symfony/string/Exception/InvalidArgumentException.php +16 -0
  1198. package/vendor/symfony/string/Exception/RuntimeException.php +16 -0
  1199. package/vendor/symfony/string/Inflector/EnglishInflector.php +589 -0
  1200. package/vendor/symfony/string/Inflector/FrenchInflector.php +151 -0
  1201. package/vendor/symfony/string/Inflector/InflectorInterface.php +33 -0
  1202. package/vendor/symfony/string/Inflector/SpanishInflector.php +126 -0
  1203. package/vendor/symfony/string/LICENSE +19 -0
  1204. package/vendor/symfony/string/LazyString.php +145 -0
  1205. package/vendor/symfony/string/README.md +14 -0
  1206. package/vendor/symfony/string/Resources/data/wcswidth_table_wide.php +1182 -0
  1207. package/vendor/symfony/string/Resources/data/wcswidth_table_zero.php +1466 -0
  1208. package/vendor/symfony/string/Resources/functions.php +38 -0
  1209. package/vendor/symfony/string/Slugger/AsciiSlugger.php +207 -0
  1210. package/vendor/symfony/string/Slugger/SluggerInterface.php +27 -0
  1211. package/vendor/symfony/string/TruncateMode.php +42 -0
  1212. package/vendor/symfony/string/UnicodeString.php +382 -0
  1213. package/vendor/symfony/string/composer.json +44 -0
  1214. package/bin-codeformat.sh +0 -35
  1215. /package/{LICENSE → LICENCE} +0 -0
@@ -0,0 +1,1564 @@
1
+ # Socket
2
+
3
+ [![CI status](https://github.com/reactphp/socket/workflows/CI/badge.svg)](https://github.com/reactphp/socket/actions)
4
+ [![installs on Packagist](https://img.shields.io/packagist/dt/react/socket?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/socket)
5
+
6
+ Async, streaming plaintext TCP/IP and secure TLS socket server and client
7
+ connections for [ReactPHP](https://reactphp.org/).
8
+
9
+ The socket library provides re-usable interfaces for a socket-layer
10
+ server and client based on the [`EventLoop`](https://github.com/reactphp/event-loop)
11
+ and [`Stream`](https://github.com/reactphp/stream) components.
12
+ Its server component allows you to build networking servers that accept incoming
13
+ connections from networking clients (such as an HTTP server).
14
+ Its client component allows you to build networking clients that establish
15
+ outgoing connections to networking servers (such as an HTTP or database client).
16
+ This library provides async, streaming means for all of this, so you can
17
+ handle multiple concurrent connections without blocking.
18
+
19
+ **Table of Contents**
20
+
21
+ * [Quickstart example](#quickstart-example)
22
+ * [Connection usage](#connection-usage)
23
+ * [ConnectionInterface](#connectioninterface)
24
+ * [getRemoteAddress()](#getremoteaddress)
25
+ * [getLocalAddress()](#getlocaladdress)
26
+ * [Server usage](#server-usage)
27
+ * [ServerInterface](#serverinterface)
28
+ * [connection event](#connection-event)
29
+ * [error event](#error-event)
30
+ * [getAddress()](#getaddress)
31
+ * [pause()](#pause)
32
+ * [resume()](#resume)
33
+ * [close()](#close)
34
+ * [SocketServer](#socketserver)
35
+ * [Advanced server usage](#advanced-server-usage)
36
+ * [TcpServer](#tcpserver)
37
+ * [SecureServer](#secureserver)
38
+ * [UnixServer](#unixserver)
39
+ * [LimitingServer](#limitingserver)
40
+ * [getConnections()](#getconnections)
41
+ * [Client usage](#client-usage)
42
+ * [ConnectorInterface](#connectorinterface)
43
+ * [connect()](#connect)
44
+ * [Connector](#connector)
45
+ * [Advanced client usage](#advanced-client-usage)
46
+ * [TcpConnector](#tcpconnector)
47
+ * [HappyEyeBallsConnector](#happyeyeballsconnector)
48
+ * [DnsConnector](#dnsconnector)
49
+ * [SecureConnector](#secureconnector)
50
+ * [TimeoutConnector](#timeoutconnector)
51
+ * [UnixConnector](#unixconnector)
52
+ * [FixUriConnector](#fixeduriconnector)
53
+ * [Install](#install)
54
+ * [Tests](#tests)
55
+ * [License](#license)
56
+
57
+ ## Quickstart example
58
+
59
+ Here is a server that closes the connection if you send it anything:
60
+
61
+ ```php
62
+ $socket = new React\Socket\SocketServer('127.0.0.1:8080');
63
+
64
+ $socket->on('connection', function (React\Socket\ConnectionInterface $connection) {
65
+ $connection->write("Hello " . $connection->getRemoteAddress() . "!\n");
66
+ $connection->write("Welcome to this amazing server!\n");
67
+ $connection->write("Here's a tip: don't say anything.\n");
68
+
69
+ $connection->on('data', function ($data) use ($connection) {
70
+ $connection->close();
71
+ });
72
+ });
73
+ ```
74
+
75
+ See also the [examples](examples).
76
+
77
+ Here's a client that outputs the output of said server and then attempts to
78
+ send it a string:
79
+
80
+ ```php
81
+ $connector = new React\Socket\Connector();
82
+
83
+ $connector->connect('127.0.0.1:8080')->then(function (React\Socket\ConnectionInterface $connection) {
84
+ $connection->pipe(new React\Stream\WritableResourceStream(STDOUT));
85
+ $connection->write("Hello World!\n");
86
+ }, function (Exception $e) {
87
+ echo 'Error: ' . $e->getMessage() . PHP_EOL;
88
+ });
89
+ ```
90
+
91
+ ## Connection usage
92
+
93
+ ### ConnectionInterface
94
+
95
+ The `ConnectionInterface` is used to represent any incoming and outgoing
96
+ connection, such as a normal TCP/IP connection.
97
+
98
+ An incoming or outgoing connection is a duplex stream (both readable and
99
+ writable) that implements React's
100
+ [`DuplexStreamInterface`](https://github.com/reactphp/stream#duplexstreaminterface).
101
+ It contains additional properties for the local and remote address (client IP)
102
+ where this connection has been established to/from.
103
+
104
+ Most commonly, instances implementing this `ConnectionInterface` are emitted
105
+ by all classes implementing the [`ServerInterface`](#serverinterface) and
106
+ used by all classes implementing the [`ConnectorInterface`](#connectorinterface).
107
+
108
+ Because the `ConnectionInterface` implements the underlying
109
+ [`DuplexStreamInterface`](https://github.com/reactphp/stream#duplexstreaminterface)
110
+ you can use any of its events and methods as usual:
111
+
112
+ ```php
113
+ $connection->on('data', function ($chunk) {
114
+ echo $chunk;
115
+ });
116
+
117
+ $connection->on('end', function () {
118
+ echo 'ended';
119
+ });
120
+
121
+ $connection->on('error', function (Exception $e) {
122
+ echo 'error: ' . $e->getMessage();
123
+ });
124
+
125
+ $connection->on('close', function () {
126
+ echo 'closed';
127
+ });
128
+
129
+ $connection->write($data);
130
+ $connection->end($data = null);
131
+ $connection->close();
132
+ // …
133
+ ```
134
+
135
+ For more details, see the
136
+ [`DuplexStreamInterface`](https://github.com/reactphp/stream#duplexstreaminterface).
137
+
138
+ #### getRemoteAddress()
139
+
140
+ The `getRemoteAddress(): ?string` method returns the full remote address
141
+ (URI) where this connection has been established with.
142
+
143
+ ```php
144
+ $address = $connection->getRemoteAddress();
145
+ echo 'Connection with ' . $address . PHP_EOL;
146
+ ```
147
+
148
+ If the remote address can not be determined or is unknown at this time (such as
149
+ after the connection has been closed), it MAY return a `NULL` value instead.
150
+
151
+ Otherwise, it will return the full address (URI) as a string value, such
152
+ as `tcp://127.0.0.1:8080`, `tcp://[::1]:80`, `tls://127.0.0.1:443`,
153
+ `unix://example.sock` or `unix:///path/to/example.sock`.
154
+ Note that individual URI components are application specific and depend
155
+ on the underlying transport protocol.
156
+
157
+ If this is a TCP/IP based connection and you only want the remote IP, you may
158
+ use something like this:
159
+
160
+ ```php
161
+ $address = $connection->getRemoteAddress();
162
+ $ip = trim(parse_url($address, PHP_URL_HOST), '[]');
163
+ echo 'Connection with ' . $ip . PHP_EOL;
164
+ ```
165
+
166
+ #### getLocalAddress()
167
+
168
+ The `getLocalAddress(): ?string` method returns the full local address
169
+ (URI) where this connection has been established with.
170
+
171
+ ```php
172
+ $address = $connection->getLocalAddress();
173
+ echo 'Connection with ' . $address . PHP_EOL;
174
+ ```
175
+
176
+ If the local address can not be determined or is unknown at this time (such as
177
+ after the connection has been closed), it MAY return a `NULL` value instead.
178
+
179
+ Otherwise, it will return the full address (URI) as a string value, such
180
+ as `tcp://127.0.0.1:8080`, `tcp://[::1]:80`, `tls://127.0.0.1:443`,
181
+ `unix://example.sock` or `unix:///path/to/example.sock`.
182
+ Note that individual URI components are application specific and depend
183
+ on the underlying transport protocol.
184
+
185
+ This method complements the [`getRemoteAddress()`](#getremoteaddress) method,
186
+ so they should not be confused.
187
+
188
+ If your `TcpServer` instance is listening on multiple interfaces (e.g. using
189
+ the address `0.0.0.0`), you can use this method to find out which interface
190
+ actually accepted this connection (such as a public or local interface).
191
+
192
+ If your system has multiple interfaces (e.g. a WAN and a LAN interface),
193
+ you can use this method to find out which interface was actually
194
+ used for this connection.
195
+
196
+ ## Server usage
197
+
198
+ ### ServerInterface
199
+
200
+ The `ServerInterface` is responsible for providing an interface for accepting
201
+ incoming streaming connections, such as a normal TCP/IP connection.
202
+
203
+ Most higher-level components (such as a HTTP server) accept an instance
204
+ implementing this interface to accept incoming streaming connections.
205
+ This is usually done via dependency injection, so it's fairly simple to actually
206
+ swap this implementation against any other implementation of this interface.
207
+ This means that you SHOULD typehint against this interface instead of a concrete
208
+ implementation of this interface.
209
+
210
+ Besides defining a few methods, this interface also implements the
211
+ [`EventEmitterInterface`](https://github.com/igorw/evenement)
212
+ which allows you to react to certain events.
213
+
214
+ #### connection event
215
+
216
+ The `connection` event will be emitted whenever a new connection has been
217
+ established, i.e. a new client connects to this server socket:
218
+
219
+ ```php
220
+ $socket->on('connection', function (React\Socket\ConnectionInterface $connection) {
221
+ echo 'new connection' . PHP_EOL;
222
+ });
223
+ ```
224
+
225
+ See also the [`ConnectionInterface`](#connectioninterface) for more details
226
+ about handling the incoming connection.
227
+
228
+ #### error event
229
+
230
+ The `error` event will be emitted whenever there's an error accepting a new
231
+ connection from a client.
232
+
233
+ ```php
234
+ $socket->on('error', function (Exception $e) {
235
+ echo 'error: ' . $e->getMessage() . PHP_EOL;
236
+ });
237
+ ```
238
+
239
+ Note that this is not a fatal error event, i.e. the server keeps listening for
240
+ new connections even after this event.
241
+
242
+ #### getAddress()
243
+
244
+ The `getAddress(): ?string` method can be used to
245
+ return the full address (URI) this server is currently listening on.
246
+
247
+ ```php
248
+ $address = $socket->getAddress();
249
+ echo 'Server listening on ' . $address . PHP_EOL;
250
+ ```
251
+
252
+ If the address can not be determined or is unknown at this time (such as
253
+ after the socket has been closed), it MAY return a `NULL` value instead.
254
+
255
+ Otherwise, it will return the full address (URI) as a string value, such
256
+ as `tcp://127.0.0.1:8080`, `tcp://[::1]:80`, `tls://127.0.0.1:443`
257
+ `unix://example.sock` or `unix:///path/to/example.sock`.
258
+ Note that individual URI components are application specific and depend
259
+ on the underlying transport protocol.
260
+
261
+ If this is a TCP/IP based server and you only want the local port, you may
262
+ use something like this:
263
+
264
+ ```php
265
+ $address = $socket->getAddress();
266
+ $port = parse_url($address, PHP_URL_PORT);
267
+ echo 'Server listening on port ' . $port . PHP_EOL;
268
+ ```
269
+
270
+ #### pause()
271
+
272
+ The `pause(): void` method can be used to
273
+ pause accepting new incoming connections.
274
+
275
+ Removes the socket resource from the EventLoop and thus stop accepting
276
+ new connections. Note that the listening socket stays active and is not
277
+ closed.
278
+
279
+ This means that new incoming connections will stay pending in the
280
+ operating system backlog until its configurable backlog is filled.
281
+ Once the backlog is filled, the operating system may reject further
282
+ incoming connections until the backlog is drained again by resuming
283
+ to accept new connections.
284
+
285
+ Once the server is paused, no futher `connection` events SHOULD
286
+ be emitted.
287
+
288
+ ```php
289
+ $socket->pause();
290
+
291
+ $socket->on('connection', assertShouldNeverCalled());
292
+ ```
293
+
294
+ This method is advisory-only, though generally not recommended, the
295
+ server MAY continue emitting `connection` events.
296
+
297
+ Unless otherwise noted, a successfully opened server SHOULD NOT start
298
+ in paused state.
299
+
300
+ You can continue processing events by calling `resume()` again.
301
+
302
+ Note that both methods can be called any number of times, in particular
303
+ calling `pause()` more than once SHOULD NOT have any effect.
304
+ Similarly, calling this after `close()` is a NO-OP.
305
+
306
+ #### resume()
307
+
308
+ The `resume(): void` method can be used to
309
+ resume accepting new incoming connections.
310
+
311
+ Re-attach the socket resource to the EventLoop after a previous `pause()`.
312
+
313
+ ```php
314
+ $socket->pause();
315
+
316
+ Loop::addTimer(1.0, function () use ($socket) {
317
+ $socket->resume();
318
+ });
319
+ ```
320
+
321
+ Note that both methods can be called any number of times, in particular
322
+ calling `resume()` without a prior `pause()` SHOULD NOT have any effect.
323
+ Similarly, calling this after `close()` is a NO-OP.
324
+
325
+ #### close()
326
+
327
+ The `close(): void` method can be used to
328
+ shut down this listening socket.
329
+
330
+ This will stop listening for new incoming connections on this socket.
331
+
332
+ ```php
333
+ echo 'Shutting down server socket' . PHP_EOL;
334
+ $socket->close();
335
+ ```
336
+
337
+ Calling this method more than once on the same instance is a NO-OP.
338
+
339
+ ### SocketServer
340
+
341
+ <a id="server"></a> <!-- legacy id -->
342
+
343
+ The `SocketServer` class is the main class in this package that implements the
344
+ [`ServerInterface`](#serverinterface) and allows you to accept incoming
345
+ streaming connections, such as plaintext TCP/IP or secure TLS connection streams.
346
+
347
+ In order to accept plaintext TCP/IP connections, you can simply pass a host
348
+ and port combination like this:
349
+
350
+ ```php
351
+ $socket = new React\Socket\SocketServer('127.0.0.1:8080');
352
+ ```
353
+
354
+ Listening on the localhost address `127.0.0.1` means it will not be reachable from
355
+ outside of this system.
356
+ In order to change the host the socket is listening on, you can provide an IP
357
+ address of an interface or use the special `0.0.0.0` address to listen on all
358
+ interfaces:
359
+
360
+ ```php
361
+ $socket = new React\Socket\SocketServer('0.0.0.0:8080');
362
+ ```
363
+
364
+ If you want to listen on an IPv6 address, you MUST enclose the host in square
365
+ brackets:
366
+
367
+ ```php
368
+ $socket = new React\Socket\SocketServer('[::1]:8080');
369
+ ```
370
+
371
+ In order to use a random port assignment, you can use the port `0`:
372
+
373
+ ```php
374
+ $socket = new React\Socket\SocketServer('127.0.0.1:0');
375
+ $address = $socket->getAddress();
376
+ ```
377
+
378
+ To listen on a Unix domain socket (UDS) path, you MUST prefix the URI with the
379
+ `unix://` scheme:
380
+
381
+ ```php
382
+ $socket = new React\Socket\SocketServer('unix:///tmp/server.sock');
383
+ ```
384
+
385
+ In order to listen on an existing file descriptor (FD) number, you MUST prefix
386
+ the URI with `php://fd/` like this:
387
+
388
+ ```php
389
+ $socket = new React\Socket\SocketServer('php://fd/3');
390
+ ```
391
+
392
+ If the given URI is invalid, does not contain a port, any other scheme or if it
393
+ contains a hostname, it will throw an `InvalidArgumentException`:
394
+
395
+ ```php
396
+ // throws InvalidArgumentException due to missing port
397
+ $socket = new React\Socket\SocketServer('127.0.0.1');
398
+ ```
399
+
400
+ If the given URI appears to be valid, but listening on it fails (such as if port
401
+ is already in use or port below 1024 may require root access etc.), it will
402
+ throw a `RuntimeException`:
403
+
404
+ ```php
405
+ $first = new React\Socket\SocketServer('127.0.0.1:8080');
406
+
407
+ // throws RuntimeException because port is already in use
408
+ $second = new React\Socket\SocketServer('127.0.0.1:8080');
409
+ ```
410
+
411
+ > Note that these error conditions may vary depending on your system and/or
412
+ configuration.
413
+ See the exception message and code for more details about the actual error
414
+ condition.
415
+
416
+ Optionally, you can specify [TCP socket context options](https://www.php.net/manual/en/context.socket.php)
417
+ for the underlying stream socket resource like this:
418
+
419
+ ```php
420
+ $socket = new React\Socket\SocketServer('[::1]:8080', array(
421
+ 'tcp' => array(
422
+ 'backlog' => 200,
423
+ 'so_reuseport' => true,
424
+ 'ipv6_v6only' => true
425
+ )
426
+ ));
427
+ ```
428
+
429
+ > Note that available [socket context options](https://www.php.net/manual/en/context.socket.php),
430
+ their defaults and effects of changing these may vary depending on your system
431
+ and/or PHP version.
432
+ Passing unknown context options has no effect.
433
+ The `backlog` context option defaults to `511` unless given explicitly.
434
+
435
+ You can start a secure TLS (formerly known as SSL) server by simply prepending
436
+ the `tls://` URI scheme.
437
+ Internally, it will wait for plaintext TCP/IP connections and then performs a
438
+ TLS handshake for each connection.
439
+ It thus requires valid [TLS context options](https://www.php.net/manual/en/context.ssl.php),
440
+ which in its most basic form may look something like this if you're using a
441
+ PEM encoded certificate file:
442
+
443
+ ```php
444
+ $socket = new React\Socket\SocketServer('tls://127.0.0.1:8080', array(
445
+ 'tls' => array(
446
+ 'local_cert' => 'server.pem'
447
+ )
448
+ ));
449
+ ```
450
+
451
+ > Note that the certificate file will not be loaded on instantiation but when an
452
+ incoming connection initializes its TLS context.
453
+ This implies that any invalid certificate file paths or contents will only cause
454
+ an `error` event at a later time.
455
+
456
+ If your private key is encrypted with a passphrase, you have to specify it
457
+ like this:
458
+
459
+ ```php
460
+ $socket = new React\Socket\SocketServer('tls://127.0.0.1:8000', array(
461
+ 'tls' => array(
462
+ 'local_cert' => 'server.pem',
463
+ 'passphrase' => 'secret'
464
+ )
465
+ ));
466
+ ```
467
+
468
+ By default, this server supports TLSv1.0+ and excludes support for legacy
469
+ SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you
470
+ want to negotiate with the remote side:
471
+
472
+ ```php
473
+ $socket = new React\Socket\SocketServer('tls://127.0.0.1:8000', array(
474
+ 'tls' => array(
475
+ 'local_cert' => 'server.pem',
476
+ 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_SERVER
477
+ )
478
+ ));
479
+ ```
480
+
481
+ > Note that available [TLS context options](https://www.php.net/manual/en/context.ssl.php),
482
+ their defaults and effects of changing these may vary depending on your system
483
+ and/or PHP version.
484
+ The outer context array allows you to also use `tcp` (and possibly more)
485
+ context options at the same time.
486
+ Passing unknown context options has no effect.
487
+ If you do not use the `tls://` scheme, then passing `tls` context options
488
+ has no effect.
489
+
490
+ Whenever a client connects, it will emit a `connection` event with a connection
491
+ instance implementing [`ConnectionInterface`](#connectioninterface):
492
+
493
+ ```php
494
+ $socket->on('connection', function (React\Socket\ConnectionInterface $connection) {
495
+ echo 'Plaintext connection from ' . $connection->getRemoteAddress() . PHP_EOL;
496
+
497
+ $connection->write('hello there!' . PHP_EOL);
498
+
499
+ });
500
+ ```
501
+
502
+ See also the [`ServerInterface`](#serverinterface) for more details.
503
+
504
+ This class takes an optional `LoopInterface|null $loop` parameter that can be used to
505
+ pass the event loop instance to use for this object. You can use a `null` value
506
+ here in order to use the [default loop](https://github.com/reactphp/event-loop#loop).
507
+ This value SHOULD NOT be given unless you're sure you want to explicitly use a
508
+ given event loop instance.
509
+
510
+ > Note that the `SocketServer` class is a concrete implementation for TCP/IP sockets.
511
+ If you want to typehint in your higher-level protocol implementation, you SHOULD
512
+ use the generic [`ServerInterface`](#serverinterface) instead.
513
+
514
+ > Changelog v1.9.0: This class has been added with an improved constructor signature
515
+ as a replacement for the previous `Server` class in order to avoid any ambiguities.
516
+ The previous name has been deprecated and should not be used anymore.
517
+
518
+ ### Advanced server usage
519
+
520
+ #### TcpServer
521
+
522
+ The `TcpServer` class implements the [`ServerInterface`](#serverinterface) and
523
+ is responsible for accepting plaintext TCP/IP connections.
524
+
525
+ ```php
526
+ $server = new React\Socket\TcpServer(8080);
527
+ ```
528
+
529
+ As above, the `$uri` parameter can consist of only a port, in which case the
530
+ server will default to listening on the localhost address `127.0.0.1`,
531
+ which means it will not be reachable from outside of this system.
532
+
533
+ In order to use a random port assignment, you can use the port `0`:
534
+
535
+ ```php
536
+ $server = new React\Socket\TcpServer(0);
537
+ $address = $server->getAddress();
538
+ ```
539
+
540
+ In order to change the host the socket is listening on, you can provide an IP
541
+ address through the first parameter provided to the constructor, optionally
542
+ preceded by the `tcp://` scheme:
543
+
544
+ ```php
545
+ $server = new React\Socket\TcpServer('192.168.0.1:8080');
546
+ ```
547
+
548
+ If you want to listen on an IPv6 address, you MUST enclose the host in square
549
+ brackets:
550
+
551
+ ```php
552
+ $server = new React\Socket\TcpServer('[::1]:8080');
553
+ ```
554
+
555
+ If the given URI is invalid, does not contain a port, any other scheme or if it
556
+ contains a hostname, it will throw an `InvalidArgumentException`:
557
+
558
+ ```php
559
+ // throws InvalidArgumentException due to missing port
560
+ $server = new React\Socket\TcpServer('127.0.0.1');
561
+ ```
562
+
563
+ If the given URI appears to be valid, but listening on it fails (such as if port
564
+ is already in use or port below 1024 may require root access etc.), it will
565
+ throw a `RuntimeException`:
566
+
567
+ ```php
568
+ $first = new React\Socket\TcpServer(8080);
569
+
570
+ // throws RuntimeException because port is already in use
571
+ $second = new React\Socket\TcpServer(8080);
572
+ ```
573
+
574
+ > Note that these error conditions may vary depending on your system and/or
575
+ configuration.
576
+ See the exception message and code for more details about the actual error
577
+ condition.
578
+
579
+ This class takes an optional `LoopInterface|null $loop` parameter that can be used to
580
+ pass the event loop instance to use for this object. You can use a `null` value
581
+ here in order to use the [default loop](https://github.com/reactphp/event-loop#loop).
582
+ This value SHOULD NOT be given unless you're sure you want to explicitly use a
583
+ given event loop instance.
584
+
585
+ Optionally, you can specify [socket context options](https://www.php.net/manual/en/context.socket.php)
586
+ for the underlying stream socket resource like this:
587
+
588
+ ```php
589
+ $server = new React\Socket\TcpServer('[::1]:8080', null, array(
590
+ 'backlog' => 200,
591
+ 'so_reuseport' => true,
592
+ 'ipv6_v6only' => true
593
+ ));
594
+ ```
595
+
596
+ > Note that available [socket context options](https://www.php.net/manual/en/context.socket.php),
597
+ their defaults and effects of changing these may vary depending on your system
598
+ and/or PHP version.
599
+ Passing unknown context options has no effect.
600
+ The `backlog` context option defaults to `511` unless given explicitly.
601
+
602
+ Whenever a client connects, it will emit a `connection` event with a connection
603
+ instance implementing [`ConnectionInterface`](#connectioninterface):
604
+
605
+ ```php
606
+ $server->on('connection', function (React\Socket\ConnectionInterface $connection) {
607
+ echo 'Plaintext connection from ' . $connection->getRemoteAddress() . PHP_EOL;
608
+
609
+ $connection->write('hello there!' . PHP_EOL);
610
+
611
+ });
612
+ ```
613
+
614
+ See also the [`ServerInterface`](#serverinterface) for more details.
615
+
616
+ #### SecureServer
617
+
618
+ The `SecureServer` class implements the [`ServerInterface`](#serverinterface)
619
+ and is responsible for providing a secure TLS (formerly known as SSL) server.
620
+
621
+ It does so by wrapping a [`TcpServer`](#tcpserver) instance which waits for plaintext
622
+ TCP/IP connections and then performs a TLS handshake for each connection.
623
+ It thus requires valid [TLS context options](https://www.php.net/manual/en/context.ssl.php),
624
+ which in its most basic form may look something like this if you're using a
625
+ PEM encoded certificate file:
626
+
627
+ ```php
628
+ $server = new React\Socket\TcpServer(8000);
629
+ $server = new React\Socket\SecureServer($server, null, array(
630
+ 'local_cert' => 'server.pem'
631
+ ));
632
+ ```
633
+
634
+ > Note that the certificate file will not be loaded on instantiation but when an
635
+ incoming connection initializes its TLS context.
636
+ This implies that any invalid certificate file paths or contents will only cause
637
+ an `error` event at a later time.
638
+
639
+ If your private key is encrypted with a passphrase, you have to specify it
640
+ like this:
641
+
642
+ ```php
643
+ $server = new React\Socket\TcpServer(8000);
644
+ $server = new React\Socket\SecureServer($server, null, array(
645
+ 'local_cert' => 'server.pem',
646
+ 'passphrase' => 'secret'
647
+ ));
648
+ ```
649
+
650
+ By default, this server supports TLSv1.0+ and excludes support for legacy
651
+ SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you
652
+ want to negotiate with the remote side:
653
+
654
+ ```php
655
+ $server = new React\Socket\TcpServer(8000);
656
+ $server = new React\Socket\SecureServer($server, null, array(
657
+ 'local_cert' => 'server.pem',
658
+ 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_SERVER
659
+ ));
660
+ ```
661
+
662
+ > Note that available [TLS context options](https://www.php.net/manual/en/context.ssl.php),
663
+ their defaults and effects of changing these may vary depending on your system
664
+ and/or PHP version.
665
+ Passing unknown context options has no effect.
666
+
667
+ Whenever a client completes the TLS handshake, it will emit a `connection` event
668
+ with a connection instance implementing [`ConnectionInterface`](#connectioninterface):
669
+
670
+ ```php
671
+ $server->on('connection', function (React\Socket\ConnectionInterface $connection) {
672
+ echo 'Secure connection from' . $connection->getRemoteAddress() . PHP_EOL;
673
+
674
+ $connection->write('hello there!' . PHP_EOL);
675
+
676
+ });
677
+ ```
678
+
679
+ Whenever a client fails to perform a successful TLS handshake, it will emit an
680
+ `error` event and then close the underlying TCP/IP connection:
681
+
682
+ ```php
683
+ $server->on('error', function (Exception $e) {
684
+ echo 'Error' . $e->getMessage() . PHP_EOL;
685
+ });
686
+ ```
687
+
688
+ See also the [`ServerInterface`](#serverinterface) for more details.
689
+
690
+ Note that the `SecureServer` class is a concrete implementation for TLS sockets.
691
+ If you want to typehint in your higher-level protocol implementation, you SHOULD
692
+ use the generic [`ServerInterface`](#serverinterface) instead.
693
+
694
+ This class takes an optional `LoopInterface|null $loop` parameter that can be used to
695
+ pass the event loop instance to use for this object. You can use a `null` value
696
+ here in order to use the [default loop](https://github.com/reactphp/event-loop#loop).
697
+ This value SHOULD NOT be given unless you're sure you want to explicitly use a
698
+ given event loop instance.
699
+
700
+ > Advanced usage: Despite allowing any `ServerInterface` as first parameter,
701
+ you SHOULD pass a `TcpServer` instance as first parameter, unless you
702
+ know what you're doing.
703
+ Internally, the `SecureServer` has to set the required TLS context options on
704
+ the underlying stream resources.
705
+ These resources are not exposed through any of the interfaces defined in this
706
+ package, but only through the internal `Connection` class.
707
+ The `TcpServer` class is guaranteed to emit connections that implement
708
+ the `ConnectionInterface` and uses the internal `Connection` class in order to
709
+ expose these underlying resources.
710
+ If you use a custom `ServerInterface` and its `connection` event does not
711
+ meet this requirement, the `SecureServer` will emit an `error` event and
712
+ then close the underlying connection.
713
+
714
+ #### UnixServer
715
+
716
+ The `UnixServer` class implements the [`ServerInterface`](#serverinterface) and
717
+ is responsible for accepting connections on Unix domain sockets (UDS).
718
+
719
+ ```php
720
+ $server = new React\Socket\UnixServer('/tmp/server.sock');
721
+ ```
722
+
723
+ As above, the `$uri` parameter can consist of only a socket path or socket path
724
+ prefixed by the `unix://` scheme.
725
+
726
+ If the given URI appears to be valid, but listening on it fails (such as if the
727
+ socket is already in use or the file not accessible etc.), it will throw a
728
+ `RuntimeException`:
729
+
730
+ ```php
731
+ $first = new React\Socket\UnixServer('/tmp/same.sock');
732
+
733
+ // throws RuntimeException because socket is already in use
734
+ $second = new React\Socket\UnixServer('/tmp/same.sock');
735
+ ```
736
+
737
+ > Note that these error conditions may vary depending on your system and/or
738
+ configuration.
739
+ In particular, Zend PHP does only report "Unknown error" when the UDS path
740
+ already exists and can not be bound. You may want to check `is_file()` on the
741
+ given UDS path to report a more user-friendly error message in this case.
742
+ See the exception message and code for more details about the actual error
743
+ condition.
744
+
745
+ This class takes an optional `LoopInterface|null $loop` parameter that can be used to
746
+ pass the event loop instance to use for this object. You can use a `null` value
747
+ here in order to use the [default loop](https://github.com/reactphp/event-loop#loop).
748
+ This value SHOULD NOT be given unless you're sure you want to explicitly use a
749
+ given event loop instance.
750
+
751
+ Whenever a client connects, it will emit a `connection` event with a connection
752
+ instance implementing [`ConnectionInterface`](#connectioninterface):
753
+
754
+ ```php
755
+ $server->on('connection', function (React\Socket\ConnectionInterface $connection) {
756
+ echo 'New connection' . PHP_EOL;
757
+
758
+ $connection->write('hello there!' . PHP_EOL);
759
+
760
+ });
761
+ ```
762
+
763
+ See also the [`ServerInterface`](#serverinterface) for more details.
764
+
765
+ #### LimitingServer
766
+
767
+ The `LimitingServer` decorator wraps a given `ServerInterface` and is responsible
768
+ for limiting and keeping track of open connections to this server instance.
769
+
770
+ Whenever the underlying server emits a `connection` event, it will check its
771
+ limits and then either
772
+ - keep track of this connection by adding it to the list of
773
+ open connections and then forward the `connection` event
774
+ - or reject (close) the connection when its limits are exceeded and will
775
+ forward an `error` event instead.
776
+
777
+ Whenever a connection closes, it will remove this connection from the list of
778
+ open connections.
779
+
780
+ ```php
781
+ $server = new React\Socket\LimitingServer($server, 100);
782
+ $server->on('connection', function (React\Socket\ConnectionInterface $connection) {
783
+ $connection->write('hello there!' . PHP_EOL);
784
+
785
+ });
786
+ ```
787
+
788
+ See also the [second example](examples) for more details.
789
+
790
+ You have to pass a maximum number of open connections to ensure
791
+ the server will automatically reject (close) connections once this limit
792
+ is exceeded. In this case, it will emit an `error` event to inform about
793
+ this and no `connection` event will be emitted.
794
+
795
+ ```php
796
+ $server = new React\Socket\LimitingServer($server, 100);
797
+ $server->on('connection', function (React\Socket\ConnectionInterface $connection) {
798
+ $connection->write('hello there!' . PHP_EOL);
799
+
800
+ });
801
+ ```
802
+
803
+ You MAY pass a `null` limit in order to put no limit on the number of
804
+ open connections and keep accepting new connection until you run out of
805
+ operating system resources (such as open file handles). This may be
806
+ useful if you do not want to take care of applying a limit but still want
807
+ to use the `getConnections()` method.
808
+
809
+ You can optionally configure the server to pause accepting new
810
+ connections once the connection limit is reached. In this case, it will
811
+ pause the underlying server and no longer process any new connections at
812
+ all, thus also no longer closing any excessive connections.
813
+ The underlying operating system is responsible for keeping a backlog of
814
+ pending connections until its limit is reached, at which point it will
815
+ start rejecting further connections.
816
+ Once the server is below the connection limit, it will continue consuming
817
+ connections from the backlog and will process any outstanding data on
818
+ each connection.
819
+ This mode may be useful for some protocols that are designed to wait for
820
+ a response message (such as HTTP), but may be less useful for other
821
+ protocols that demand immediate responses (such as a "welcome" message in
822
+ an interactive chat).
823
+
824
+ ```php
825
+ $server = new React\Socket\LimitingServer($server, 100, true);
826
+ $server->on('connection', function (React\Socket\ConnectionInterface $connection) {
827
+ $connection->write('hello there!' . PHP_EOL);
828
+
829
+ });
830
+ ```
831
+
832
+ ##### getConnections()
833
+
834
+ The `getConnections(): ConnectionInterface[]` method can be used to
835
+ return an array with all currently active connections.
836
+
837
+ ```php
838
+ foreach ($server->getConnection() as $connection) {
839
+ $connection->write('Hi!');
840
+ }
841
+ ```
842
+
843
+ ## Client usage
844
+
845
+ ### ConnectorInterface
846
+
847
+ The `ConnectorInterface` is responsible for providing an interface for
848
+ establishing streaming connections, such as a normal TCP/IP connection.
849
+
850
+ This is the main interface defined in this package and it is used throughout
851
+ React's vast ecosystem.
852
+
853
+ Most higher-level components (such as HTTP, database or other networking
854
+ service clients) accept an instance implementing this interface to create their
855
+ TCP/IP connection to the underlying networking service.
856
+ This is usually done via dependency injection, so it's fairly simple to actually
857
+ swap this implementation against any other implementation of this interface.
858
+
859
+ The interface only offers a single method:
860
+
861
+ #### connect()
862
+
863
+ The `connect(string $uri): PromiseInterface<ConnectionInterface>` method can be used to
864
+ create a streaming connection to the given remote address.
865
+
866
+ It returns a [Promise](https://github.com/reactphp/promise) which either
867
+ fulfills with a stream implementing [`ConnectionInterface`](#connectioninterface)
868
+ on success or rejects with an `Exception` if the connection is not successful:
869
+
870
+ ```php
871
+ $connector->connect('google.com:443')->then(
872
+ function (React\Socket\ConnectionInterface $connection) {
873
+ // connection successfully established
874
+ },
875
+ function (Exception $error) {
876
+ // failed to connect due to $error
877
+ }
878
+ );
879
+ ```
880
+
881
+ See also [`ConnectionInterface`](#connectioninterface) for more details.
882
+
883
+ The returned Promise MUST be implemented in such a way that it can be
884
+ cancelled when it is still pending. Cancelling a pending promise MUST
885
+ reject its value with an `Exception`. It SHOULD clean up any underlying
886
+ resources and references as applicable:
887
+
888
+ ```php
889
+ $promise = $connector->connect($uri);
890
+
891
+ $promise->cancel();
892
+ ```
893
+
894
+ ### Connector
895
+
896
+ The `Connector` class is the main class in this package that implements the
897
+ [`ConnectorInterface`](#connectorinterface) and allows you to create streaming connections.
898
+
899
+ You can use this connector to create any kind of streaming connections, such
900
+ as plaintext TCP/IP, secure TLS or local Unix connection streams.
901
+
902
+ It binds to the main event loop and can be used like this:
903
+
904
+ ```php
905
+ $connector = new React\Socket\Connector();
906
+
907
+ $connector->connect($uri)->then(function (React\Socket\ConnectionInterface $connection) {
908
+ $connection->write('...');
909
+ $connection->end();
910
+ }, function (Exception $e) {
911
+ echo 'Error: ' . $e->getMessage() . PHP_EOL;
912
+ });
913
+ ```
914
+
915
+ In order to create a plaintext TCP/IP connection, you can simply pass a host
916
+ and port combination like this:
917
+
918
+ ```php
919
+ $connector->connect('www.google.com:80')->then(function (React\Socket\ConnectionInterface $connection) {
920
+ $connection->write('...');
921
+ $connection->end();
922
+ });
923
+ ```
924
+
925
+ > If you do no specify a URI scheme in the destination URI, it will assume
926
+ `tcp://` as a default and establish a plaintext TCP/IP connection.
927
+ Note that TCP/IP connections require a host and port part in the destination
928
+ URI like above, all other URI components are optional.
929
+
930
+ In order to create a secure TLS connection, you can use the `tls://` URI scheme
931
+ like this:
932
+
933
+ ```php
934
+ $connector->connect('tls://www.google.com:443')->then(function (React\Socket\ConnectionInterface $connection) {
935
+ $connection->write('...');
936
+ $connection->end();
937
+ });
938
+ ```
939
+
940
+ In order to create a local Unix domain socket connection, you can use the
941
+ `unix://` URI scheme like this:
942
+
943
+ ```php
944
+ $connector->connect('unix:///tmp/demo.sock')->then(function (React\Socket\ConnectionInterface $connection) {
945
+ $connection->write('...');
946
+ $connection->end();
947
+ });
948
+ ```
949
+
950
+ > The [`getRemoteAddress()`](#getremoteaddress) method will return the target
951
+ Unix domain socket (UDS) path as given to the `connect()` method, including
952
+ the `unix://` scheme, for example `unix:///tmp/demo.sock`.
953
+ The [`getLocalAddress()`](#getlocaladdress) method will most likely return a
954
+ `null` value as this value is not applicable to UDS connections here.
955
+
956
+ Under the hood, the `Connector` is implemented as a *higher-level facade*
957
+ for the lower-level connectors implemented in this package. This means it
958
+ also shares all of their features and implementation details.
959
+ If you want to typehint in your higher-level protocol implementation, you SHOULD
960
+ use the generic [`ConnectorInterface`](#connectorinterface) instead.
961
+
962
+ As of `v1.4.0`, the `Connector` class defaults to using the
963
+ [happy eyeballs algorithm](https://en.wikipedia.org/wiki/Happy_Eyeballs) to
964
+ automatically connect over IPv4 or IPv6 when a hostname is given.
965
+ This automatically attempts to connect using both IPv4 and IPv6 at the same time
966
+ (preferring IPv6), thus avoiding the usual problems faced by users with imperfect
967
+ IPv6 connections or setups.
968
+ If you want to revert to the old behavior of only doing an IPv4 lookup and
969
+ only attempt a single IPv4 connection, you can set up the `Connector` like this:
970
+
971
+ ```php
972
+ $connector = new React\Socket\Connector(array(
973
+ 'happy_eyeballs' => false
974
+ ));
975
+ ```
976
+
977
+ Similarly, you can also affect the default DNS behavior as follows.
978
+ The `Connector` class will try to detect your system DNS settings (and uses
979
+ Google's public DNS server `8.8.8.8` as a fallback if unable to determine your
980
+ system settings) to resolve all public hostnames into underlying IP addresses by
981
+ default.
982
+ If you explicitly want to use a custom DNS server (such as a local DNS relay or
983
+ a company wide DNS server), you can set up the `Connector` like this:
984
+
985
+ ```php
986
+ $connector = new React\Socket\Connector(array(
987
+ 'dns' => '127.0.1.1'
988
+ ));
989
+
990
+ $connector->connect('localhost:80')->then(function (React\Socket\ConnectionInterface $connection) {
991
+ $connection->write('...');
992
+ $connection->end();
993
+ });
994
+ ```
995
+
996
+ If you do not want to use a DNS resolver at all and want to connect to IP
997
+ addresses only, you can also set up your `Connector` like this:
998
+
999
+ ```php
1000
+ $connector = new React\Socket\Connector(array(
1001
+ 'dns' => false
1002
+ ));
1003
+
1004
+ $connector->connect('127.0.0.1:80')->then(function (React\Socket\ConnectionInterface $connection) {
1005
+ $connection->write('...');
1006
+ $connection->end();
1007
+ });
1008
+ ```
1009
+
1010
+ Advanced: If you need a custom DNS `React\Dns\Resolver\ResolverInterface` instance, you
1011
+ can also set up your `Connector` like this:
1012
+
1013
+ ```php
1014
+ $dnsResolverFactory = new React\Dns\Resolver\Factory();
1015
+ $resolver = $dnsResolverFactory->createCached('127.0.1.1');
1016
+
1017
+ $connector = new React\Socket\Connector(array(
1018
+ 'dns' => $resolver
1019
+ ));
1020
+
1021
+ $connector->connect('localhost:80')->then(function (React\Socket\ConnectionInterface $connection) {
1022
+ $connection->write('...');
1023
+ $connection->end();
1024
+ });
1025
+ ```
1026
+
1027
+ By default, the `tcp://` and `tls://` URI schemes will use timeout value that
1028
+ respects your `default_socket_timeout` ini setting (which defaults to 60s).
1029
+ If you want a custom timeout value, you can simply pass this like this:
1030
+
1031
+ ```php
1032
+ $connector = new React\Socket\Connector(array(
1033
+ 'timeout' => 10.0
1034
+ ));
1035
+ ```
1036
+
1037
+ Similarly, if you do not want to apply a timeout at all and let the operating
1038
+ system handle this, you can pass a boolean flag like this:
1039
+
1040
+ ```php
1041
+ $connector = new React\Socket\Connector(array(
1042
+ 'timeout' => false
1043
+ ));
1044
+ ```
1045
+
1046
+ By default, the `Connector` supports the `tcp://`, `tls://` and `unix://`
1047
+ URI schemes. If you want to explicitly prohibit any of these, you can simply
1048
+ pass boolean flags like this:
1049
+
1050
+ ```php
1051
+ // only allow secure TLS connections
1052
+ $connector = new React\Socket\Connector(array(
1053
+ 'tcp' => false,
1054
+ 'tls' => true,
1055
+ 'unix' => false,
1056
+ ));
1057
+
1058
+ $connector->connect('tls://google.com:443')->then(function (React\Socket\ConnectionInterface $connection) {
1059
+ $connection->write('...');
1060
+ $connection->end();
1061
+ });
1062
+ ```
1063
+
1064
+ The `tcp://` and `tls://` also accept additional context options passed to
1065
+ the underlying connectors.
1066
+ If you want to explicitly pass additional context options, you can simply
1067
+ pass arrays of context options like this:
1068
+
1069
+ ```php
1070
+ // allow insecure TLS connections
1071
+ $connector = new React\Socket\Connector(array(
1072
+ 'tcp' => array(
1073
+ 'bindto' => '192.168.0.1:0'
1074
+ ),
1075
+ 'tls' => array(
1076
+ 'verify_peer' => false,
1077
+ 'verify_peer_name' => false
1078
+ ),
1079
+ ));
1080
+
1081
+ $connector->connect('tls://localhost:443')->then(function (React\Socket\ConnectionInterface $connection) {
1082
+ $connection->write('...');
1083
+ $connection->end();
1084
+ });
1085
+ ```
1086
+
1087
+ By default, this connector supports TLSv1.0+ and excludes support for legacy
1088
+ SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you
1089
+ want to negotiate with the remote side:
1090
+
1091
+ ```php
1092
+ $connector = new React\Socket\Connector(array(
1093
+ 'tls' => array(
1094
+ 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT
1095
+ )
1096
+ ));
1097
+ ```
1098
+
1099
+ > For more details about context options, please refer to the PHP documentation
1100
+ about [socket context options](https://www.php.net/manual/en/context.socket.php)
1101
+ and [SSL context options](https://www.php.net/manual/en/context.ssl.php).
1102
+
1103
+ Advanced: By default, the `Connector` supports the `tcp://`, `tls://` and
1104
+ `unix://` URI schemes.
1105
+ For this, it sets up the required connector classes automatically.
1106
+ If you want to explicitly pass custom connectors for any of these, you can simply
1107
+ pass an instance implementing the `ConnectorInterface` like this:
1108
+
1109
+ ```php
1110
+ $dnsResolverFactory = new React\Dns\Resolver\Factory();
1111
+ $resolver = $dnsResolverFactory->createCached('127.0.1.1');
1112
+ $tcp = new React\Socket\HappyEyeBallsConnector(null, new React\Socket\TcpConnector(), $resolver);
1113
+
1114
+ $tls = new React\Socket\SecureConnector($tcp);
1115
+
1116
+ $unix = new React\Socket\UnixConnector();
1117
+
1118
+ $connector = new React\Socket\Connector(array(
1119
+ 'tcp' => $tcp,
1120
+ 'tls' => $tls,
1121
+ 'unix' => $unix,
1122
+
1123
+ 'dns' => false,
1124
+ 'timeout' => false,
1125
+ ));
1126
+
1127
+ $connector->connect('google.com:80')->then(function (React\Socket\ConnectionInterface $connection) {
1128
+ $connection->write('...');
1129
+ $connection->end();
1130
+ });
1131
+ ```
1132
+
1133
+ > Internally, the `tcp://` connector will always be wrapped by the DNS resolver,
1134
+ unless you disable DNS like in the above example. In this case, the `tcp://`
1135
+ connector receives the actual hostname instead of only the resolved IP address
1136
+ and is thus responsible for performing the lookup.
1137
+ Internally, the automatically created `tls://` connector will always wrap the
1138
+ underlying `tcp://` connector for establishing the underlying plaintext
1139
+ TCP/IP connection before enabling secure TLS mode. If you want to use a custom
1140
+ underlying `tcp://` connector for secure TLS connections only, you may
1141
+ explicitly pass a `tls://` connector like above instead.
1142
+ Internally, the `tcp://` and `tls://` connectors will always be wrapped by
1143
+ `TimeoutConnector`, unless you disable timeouts like in the above example.
1144
+
1145
+ This class takes an optional `LoopInterface|null $loop` parameter that can be used to
1146
+ pass the event loop instance to use for this object. You can use a `null` value
1147
+ here in order to use the [default loop](https://github.com/reactphp/event-loop#loop).
1148
+ This value SHOULD NOT be given unless you're sure you want to explicitly use a
1149
+ given event loop instance.
1150
+
1151
+ > Changelog v1.9.0: The constructur signature has been updated to take the
1152
+ > optional `$context` as the first parameter and the optional `$loop` as a second
1153
+ > argument. The previous signature has been deprecated and should not be used anymore.
1154
+ >
1155
+ > ```php
1156
+ > // constructor signature as of v1.9.0
1157
+ > $connector = new React\Socket\Connector(array $context = [], ?LoopInterface $loop = null);
1158
+ >
1159
+ > // legacy constructor signature before v1.9.0
1160
+ > $connector = new React\Socket\Connector(?LoopInterface $loop = null, array $context = []);
1161
+ > ```
1162
+
1163
+ ### Advanced client usage
1164
+
1165
+ #### TcpConnector
1166
+
1167
+ The `TcpConnector` class implements the
1168
+ [`ConnectorInterface`](#connectorinterface) and allows you to create plaintext
1169
+ TCP/IP connections to any IP-port-combination:
1170
+
1171
+ ```php
1172
+ $tcpConnector = new React\Socket\TcpConnector();
1173
+
1174
+ $tcpConnector->connect('127.0.0.1:80')->then(function (React\Socket\ConnectionInterface $connection) {
1175
+ $connection->write('...');
1176
+ $connection->end();
1177
+ });
1178
+ ```
1179
+
1180
+ See also the [examples](examples).
1181
+
1182
+ Pending connection attempts can be cancelled by cancelling its pending promise like so:
1183
+
1184
+ ```php
1185
+ $promise = $tcpConnector->connect('127.0.0.1:80');
1186
+
1187
+ $promise->cancel();
1188
+ ```
1189
+
1190
+ Calling `cancel()` on a pending promise will close the underlying socket
1191
+ resource, thus cancelling the pending TCP/IP connection, and reject the
1192
+ resulting promise.
1193
+
1194
+ This class takes an optional `LoopInterface|null $loop` parameter that can be used to
1195
+ pass the event loop instance to use for this object. You can use a `null` value
1196
+ here in order to use the [default loop](https://github.com/reactphp/event-loop#loop).
1197
+ This value SHOULD NOT be given unless you're sure you want to explicitly use a
1198
+ given event loop instance.
1199
+
1200
+ You can optionally pass additional
1201
+ [socket context options](https://www.php.net/manual/en/context.socket.php)
1202
+ to the constructor like this:
1203
+
1204
+ ```php
1205
+ $tcpConnector = new React\Socket\TcpConnector(null, array(
1206
+ 'bindto' => '192.168.0.1:0'
1207
+ ));
1208
+ ```
1209
+
1210
+ Note that this class only allows you to connect to IP-port-combinations.
1211
+ If the given URI is invalid, does not contain a valid IP address and port
1212
+ or contains any other scheme, it will reject with an
1213
+ `InvalidArgumentException`:
1214
+
1215
+ If the given URI appears to be valid, but connecting to it fails (such as if
1216
+ the remote host rejects the connection etc.), it will reject with a
1217
+ `RuntimeException`.
1218
+
1219
+ If you want to connect to hostname-port-combinations, see also the following chapter.
1220
+
1221
+ > Advanced usage: Internally, the `TcpConnector` allocates an empty *context*
1222
+ resource for each stream resource.
1223
+ If the destination URI contains a `hostname` query parameter, its value will
1224
+ be used to set up the TLS peer name.
1225
+ This is used by the `SecureConnector` and `DnsConnector` to verify the peer
1226
+ name and can also be used if you want a custom TLS peer name.
1227
+
1228
+ #### HappyEyeBallsConnector
1229
+
1230
+ The `HappyEyeBallsConnector` class implements the
1231
+ [`ConnectorInterface`](#connectorinterface) and allows you to create plaintext
1232
+ TCP/IP connections to any hostname-port-combination. Internally it implements the
1233
+ happy eyeballs algorithm from [`RFC6555`](https://tools.ietf.org/html/rfc6555) and
1234
+ [`RFC8305`](https://tools.ietf.org/html/rfc8305) to support IPv6 and IPv4 hostnames.
1235
+
1236
+ It does so by decorating a given `TcpConnector` instance so that it first
1237
+ looks up the given domain name via DNS (if applicable) and then establishes the
1238
+ underlying TCP/IP connection to the resolved target IP address.
1239
+
1240
+ Make sure to set up your DNS resolver and underlying TCP connector like this:
1241
+
1242
+ ```php
1243
+ $dnsResolverFactory = new React\Dns\Resolver\Factory();
1244
+ $dns = $dnsResolverFactory->createCached('8.8.8.8');
1245
+
1246
+ $dnsConnector = new React\Socket\HappyEyeBallsConnector(null, $tcpConnector, $dns);
1247
+
1248
+ $dnsConnector->connect('www.google.com:80')->then(function (React\Socket\ConnectionInterface $connection) {
1249
+ $connection->write('...');
1250
+ $connection->end();
1251
+ });
1252
+ ```
1253
+
1254
+ See also the [examples](examples).
1255
+
1256
+ Pending connection attempts can be cancelled by cancelling its pending promise like so:
1257
+
1258
+ ```php
1259
+ $promise = $dnsConnector->connect('www.google.com:80');
1260
+
1261
+ $promise->cancel();
1262
+ ```
1263
+
1264
+ Calling `cancel()` on a pending promise will cancel the underlying DNS lookups
1265
+ and/or the underlying TCP/IP connection(s) and reject the resulting promise.
1266
+
1267
+ This class takes an optional `LoopInterface|null $loop` parameter that can be used to
1268
+ pass the event loop instance to use for this object. You can use a `null` value
1269
+ here in order to use the [default loop](https://github.com/reactphp/event-loop#loop).
1270
+ This value SHOULD NOT be given unless you're sure you want to explicitly use a
1271
+ given event loop instance.
1272
+
1273
+ > Advanced usage: Internally, the `HappyEyeBallsConnector` relies on a `Resolver` to
1274
+ look up the IP addresses for the given hostname.
1275
+ It will then replace the hostname in the destination URI with this IP's and
1276
+ append a `hostname` query parameter and pass this updated URI to the underlying
1277
+ connector.
1278
+ The Happy Eye Balls algorithm describes looking the IPv6 and IPv4 address for
1279
+ the given hostname so this connector sends out two DNS lookups for the A and
1280
+ AAAA records. It then uses all IP addresses (both v6 and v4) and tries to
1281
+ connect to all of them with a 50ms interval in between. Alterating between IPv6
1282
+ and IPv4 addresses. When a connection is established all the other DNS lookups
1283
+ and connection attempts are cancelled.
1284
+
1285
+ #### DnsConnector
1286
+
1287
+ The `DnsConnector` class implements the
1288
+ [`ConnectorInterface`](#connectorinterface) and allows you to create plaintext
1289
+ TCP/IP connections to any hostname-port-combination.
1290
+
1291
+ It does so by decorating a given `TcpConnector` instance so that it first
1292
+ looks up the given domain name via DNS (if applicable) and then establishes the
1293
+ underlying TCP/IP connection to the resolved target IP address.
1294
+
1295
+ Make sure to set up your DNS resolver and underlying TCP connector like this:
1296
+
1297
+ ```php
1298
+ $dnsResolverFactory = new React\Dns\Resolver\Factory();
1299
+ $dns = $dnsResolverFactory->createCached('8.8.8.8');
1300
+
1301
+ $dnsConnector = new React\Socket\DnsConnector($tcpConnector, $dns);
1302
+
1303
+ $dnsConnector->connect('www.google.com:80')->then(function (React\Socket\ConnectionInterface $connection) {
1304
+ $connection->write('...');
1305
+ $connection->end();
1306
+ });
1307
+ ```
1308
+
1309
+ See also the [examples](examples).
1310
+
1311
+ Pending connection attempts can be cancelled by cancelling its pending promise like so:
1312
+
1313
+ ```php
1314
+ $promise = $dnsConnector->connect('www.google.com:80');
1315
+
1316
+ $promise->cancel();
1317
+ ```
1318
+
1319
+ Calling `cancel()` on a pending promise will cancel the underlying DNS lookup
1320
+ and/or the underlying TCP/IP connection and reject the resulting promise.
1321
+
1322
+ > Advanced usage: Internally, the `DnsConnector` relies on a `React\Dns\Resolver\ResolverInterface`
1323
+ to look up the IP address for the given hostname.
1324
+ It will then replace the hostname in the destination URI with this IP and
1325
+ append a `hostname` query parameter and pass this updated URI to the underlying
1326
+ connector.
1327
+ The underlying connector is thus responsible for creating a connection to the
1328
+ target IP address, while this query parameter can be used to check the original
1329
+ hostname and is used by the `TcpConnector` to set up the TLS peer name.
1330
+ If a `hostname` is given explicitly, this query parameter will not be modified,
1331
+ which can be useful if you want a custom TLS peer name.
1332
+
1333
+ #### SecureConnector
1334
+
1335
+ The `SecureConnector` class implements the
1336
+ [`ConnectorInterface`](#connectorinterface) and allows you to create secure
1337
+ TLS (formerly known as SSL) connections to any hostname-port-combination.
1338
+
1339
+ It does so by decorating a given `DnsConnector` instance so that it first
1340
+ creates a plaintext TCP/IP connection and then enables TLS encryption on this
1341
+ stream.
1342
+
1343
+ ```php
1344
+ $secureConnector = new React\Socket\SecureConnector($dnsConnector);
1345
+
1346
+ $secureConnector->connect('www.google.com:443')->then(function (React\Socket\ConnectionInterface $connection) {
1347
+ $connection->write("GET / HTTP/1.0\r\nHost: www.google.com\r\n\r\n");
1348
+ ...
1349
+ });
1350
+ ```
1351
+
1352
+ See also the [examples](examples).
1353
+
1354
+ Pending connection attempts can be cancelled by cancelling its pending promise like so:
1355
+
1356
+ ```php
1357
+ $promise = $secureConnector->connect('www.google.com:443');
1358
+
1359
+ $promise->cancel();
1360
+ ```
1361
+
1362
+ Calling `cancel()` on a pending promise will cancel the underlying TCP/IP
1363
+ connection and/or the SSL/TLS negotiation and reject the resulting promise.
1364
+
1365
+ This class takes an optional `LoopInterface|null $loop` parameter that can be used to
1366
+ pass the event loop instance to use for this object. You can use a `null` value
1367
+ here in order to use the [default loop](https://github.com/reactphp/event-loop#loop).
1368
+ This value SHOULD NOT be given unless you're sure you want to explicitly use a
1369
+ given event loop instance.
1370
+
1371
+ You can optionally pass additional
1372
+ [SSL context options](https://www.php.net/manual/en/context.ssl.php)
1373
+ to the constructor like this:
1374
+
1375
+ ```php
1376
+ $secureConnector = new React\Socket\SecureConnector($dnsConnector, null, array(
1377
+ 'verify_peer' => false,
1378
+ 'verify_peer_name' => false
1379
+ ));
1380
+ ```
1381
+
1382
+ By default, this connector supports TLSv1.0+ and excludes support for legacy
1383
+ SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly choose the TLS version you
1384
+ want to negotiate with the remote side:
1385
+
1386
+ ```php
1387
+ $secureConnector = new React\Socket\SecureConnector($dnsConnector, null, array(
1388
+ 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT
1389
+ ));
1390
+ ```
1391
+
1392
+ > Advanced usage: Internally, the `SecureConnector` relies on setting up the
1393
+ required *context options* on the underlying stream resource.
1394
+ It should therefor be used with a `TcpConnector` somewhere in the connector
1395
+ stack so that it can allocate an empty *context* resource for each stream
1396
+ resource and verify the peer name.
1397
+ Failing to do so may result in a TLS peer name mismatch error or some hard to
1398
+ trace race conditions, because all stream resources will use a single, shared
1399
+ *default context* resource otherwise.
1400
+
1401
+ #### TimeoutConnector
1402
+
1403
+ The `TimeoutConnector` class implements the
1404
+ [`ConnectorInterface`](#connectorinterface) and allows you to add timeout
1405
+ handling to any existing connector instance.
1406
+
1407
+ It does so by decorating any given [`ConnectorInterface`](#connectorinterface)
1408
+ instance and starting a timer that will automatically reject and abort any
1409
+ underlying connection attempt if it takes too long.
1410
+
1411
+ ```php
1412
+ $timeoutConnector = new React\Socket\TimeoutConnector($connector, 3.0);
1413
+
1414
+ $timeoutConnector->connect('google.com:80')->then(function (React\Socket\ConnectionInterface $connection) {
1415
+ // connection succeeded within 3.0 seconds
1416
+ });
1417
+ ```
1418
+
1419
+ See also any of the [examples](examples).
1420
+
1421
+ This class takes an optional `LoopInterface|null $loop` parameter that can be used to
1422
+ pass the event loop instance to use for this object. You can use a `null` value
1423
+ here in order to use the [default loop](https://github.com/reactphp/event-loop#loop).
1424
+ This value SHOULD NOT be given unless you're sure you want to explicitly use a
1425
+ given event loop instance.
1426
+
1427
+ Pending connection attempts can be cancelled by cancelling its pending promise like so:
1428
+
1429
+ ```php
1430
+ $promise = $timeoutConnector->connect('google.com:80');
1431
+
1432
+ $promise->cancel();
1433
+ ```
1434
+
1435
+ Calling `cancel()` on a pending promise will cancel the underlying connection
1436
+ attempt, abort the timer and reject the resulting promise.
1437
+
1438
+ #### UnixConnector
1439
+
1440
+ The `UnixConnector` class implements the
1441
+ [`ConnectorInterface`](#connectorinterface) and allows you to connect to
1442
+ Unix domain socket (UDS) paths like this:
1443
+
1444
+ ```php
1445
+ $connector = new React\Socket\UnixConnector();
1446
+
1447
+ $connector->connect('/tmp/demo.sock')->then(function (React\Socket\ConnectionInterface $connection) {
1448
+ $connection->write("HELLO\n");
1449
+ });
1450
+ ```
1451
+
1452
+ Connecting to Unix domain sockets is an atomic operation, i.e. its promise will
1453
+ settle (either resolve or reject) immediately.
1454
+ As such, calling `cancel()` on the resulting promise has no effect.
1455
+
1456
+ > The [`getRemoteAddress()`](#getremoteaddress) method will return the target
1457
+ Unix domain socket (UDS) path as given to the `connect()` method, prepended
1458
+ with the `unix://` scheme, for example `unix:///tmp/demo.sock`.
1459
+ The [`getLocalAddress()`](#getlocaladdress) method will most likely return a
1460
+ `null` value as this value is not applicable to UDS connections here.
1461
+
1462
+ This class takes an optional `LoopInterface|null $loop` parameter that can be used to
1463
+ pass the event loop instance to use for this object. You can use a `null` value
1464
+ here in order to use the [default loop](https://github.com/reactphp/event-loop#loop).
1465
+ This value SHOULD NOT be given unless you're sure you want to explicitly use a
1466
+ given event loop instance.
1467
+
1468
+ #### FixedUriConnector
1469
+
1470
+ The `FixedUriConnector` class implements the
1471
+ [`ConnectorInterface`](#connectorinterface) and decorates an existing Connector
1472
+ to always use a fixed, preconfigured URI.
1473
+
1474
+ This can be useful for consumers that do not support certain URIs, such as
1475
+ when you want to explicitly connect to a Unix domain socket (UDS) path
1476
+ instead of connecting to a default address assumed by an higher-level API:
1477
+
1478
+ ```php
1479
+ $connector = new React\Socket\FixedUriConnector(
1480
+ 'unix:///var/run/docker.sock',
1481
+ new React\Socket\UnixConnector()
1482
+ );
1483
+
1484
+ // destination will be ignored, actually connects to Unix domain socket
1485
+ $promise = $connector->connect('localhost:80');
1486
+ ```
1487
+
1488
+ ## Install
1489
+
1490
+ The recommended way to install this library is [through Composer](https://getcomposer.org/).
1491
+ [New to Composer?](https://getcomposer.org/doc/00-intro.md)
1492
+
1493
+ This project follows [SemVer](https://semver.org/).
1494
+ This will install the latest supported version:
1495
+
1496
+ ```bash
1497
+ composer require react/socket:^1.16
1498
+ ```
1499
+
1500
+ See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
1501
+
1502
+ This project aims to run on any platform and thus does not require any PHP
1503
+ extensions and supports running on legacy PHP 5.3 through current PHP 8+ and HHVM.
1504
+ It's *highly recommended to use the latest supported PHP version* for this project,
1505
+ partly due to its vast performance improvements and partly because legacy PHP
1506
+ versions require several workarounds as described below.
1507
+
1508
+ Secure TLS connections received some major upgrades starting with PHP 5.6, with
1509
+ the defaults now being more secure, while older versions required explicit
1510
+ context options.
1511
+ This library does not take responsibility over these context options, so it's
1512
+ up to consumers of this library to take care of setting appropriate context
1513
+ options as described above.
1514
+
1515
+ PHP < 7.3.3 (and PHP < 7.2.15) suffers from a bug where feof() might
1516
+ block with 100% CPU usage on fragmented TLS records.
1517
+ We try to work around this by always consuming the complete receive
1518
+ buffer at once to avoid stale data in TLS buffers. This is known to
1519
+ work around high CPU usage for well-behaving peers, but this may
1520
+ cause very large data chunks for high throughput scenarios. The buggy
1521
+ behavior can still be triggered due to network I/O buffers or
1522
+ malicious peers on affected versions, upgrading is highly recommended.
1523
+
1524
+ PHP < 7.1.4 (and PHP < 7.0.18) suffers from a bug when writing big
1525
+ chunks of data over TLS streams at once.
1526
+ We try to work around this by limiting the write chunk size to 8192
1527
+ bytes for older PHP versions only.
1528
+ This is only a work-around and has a noticable performance penalty on
1529
+ affected versions.
1530
+
1531
+ This project also supports running on HHVM.
1532
+ Note that really old HHVM < 3.8 does not support secure TLS connections, as it
1533
+ lacks the required `stream_socket_enable_crypto()` function.
1534
+ As such, trying to create a secure TLS connections on affected versions will
1535
+ return a rejected promise instead.
1536
+ This issue is also covered by our test suite, which will skip related tests
1537
+ on affected versions.
1538
+
1539
+ ## Tests
1540
+
1541
+ To run the test suite, you first need to clone this repo and then install all
1542
+ dependencies [through Composer](https://getcomposer.org/):
1543
+
1544
+ ```bash
1545
+ composer install
1546
+ ```
1547
+
1548
+ To run the test suite, go to the project root and run:
1549
+
1550
+ ```bash
1551
+ vendor/bin/phpunit
1552
+ ```
1553
+
1554
+ The test suite also contains a number of functional integration tests that rely
1555
+ on a stable internet connection.
1556
+ If you do not want to run these, they can simply be skipped like this:
1557
+
1558
+ ```bash
1559
+ vendor/bin/phpunit --exclude-group internet
1560
+ ```
1561
+
1562
+ ## License
1563
+
1564
+ MIT, see [LICENSE file](LICENSE).