├── vendor ├── wp-cli │ ├── wp-cli │ │ ├── VERSION │ │ ├── tests │ │ │ ├── data │ │ │ │ ├── expand_globs │ │ │ │ │ ├── bar.ab1 │ │ │ │ │ ├── bar.ab2 │ │ │ │ │ ├── baz.ab1 │ │ │ │ │ ├── baz.ac1 │ │ │ │ │ ├── baz.efg2 │ │ │ │ │ ├── foo.ab1 │ │ │ │ │ ├── foo.ab2 │ │ │ │ │ ├── foo.efg1 │ │ │ │ │ └── foo.efg2 │ │ │ │ ├── commandfactory-doc_comment-function.php │ │ │ │ ├── commandfactory-doc_comment-function-win.php │ │ │ │ ├── commandfactory-doc_comment-class.php │ │ │ │ └── commandfactory-doc_comment-class-win.php │ │ │ ├── test-wp-cli.php │ │ │ ├── bootstrap.php │ │ │ ├── test-inflector.php │ │ │ ├── mock-requests-transport.php │ │ │ └── test-process.php │ │ ├── .github │ │ │ ├── CODEOWNERS │ │ │ ├── SUPPORT.md │ │ │ ├── workflows │ │ │ │ ├── code-quality.yml │ │ │ │ ├── testing.yml │ │ │ │ ├── regenerate-readme.yml │ │ │ │ └── automerge.yml │ │ │ ├── dependabot.yml │ │ │ ├── SECURITY.md │ │ │ ├── ISSUE_TEMPLATE │ │ │ │ └── 3-SUPPORT_REQUEST.md │ │ │ └── PULL_REQUEST_TEMPLATE │ │ ├── bin │ │ │ └── wp.bat │ │ ├── bundle │ │ │ └── rmccue │ │ │ │ └── requests │ │ │ │ ├── certificates │ │ │ │ └── cacert.pem.sha256 │ │ │ │ ├── library │ │ │ │ ├── README.md │ │ │ │ └── Deprecated.php │ │ │ │ ├── .editorconfig │ │ │ │ └── src │ │ │ │ ├── Exception │ │ │ │ ├── Transport.php │ │ │ │ ├── Http │ │ │ │ │ ├── Status410.php │ │ │ │ │ ├── Status305.php │ │ │ │ │ ├── Status403.php │ │ │ │ │ ├── Status404.php │ │ │ │ │ ├── Status409.php │ │ │ │ │ ├── Status304.php │ │ │ │ │ ├── Status306.php │ │ │ │ │ ├── Status400.php │ │ │ │ │ ├── Status401.php │ │ │ │ │ ├── Status502.php │ │ │ │ │ ├── Status406.php │ │ │ │ │ ├── Status408.php │ │ │ │ │ ├── Status411.php │ │ │ │ │ ├── Status501.php │ │ │ │ │ ├── Status504.php │ │ │ │ │ ├── Status402.php │ │ │ │ │ ├── Status405.php │ │ │ │ │ ├── Status412.php │ │ │ │ │ ├── Status417.php │ │ │ │ │ ├── Status503.php │ │ │ │ │ ├── Status414.php │ │ │ │ │ ├── Status415.php │ │ │ │ │ ├── Status500.php │ │ │ │ │ ├── Status413.php │ │ │ │ │ ├── Status505.php │ │ │ │ │ ├── Status407.php │ │ │ │ │ ├── Status416.php │ │ │ │ │ ├── Status418.php │ │ │ │ │ ├── Status428.php │ │ │ │ │ ├── Status431.php │ │ │ │ │ ├── Status511.php │ │ │ │ │ ├── Status429.php │ │ │ │ │ └── StatusUnknown.php │ │ │ │ ├── InvalidArgument.php │ │ │ │ └── ArgumentCount.php │ │ │ │ ├── Capability.php │ │ │ │ ├── HookManager.php │ │ │ │ ├── Auth.php │ │ │ │ ├── Proxy.php │ │ │ │ ├── Exception.php │ │ │ │ └── Transport.php │ │ ├── dependencies.yml │ │ ├── php │ │ │ ├── WP_CLI │ │ │ │ ├── ExitException.php │ │ │ │ ├── Iterators │ │ │ │ │ ├── Exception.php │ │ │ │ │ └── Transform.php │ │ │ │ ├── NoOp.php │ │ │ │ ├── Compat │ │ │ │ │ ├── Min_PHP_5_4 │ │ │ │ │ │ └── FeedbackMethodTrait.php │ │ │ │ │ ├── Min_PHP_5_6 │ │ │ │ │ │ └── FeedbackMethodTrait.php │ │ │ │ │ └── FeedbackMethodTrait.php │ │ │ │ ├── Context │ │ │ │ │ ├── Cli.php │ │ │ │ │ └── Frontend.php │ │ │ │ ├── Bootstrap │ │ │ │ │ ├── BootstrapStep.php │ │ │ │ │ ├── DeclareMainClass.php │ │ │ │ │ ├── LoadUtilityFunctions.php │ │ │ │ │ ├── LoadDispatcher.php │ │ │ │ │ ├── ConfigureRunner.php │ │ │ │ │ ├── DeclareFallbackFunctions.php │ │ │ │ │ ├── DeclareAbstractBaseCommand.php │ │ │ │ │ ├── InitializeColorization.php │ │ │ │ │ ├── LaunchRunner.php │ │ │ │ │ ├── RunnerInstance.php │ │ │ │ │ ├── LoadExecCommand.php │ │ │ │ │ ├── IncludeFallbackAutoloader.php │ │ │ │ │ ├── InitializeContexts.php │ │ │ │ │ ├── InitializeLogger.php │ │ │ │ │ ├── RegisterFrameworkCommands.php │ │ │ │ │ ├── DefineProtectedCommands.php │ │ │ │ │ ├── IncludePackageAutoloader.php │ │ │ │ │ ├── IncludeFrameworkAutoloader.php │ │ │ │ │ └── BootstrapState.php │ │ │ │ ├── Context.php │ │ │ │ ├── Fetchers │ │ │ │ │ ├── Post.php │ │ │ │ │ ├── Comment.php │ │ │ │ │ ├── Site.php │ │ │ │ │ ├── Base.php │ │ │ │ │ └── User.php │ │ │ │ ├── Dispatcher │ │ │ │ │ ├── RootCommand.php │ │ │ │ │ ├── CommandAddition.php │ │ │ │ │ └── CommandNamespace.php │ │ │ │ ├── ComposerIO.php │ │ │ │ ├── Loggers │ │ │ │ │ └── Quiet.php │ │ │ │ └── ProcessRun.php │ │ │ ├── commands │ │ │ │ ├── help.php │ │ │ │ ├── cli.php │ │ │ │ └── src │ │ │ │ │ └── CLI_Cache_Command.php │ │ │ ├── class-wp-cli-command.php │ │ │ ├── fallback-functions.php │ │ │ ├── dispatcher.php │ │ │ ├── boot-fs.php │ │ │ └── wp-cli.php │ │ ├── .actrc │ │ ├── behat.yml │ │ ├── .gitignore │ │ ├── utils │ │ │ ├── amp-paths.txt │ │ │ ├── find-php │ │ │ ├── git-pre-commit-script │ │ │ ├── wp-completion.bash │ │ │ ├── get-package-require-from-composer.php │ │ │ ├── install-requests.sh │ │ │ ├── auto-composer-update.sh │ │ │ └── git-setup-pre-commit-hook │ │ ├── .gitattributes │ │ ├── templates │ │ │ ├── man.mustache │ │ │ └── man-params.mustache │ │ ├── features │ │ │ ├── class-wp-cli.feature │ │ │ ├── wp-config.feature │ │ │ ├── validation.feature │ │ │ └── cli-info.feature │ │ ├── .editorconfig │ │ ├── phpunit.xml.dist │ │ ├── CONTRIBUTING.md │ │ └── LICENSE │ ├── mustangostang-spyc │ │ ├── .gitignore │ │ ├── tests │ │ │ ├── failing1.yaml │ │ │ ├── comments.yaml │ │ │ ├── quotes.yaml │ │ │ ├── LoadTest.php │ │ │ └── indent_1.yaml │ │ ├── examples │ │ │ ├── yaml-load.php │ │ │ └── yaml-dump.php │ │ ├── composer.json │ │ ├── php4 │ │ │ └── 5to4.php │ │ ├── Spyc.php │ │ ├── COPYING │ │ ├── includes │ │ │ └── functions.php │ │ └── README.md │ └── php-cli-tools │ │ ├── .github │ │ ├── CODEOWNERS │ │ ├── workflows │ │ │ ├── code-quality.yml │ │ │ ├── testing.yml │ │ │ └── regenerate-readme.yml │ │ └── dependabot.yml │ │ ├── .gitignore │ │ ├── .actrc │ │ ├── examples │ │ ├── progress.php │ │ ├── notify.php │ │ ├── menu.php │ │ ├── common.php │ │ ├── output.php │ │ └── arguments.php │ │ ├── .travis.yml │ │ ├── .editorconfig │ │ ├── tests │ │ ├── bootstrap.php │ │ └── test-colors.php │ │ ├── phpunit.xml.dist │ │ ├── lib │ │ └── cli │ │ │ ├── tree │ │ │ ├── Renderer.php │ │ │ └── Ascii.php │ │ │ ├── table │ │ │ ├── Tabular.php │ │ │ └── Renderer.php │ │ │ ├── Memoize.php │ │ │ ├── arguments │ │ │ └── InvalidArguments.php │ │ │ └── notify │ │ │ └── Spinner.php │ │ ├── test.php │ │ └── LICENSE ├── symfony │ ├── deprecation-contracts │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── composer.json │ │ ├── function.php │ │ ├── LICENSE │ │ └── README.md │ ├── polyfill-php80 │ │ ├── Resources │ │ │ └── stubs │ │ │ │ ├── ValueError.php │ │ │ │ ├── UnhandledMatchError.php │ │ │ │ ├── PhpToken.php │ │ │ │ ├── Stringable.php │ │ │ │ └── Attribute.php │ │ ├── README.md │ │ ├── LICENSE │ │ ├── composer.json │ │ └── bootstrap.php │ └── finder │ │ ├── Exception │ │ ├── DirectoryNotFoundException.php │ │ └── AccessDeniedException.php │ │ ├── README.md │ │ ├── Iterator │ │ ├── LazyIterator.php │ │ ├── FilenameFilterIterator.php │ │ ├── FileTypeFilterIterator.php │ │ ├── DepthRangeFilterIterator.php │ │ ├── SizeRangeFilterIterator.php │ │ ├── PathFilterIterator.php │ │ ├── DateRangeFilterIterator.php │ │ └── FilecontentFilterIterator.php │ │ ├── composer.json │ │ ├── LICENSE │ │ └── Comparator │ │ └── DateComparator.php ├── mustache │ └── mustache │ │ ├── .gitattributes │ │ ├── src │ │ └── Mustache │ │ │ ├── Exception.php │ │ │ ├── Exception │ │ │ ├── LogicException.php │ │ │ ├── RuntimeException.php │ │ │ ├── InvalidArgumentException.php │ │ │ ├── SyntaxException.php │ │ │ ├── UnknownFilterException.php │ │ │ ├── UnknownHelperException.php │ │ │ └── UnknownTemplateException.php │ │ │ ├── Loader.php │ │ │ ├── Loader │ │ │ ├── MutableLoader.php │ │ │ └── StringLoader.php │ │ │ ├── Cache.php │ │ │ ├── Source.php │ │ │ └── Cache │ │ │ └── NoopCache.php │ │ ├── composer.json │ │ └── LICENSE ├── composer │ ├── autoload_namespaces.php │ ├── autoload_psr4.php │ ├── autoload_files.php │ ├── autoload_classmap.php │ ├── platform_check.php │ └── LICENSE ├── autoload.php └── bin │ ├── wp │ └── wp.bat ├── App ├── Init.php └── MuPlugins.php ├── composer.json └── lithify.php /vendor/wp-cli/wp-cli/VERSION: -------------------------------------------------------------------------------- 1 | 2.8.1 2 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/expand_globs/bar.ab1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/expand_globs/bar.ab2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ab1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ac1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.efg2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | .DS_Store -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @wp-cli/committers 2 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @wp-cli/committers 2 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bin/wp.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | php "%~dp0../php/boot-fs.php" %* -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/tests/failing1.yaml: -------------------------------------------------------------------------------- 1 | MyObject: 2 | Prop1: {key1:val1} -------------------------------------------------------------------------------- /vendor/symfony/deprecation-contracts/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | composer.lock 3 | phpunit.xml 4 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | vendor 3 | .*.swp 4 | composer.lock 5 | .phpunit.result.cache 6 | -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/tests/comments.yaml: -------------------------------------------------------------------------------- 1 | foo: 'bar' #Comment 2 | arr: ['x', 'y', 'z'] # Comment here 3 | bar: kittens -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem.sha256: -------------------------------------------------------------------------------- 1 | 5fadcae90aa4ae041150f8e2d26c37d980522cdb49f923fc1e1b5eb8d74e71ad cacert.pem 2 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/dependencies.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | dependencies: 3 | - type: php 4 | settings: 5 | github_labels: 6 | - "scope:distribution" 7 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/ExitException.php: -------------------------------------------------------------------------------- 1 | 3 | -

4 | html_content: 5 | -

hello world

6 | - hello
world 7 | text_content: 8 | - hello world -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Exception.php: -------------------------------------------------------------------------------- 1 | = 8 && ! function_exists( 'ini_set' ) ) { 8 | function ini_set( $option, $value ) { 9 | return false; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/library/README.md: -------------------------------------------------------------------------------- 1 | ## The Library directory is deprecated. 2 | 3 | The files in this directory are only still in place to provide backward compatibility with Requests 1.x. 4 | Please see the release notes of Requests 2.0.0 on how to upgrade. 5 | 6 | This directory will be removed in Requests v 4.0.0. 7 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/NoOp.php: -------------------------------------------------------------------------------- 1 | process_feedback( $string, $args ); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /App/Init.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/wp-cli/php-cli-tools/lib'), 10 | 'WP_CLI\\' => array($vendorDir . '/wp-cli/wp-cli/php'), 11 | 'Mustache' => array($vendorDir . '/mustache/mustache/src'), 12 | ); 13 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/templates/man.mustache: -------------------------------------------------------------------------------- 1 | ## NAME 2 | 3 | {{name}} 4 | 5 | {{#shortdesc}} 6 | ## DESCRIPTION 7 | 8 | {{shortdesc}} 9 | 10 | {{/shortdesc}} 11 | ## SYNOPSIS 12 | 13 | {{synopsis}} 14 | 15 | {{#alias}} 16 | ## ALIAS 17 | 18 | {{alias}} 19 | 20 | {{/alias}} 21 | {{#has-subcommands}} 22 | ## SUBCOMMANDS 23 | 24 | {{#subcommands}} 25 | {{.}} 26 | {{/subcommands}} 27 | 28 | {{/has-subcommands}} 29 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | if (\PHP_VERSION_ID < 80000) { 13 | class ValueError extends Error 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | dist: trusty 3 | 4 | language: php 5 | 6 | php: 7 | - 5.4 8 | - 5.5 9 | - 5.6 10 | - 7.0 11 | - 7.1 12 | 13 | matrix: 14 | include: 15 | - dist: precise 16 | php: 5.3 17 | 18 | before_script: 19 | - php -m 20 | - php --info | grep -i 'intl\|icu\|pcre' 21 | 22 | script: phpunit --debug 23 | 24 | notifications: 25 | email: 26 | on_success: never 27 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/dispatcher.php: -------------------------------------------------------------------------------- 1 | get_name() ); 16 | } while ( $command = $command->get_parent() ); 17 | 18 | return $path; 19 | } 20 | 21 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | if (\PHP_VERSION_ID < 80000) { 13 | class UnhandledMatchError extends Error 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: composer 4 | directory: "/" 5 | schedule: 6 | interval: daily 7 | open-pull-requests-limit: 10 8 | labels: 9 | - scope:distribution 10 | - package-ecosystem: github-actions 11 | directory: "/" 12 | schedule: 13 | interval: daily 14 | open-pull-requests-limit: 10 15 | labels: 16 | - scope:distribution 17 | 18 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/templates/man-params.mustache: -------------------------------------------------------------------------------- 1 | {{#is_subcommand}} 2 | 3 | 4 | {{/is_subcommand}} 5 | {{#has_subcommands}} 6 | 7 | 8 | {{/has_subcommands}} 9 | {{#has_parameters}} 10 | ## GLOBAL PARAMETERS 11 | 12 | {{#parameters}} 13 | {{synopsis}} 14 | {{desc}} 15 | 16 | {{/parameters}} 17 | {{/has_parameters}} 18 | {{#root_command}} 19 | Run 'wp help ' to get more information on a specific command. 20 | 21 | {{/root_command}} 22 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/src/Mustache/Exception.php: -------------------------------------------------------------------------------- 1 | &2 19 | exit 1 20 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/.github/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting Security Issues 2 | 3 | Thanks for wanting to help keep WP-CLI and the larger WordPress community secure! 4 | 5 | The WP-CLI team and WordPress community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions. 6 | 7 | To report a security issue, please visit the [WordPress HackerOne program](https://hackerone.com/wordpress). 8 | 9 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function-win.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | if (\PHP_VERSION_ID < 80000 && extension_loaded('tokenizer')) { 13 | class PhpToken extends Symfony\Polyfill\Php80\PhpToken 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/symfony/polyfill-php80'), 10 | 'Symfony\\Component\\Finder\\' => array($vendorDir . '/symfony/finder'), 11 | 'Mustangostang\\' => array($vendorDir . '/wp-cli/mustangostang-spyc/src'), 12 | 'MWDelaney\\Lithify\\' => array($baseDir . '/app'), 13 | ); 14 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/boot-fs.php: -------------------------------------------------------------------------------- 1 | spyc.yaml loaded into PHP:
'; 15 | print_r($array); 16 | echo ''; 17 | 18 | 19 | echo '
YAML Data dumped back:
'; 20 | echo Spyc::YAMLDump($array); 21 | echo '
'; 22 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | if (\PHP_VERSION_ID < 80000) { 13 | interface Stringable 14 | { 15 | /** 16 | * @return string 17 | */ 18 | public function __toString(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/examples/notify.php: -------------------------------------------------------------------------------- 1 | assertSame( WP_CLI\Utils\get_php_binary(), WP_CLI::get_php_binary() ); 9 | } 10 | 11 | public function testErrorToString() { 12 | $this->expectException( 'InvalidArgumentException' ); 13 | $this->expectExceptionMessage( "Unsupported argument type passed to WP_CLI::error_to_string(): 'boolean'" ); 14 | WP_CLI::error_to_string( true ); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Context/Cli.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Exception; 13 | 14 | /** 15 | * @author Andreas Erhard 16 | */ 17 | class DirectoryNotFoundException extends \InvalidArgumentException 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/.github/workflows/automerge.yml: -------------------------------------------------------------------------------- 1 | name: Automatic Merge 2 | on: 3 | workflow_dispatch: 4 | schedule: 5 | # https://crontab.guru/every-hour 6 | - cron: 0 * * * * 7 | 8 | jobs: 9 | merge: 10 | name: Merge Pull Requests 11 | runs-on: ubuntu-latest 12 | if: ${{ github.repository_owner == 'wp-cli' }} 13 | steps: 14 | - name: Merge 15 | uses: nucleos/auto-merge-action@1.3.0 16 | env: 17 | "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} 18 | with: 19 | label: automerge 20 | -------------------------------------------------------------------------------- /vendor/symfony/finder/Exception/AccessDeniedException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Exception; 13 | 14 | /** 15 | * @author Jean-François Simon 16 | */ 17 | class AccessDeniedException extends \UnexpectedValueException 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/examples/menu.php: -------------------------------------------------------------------------------- 1 | 'Output Examples', 7 | 'notify' => 'cli\Notify Examples', 8 | 'progress' => 'cli\Progress Examples', 9 | 'table' => 'cli\Table Example', 10 | 'colors' => 'cli\Colors example', 11 | 'quit' => 'Quit', 12 | ); 13 | 14 | while (true) { 15 | $choice = \cli\menu($menu, null, 'Choose an example'); 16 | \cli\line(); 17 | 18 | if ($choice == 'quit') { 19 | break; 20 | } 21 | 22 | include "{$choice}.php"; 23 | \cli\line(); 24 | } 25 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/src/Mustache/Exception/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | process_feedback( $string, $args ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/commands/cli.php: -------------------------------------------------------------------------------- 1 | =7.4", 14 | "wp-cli/wp-cli": "^2.8.1" 15 | }, 16 | "autoload": { 17 | "psr-4": { "MWDelaney\\Lithify\\": "app/" } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/BootstrapStep.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/symfony/deprecation-contracts/function.php', 10 | 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php', 11 | '3937806105cc8e221b8fa8db5b70d2f2' => $vendorDir . '/wp-cli/mustangostang-spyc/includes/functions.php', 12 | 'be01b9b16925dcb22165c40b46681ac6' => $vendorDir . '/wp-cli/php-cli-tools/lib/cli/cli.php', 13 | ); 14 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Compat/FeedbackMethodTrait.php: -------------------------------------------------------------------------------- 1 | = 50600 ) { 8 | require_once __DIR__ . '/Min_PHP_5_6/FeedbackMethodTrait.php'; 9 | 10 | trait FeedbackMethodTrait { 11 | 12 | use Min_PHP_5_6\FeedbackMethodTrait; 13 | } 14 | 15 | return; 16 | } 17 | 18 | require_once __DIR__ . '/Min_PHP_5_4/FeedbackMethodTrait.php'; 19 | 20 | trait FeedbackMethodTrait { 21 | 22 | use Min_PHP_5_4\FeedbackMethodTrait; 23 | } 24 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/utils/wp-completion.bash: -------------------------------------------------------------------------------- 1 | # bash completion for the `wp` command 2 | 3 | _wp_complete() { 4 | local OLD_IFS="$IFS" 5 | local cur=${COMP_WORDS[COMP_CWORD]} 6 | 7 | IFS=$'\n'; # want to preserve spaces at the end 8 | local opts="$(wp cli completions --line="$COMP_LINE" --point="$COMP_POINT")" 9 | 10 | if [[ "$opts" =~ \\s* ]] 11 | then 12 | COMPREPLY=( $(compgen -f -- $cur) ) 13 | elif [[ $opts = "" ]] 14 | then 15 | COMPREPLY=( $(compgen -f -- $cur) ) 16 | else 17 | COMPREPLY=( ${opts[*]} ) 18 | fi 19 | 20 | IFS="$OLD_IFS" 21 | return 0 22 | } 23 | complete -o nospace -F _wp_complete wp 24 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception/Http/Status410.php: -------------------------------------------------------------------------------- 1 | autoload->files ) ) { 18 | echo 'composer.json must specify valid "autoload" => "files"'; 19 | exit( 1 ); 20 | } 21 | 22 | echo implode( PHP_EOL, $composer->autoload->files ); 23 | exit( 0 ); 24 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Transform.php: -------------------------------------------------------------------------------- 1 | transformers[] = $fn; 16 | } 17 | 18 | #[\ReturnTypeWillChange] 19 | public function current() { 20 | $value = parent::current(); 21 | 22 | foreach ( $this->transformers as $fn ) { 23 | $value = call_user_func( $fn, $value ); 24 | } 25 | 26 | return $value; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/tests/LoadTest.php: -------------------------------------------------------------------------------- 1 | assertEquals ($yaml, $yaml_loaded); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception/Http/Status305.php: -------------------------------------------------------------------------------- 1 | } --skip-wordpress eval 'WP_CLI::launch( null );'` 5 | Then STDERR should contain: 6 | """ 7 | Error: Cannot do 'launch': The PHP functions `proc_open()` and/or `proc_close()` are disabled 8 | """ 9 | And STDOUT should be empty 10 | And the return code should be 1 11 | 12 | Examples: 13 | | func | 14 | | proc_open | 15 | | proc_close | 16 | 17 | 18 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception/Http/Status405.php: -------------------------------------------------------------------------------- 1 | init_config(); 24 | 25 | return $state; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | tests/ 12 | tests/ 13 | tests/ 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | tests/ 12 | tests/ 13 | tests/ 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/lib/cli/tree/Renderer.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright 2010 James Logsdom (http://girsbrain.org) 10 | * @license http://www.opensource.org/licenses/mit-license.php The MIT License 11 | */ 12 | 13 | namespace cli\tree; 14 | 15 | /** 16 | * Tree renderers are used to change how a tree is displayed. 17 | */ 18 | abstract class Renderer { 19 | 20 | /** 21 | * @param array $tree 22 | * @return string|null 23 | */ 24 | abstract public function render(array $tree); 25 | 26 | } 27 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/DeclareFallbackFunctions.php: -------------------------------------------------------------------------------- 1 | init_colorization(); 24 | 25 | return $state; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Post.php: -------------------------------------------------------------------------------- 1 | $data) { 19 | // Get the name and version of the plugin 20 | $name = explode('/', $plugin)[0]; 21 | $version = $data['Version']; 22 | // Add the plugin and version to the array 23 | $installed_plugins[$name] = $version; 24 | } 25 | return $installed_plugins; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception/Http/Status418.php: -------------------------------------------------------------------------------- 1 | =5.2.4" 17 | }, 18 | "require-dev": { 19 | "phpunit/phpunit": "~3.7|~4.0|~5.0", 20 | "friendsofphp/php-cs-fixer": "~1.11" 21 | }, 22 | "autoload": { 23 | "psr-0": { "Mustache": "src/" } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/test.php: -------------------------------------------------------------------------------- 1 | array( 9 | 'verbose' => array( 10 | 'description' => 'Turn on verbose mode', 11 | 'aliases' => array('v') 12 | ), 13 | 'c' => array( 14 | 'description' => 'A counter to test stackable', 15 | 'stackable' => true 16 | ) 17 | ), 18 | 'options' => array( 19 | 'user' => array( 20 | 'description' => 'Username for authentication', 21 | 'aliases' => array('u') 22 | ) 23 | ), 24 | 'strict' => true 25 | )); 26 | 27 | try { 28 | $args->parse(); 29 | } catch (cli\InvalidArguments $e) { 30 | echo $e->getMessage() . "\n\n"; 31 | } 32 | 33 | print_r($args->getArguments()); 34 | -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wp-cli/mustangostang-spyc", 3 | "description": "A simple YAML loader/dumper class for PHP (WP-CLI fork)", 4 | "type": "library", 5 | "homepage": "https://github.com/mustangostang/spyc/", 6 | "authors" : [{ 7 | "name": "mustangostang", 8 | "email": "vlad.andersen@gmail.com" 9 | }], 10 | "license": "MIT", 11 | "require": { 12 | "php": ">=5.3.1" 13 | }, 14 | "autoload": { 15 | "psr-4": { "Mustangostang\\": "src/" }, 16 | "files": [ "includes/functions.php" ] 17 | }, 18 | "require-dev": { 19 | "phpunit/phpunit": "4.3.*@dev" 20 | }, 21 | "extra": { 22 | "branch-alias": { 23 | "dev-master": "0.5.x-dev" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception/Http/Status428.php: -------------------------------------------------------------------------------- 1 | ', $code); 13 | $f = fopen ($dest, 'w'); 14 | fwrite($f, $code); 15 | fclose ($f); 16 | print "Written to $dest.\n"; 17 | } -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php: -------------------------------------------------------------------------------- 1 | register_context_manager( 25 | $state->getValue( 'context_manager' ) 26 | ); 27 | 28 | $runner()->start(); 29 | 30 | return $state; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception/Http/Status431.php: -------------------------------------------------------------------------------- 1 | assertSame( Colors::colorize( $str ), Colors::color( $color ) ); 17 | if ( in_array( 'reset', $color ) ) { 18 | $this->assertTrue( false !== strpos( $colored, '[0m' ) ); 19 | } else { 20 | $this->assertTrue( false === strpos( $colored, '[0m' ) ); 21 | } 22 | } 23 | 24 | function dataColors() { 25 | $ret = array(); 26 | foreach ( Colors::getColors() as $str => $color ) { 27 | $ret[] = array( $str, $color ); 28 | } 29 | return $ret; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Comment.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Iterator; 13 | 14 | /** 15 | * @author Jérémy Derussé 16 | * 17 | * @internal 18 | */ 19 | class LazyIterator implements \IteratorAggregate 20 | { 21 | private $iteratorFactory; 22 | 23 | public function __construct(callable $iteratorFactory) 24 | { 25 | $this->iteratorFactory = $iteratorFactory; 26 | } 27 | 28 | public function getIterator(): \Traversable 29 | { 30 | yield from ($this->iteratorFactory)(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception/Http/Status429.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright 2010 James Logsdom (http://girsbrain.org) 10 | * @license http://www.opensource.org/licenses/mit-license.php The MIT License 11 | */ 12 | 13 | namespace cli\table; 14 | 15 | /** 16 | * The tabular renderer is used for displaying data in a tabular format. 17 | */ 18 | class Tabular extends Renderer { 19 | /** 20 | * Renders a row for output. 21 | * 22 | * @param array $row The table row. 23 | * @return string The formatted table row. 24 | */ 25 | public function row(array $row) { 26 | return implode("\t", array_values($row)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/.github/PULL_REQUEST_TEMPLATE: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Capability.php: -------------------------------------------------------------------------------- 1 | 0 is executed later 22 | */ 23 | public function register($hook, $callback, $priority = 0); 24 | 25 | /** 26 | * Dispatch a message 27 | * 28 | * @param string $hook Hook name 29 | * @param array $parameters Parameters to pass to callbacks 30 | * @return boolean Successfulness 31 | */ 32 | public function dispatch($hook, $parameters = []); 33 | } 34 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Contributing 2 | ============ 3 | 4 | Welcome and thanks! 5 | 6 | We appreciate you taking the initiative to contribute to WP-CLI. It’s because of you, and the community around you, that WP-CLI is such a great project. 7 | 8 | **Contributing isn’t limited to just code.** We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation. 9 | 10 | Read through our [contributing guidelines in the handbook](https://make.wordpress.org/cli/handbook/contributing/) for a thorough introduction to how you can get involved. Following these guidelines helps to communicate that you respect the time of other contributors on the project. In turn, they’ll do their best to reciprocate that respect when working with you, across timezones and around the world. 11 | -------------------------------------------------------------------------------- /vendor/composer/autoload_classmap.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php', 10 | 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 11 | 'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php', 12 | 'Stringable' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Stringable.php', 13 | 'UnhandledMatchError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php', 14 | 'ValueError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/ValueError.php', 15 | 'WP_CLI' => $vendorDir . '/wp-cli/wp-cli/php/class-wp-cli.php', 16 | 'WP_CLI_Command' => $vendorDir . '/wp-cli/wp-cli/php/class-wp-cli-command.php', 17 | ); 18 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | #[Attribute(Attribute::TARGET_CLASS)] 13 | final class Attribute 14 | { 15 | public const TARGET_CLASS = 1; 16 | public const TARGET_FUNCTION = 2; 17 | public const TARGET_METHOD = 4; 18 | public const TARGET_PROPERTY = 8; 19 | public const TARGET_CLASS_CONSTANT = 16; 20 | public const TARGET_PARAMETER = 32; 21 | public const TARGET_ALL = 63; 22 | public const IS_REPEATABLE = 64; 23 | 24 | /** @var int */ 25 | public $flags; 26 | 27 | public function __construct(int $flags = self::TARGET_ALL) 28 | { 29 | $this->flags = $flags; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/symfony/finder/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/finder", 3 | "type": "library", 4 | "description": "Finds files and directories via an intuitive fluent interface", 5 | "keywords": [], 6 | "homepage": "https://symfony.com", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Fabien Potencier", 11 | "email": "fabien@symfony.com" 12 | }, 13 | { 14 | "name": "Symfony Community", 15 | "homepage": "https://symfony.com/contributors" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=7.2.5", 20 | "symfony/deprecation-contracts": "^2.1|^3", 21 | "symfony/polyfill-php80": "^1.16" 22 | }, 23 | "autoload": { 24 | "psr-4": { "Symfony\\Component\\Finder\\": "" }, 25 | "exclude-from-classmap": [ 26 | "/Tests/" 27 | ] 28 | }, 29 | "minimum-stability": "dev" 30 | } 31 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/utils/install-requests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | REQUESTS_TAG="v2.0.7" 4 | 5 | DOWNLOAD_LINK="https://github.com/WordPress/Requests/archive/refs/tags/${REQUESTS_TAG}.tar.gz" 6 | 7 | SCRIPT_DIR=$(dirname "$0") 8 | 9 | BUNDLE_DIR="${SCRIPT_DIR}/../bundle" 10 | 11 | # First check if Requests is already installed. 12 | if [ -d "${BUNDLE_DIR}/rmccue/requests" ]; then 13 | 14 | # Check if the version is correct. 15 | if [ -f "${BUNDLE_DIR}/rmccue/requests/src/Requests/Requests.php" ]; then 16 | VERSION=$(grep -oP "const VERSION = '\K[0-9\.]*" ${BUNDLE_DIR}/rmccue/requests/src/Requests.php) 17 | if [ "$VERSION" == "$REQUESTS_TAG" ]; then 18 | exit 0 19 | fi 20 | fi 21 | fi 22 | 23 | # Remove old version. 24 | rm -rf "${BUNDLE_DIR}/rmccue" 25 | 26 | # Download and extract Requests. 27 | mkdir -p "${BUNDLE_DIR}/rmccue/requests" 28 | curl -L "${DOWNLOAD_LINK}" | tar xz -C "${BUNDLE_DIR}/rmccue/requests" --strip-components=1 29 | -------------------------------------------------------------------------------- /vendor/symfony/deprecation-contracts/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/deprecation-contracts", 3 | "type": "library", 4 | "description": "A generic function and convention to trigger deprecation notices", 5 | "homepage": "https://symfony.com", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Nicolas Grekas", 10 | "email": "p@tchwork.com" 11 | }, 12 | { 13 | "name": "Symfony Community", 14 | "homepage": "https://symfony.com/contributors" 15 | } 16 | ], 17 | "require": { 18 | "php": ">=7.1" 19 | }, 20 | "autoload": { 21 | "files": [ 22 | "function.php" 23 | ] 24 | }, 25 | "minimum-stability": "dev", 26 | "extra": { 27 | "branch-alias": { 28 | "dev-main": "2.5-dev" 29 | }, 30 | "thanks": { 31 | "name": "symfony/contracts", 32 | "url": "https://github.com/symfony/contracts" 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/test-inflector.php: -------------------------------------------------------------------------------- 1 | assertEquals( $expected, Inflector::pluralize( $singular ) ); 13 | } 14 | 15 | public function dataProviderPluralize() { 16 | return [ 17 | [ 'string', 'strings' ], // regular 18 | [ 'person', 'people' ], // irregular 19 | [ 'scissors', 'scissors' ], // uncountable 20 | ]; 21 | } 22 | 23 | /** 24 | * @dataProvider dataProviderSingularize 25 | */ 26 | public function testSingularize( $singular, $expected ) { 27 | $this->assertEquals( $expected, Inflector::singularize( $singular ) ); 28 | } 29 | 30 | public function dataProviderSingularize() { 31 | return [ 32 | [ 'strings', 'string' ], // regular 33 | [ 'people', 'person' ], // irregular 34 | [ 'scissors', 'scissors' ], // uncountable 35 | ]; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php80/README.md: -------------------------------------------------------------------------------- 1 | Symfony Polyfill / Php80 2 | ======================== 3 | 4 | This component provides features added to PHP 8.0 core: 5 | 6 | - [`Stringable`](https://php.net/stringable) interface 7 | - [`fdiv`](https://php.net/fdiv) 8 | - [`ValueError`](https://php.net/valueerror) class 9 | - [`UnhandledMatchError`](https://php.net/unhandledmatcherror) class 10 | - `FILTER_VALIDATE_BOOL` constant 11 | - [`get_debug_type`](https://php.net/get_debug_type) 12 | - [`PhpToken`](https://php.net/phptoken) class 13 | - [`preg_last_error_msg`](https://php.net/preg_last_error_msg) 14 | - [`str_contains`](https://php.net/str_contains) 15 | - [`str_starts_with`](https://php.net/str_starts_with) 16 | - [`str_ends_with`](https://php.net/str_ends_with) 17 | - [`get_resource_id`](https://php.net/get_resource_id) 18 | 19 | More information can be found in the 20 | [main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md). 21 | 22 | License 23 | ======= 24 | 25 | This library is released under the [MIT license](LICENSE). 26 | -------------------------------------------------------------------------------- /vendor/composer/platform_check.php: -------------------------------------------------------------------------------- 1 | = 70400)) { 8 | $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.'; 9 | } 10 | 11 | if ($issues) { 12 | if (!headers_sent()) { 13 | header('HTTP/1.1 500 Internal Server Error'); 14 | } 15 | if (!ini_get('display_errors')) { 16 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 17 | fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); 18 | } elseif (!headers_sent()) { 19 | echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; 20 | } 21 | } 22 | trigger_error( 23 | 'Composer detected issues in your platform: ' . implode(' ', $issues), 24 | E_USER_ERROR 25 | ); 26 | } 27 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Auth.php: -------------------------------------------------------------------------------- 1 | ` option. 11 | * 12 | * @package WP_CLI\Bootstrap 13 | */ 14 | final class LoadExecCommand implements BootstrapStep { 15 | 16 | /** 17 | * Process this single bootstrapping step. 18 | * 19 | * @param BootstrapState $state Contextual state to pass into the step. 20 | * 21 | * @return BootstrapState Modified state to pass to the next step. 22 | */ 23 | public function process( BootstrapState $state ) { 24 | if ( $state->getValue( BootstrapState::IS_PROTECTED_COMMAND, false ) ) { 25 | return $state; 26 | } 27 | 28 | $runner = new RunnerInstance(); 29 | if ( ! isset( $runner()->config['exec'] ) ) { 30 | return $state; 31 | } 32 | 33 | foreach ( $runner()->config['exec'] as $php_code ) { 34 | eval( $php_code ); // phpcs:ignore Squiz.PHP.Eval.Discouraged 35 | } 36 | 37 | return $state; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Proxy.php: -------------------------------------------------------------------------------- 1 | /dev/null) 11 | if [ -z "$self" ]; then 12 | self="$selfArg" 13 | fi 14 | 15 | dir=$(cd "${self%[/\\]*}" > /dev/null; cd '../wp-cli/wp-cli/bin' && pwd) 16 | 17 | if [ -d /proc/cygdrive ]; then 18 | case $(which php) in 19 | $(readlink -n /proc/cygdrive)/*) 20 | # We are in Cygwin using Windows php, so the path must be translated 21 | dir=$(cygpath -m "$dir"); 22 | ;; 23 | esac 24 | fi 25 | 26 | export COMPOSER_RUNTIME_BIN_DIR="$(cd "${self%[/\\]*}" > /dev/null; pwd)" 27 | 28 | # If bash is sourcing this file, we have to source the target as well 29 | bashSource="$BASH_SOURCE" 30 | if [ -n "$bashSource" ]; then 31 | if [ "$bashSource" != "$0" ]; then 32 | source "${dir}/wp" "$@" 33 | return 34 | fi 35 | fi 36 | 37 | "${dir}/wp" "$@" 38 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/lib/cli/tree/Ascii.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright 2010 James Logsdom (http://girsbrain.org) 10 | * @license http://www.opensource.org/licenses/mit-license.php The MIT License 11 | */ 12 | 13 | namespace cli\tree; 14 | 15 | /** 16 | * The ASCII renderer renders trees with ASCII lines. 17 | */ 18 | class Ascii extends Renderer { 19 | 20 | /** 21 | * @param array $tree 22 | * @return string 23 | */ 24 | public function render(array $tree) 25 | { 26 | $output = ''; 27 | 28 | $treeIterator = new \RecursiveTreeIterator( 29 | new \RecursiveArrayIterator($tree), 30 | \RecursiveTreeIterator::SELF_FIRST 31 | ); 32 | 33 | foreach ($treeIterator as $val) 34 | { 35 | $output .= $val . "\n"; 36 | } 37 | 38 | return $output; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/RootCommand.php: -------------------------------------------------------------------------------- 1 | parent = false; 16 | 17 | $this->name = 'wp'; 18 | 19 | $this->shortdesc = 'Manage WordPress through the command-line.'; 20 | } 21 | 22 | /** 23 | * Get the human-readable long description. 24 | * 25 | * @return string 26 | */ 27 | public function get_longdesc() { 28 | return $this->get_global_params( true ); 29 | } 30 | 31 | /** 32 | * Find a subcommand registered on the root 33 | * command. 34 | * 35 | * @param array $args 36 | * @return Subcommand|false 37 | */ 38 | public function find_subcommand( &$args ) { 39 | $command = array_shift( $args ); 40 | 41 | Utils\load_command( $command ); 42 | 43 | if ( ! isset( $this->subcommands[ $command ] ) ) { 44 | return false; 45 | } 46 | 47 | return $this->subcommands[ $command ]; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/bin/wp.bat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # Support bash to support `source` with fallback on $0 if this does not run with bash 4 | # https://stackoverflow.com/a/35006505/6512 5 | selfArg="$BASH_SOURCE" 6 | if [ -z "$selfArg" ]; then 7 | selfArg="$0" 8 | fi 9 | 10 | self=$(realpath $selfArg 2> /dev/null) 11 | if [ -z "$self" ]; then 12 | self="$selfArg" 13 | fi 14 | 15 | dir=$(cd "${self%[/\\]*}" > /dev/null; cd '../wp-cli/wp-cli/bin' && pwd) 16 | 17 | if [ -d /proc/cygdrive ]; then 18 | case $(which php) in 19 | $(readlink -n /proc/cygdrive)/*) 20 | # We are in Cygwin using Windows php, so the path must be translated 21 | dir=$(cygpath -m "$dir"); 22 | ;; 23 | esac 24 | fi 25 | 26 | export COMPOSER_RUNTIME_BIN_DIR="$(cd "${self%[/\\]*}" > /dev/null; pwd)" 27 | 28 | # If bash is sourcing this file, we have to source the target as well 29 | bashSource="$BASH_SOURCE" 30 | if [ -n "$bashSource" ]; then 31 | if [ "$bashSource" != "$0" ]; then 32 | source "${dir}/wp.bat" "$@" 33 | return 34 | fi 35 | fi 36 | 37 | "${dir}/wp.bat" "$@" 38 | -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/Spyc.php: -------------------------------------------------------------------------------- 1 | 6 | * @author Chris Wanstrath 7 | * @link https://github.com/mustangostang/spyc/ 8 | * @copyright Copyright 2005-2006 Chris Wanstrath, 2006-2011 Vlad Andersen 9 | * @license http://www.opensource.org/licenses/mit-license.php MIT License 10 | * @package Spyc 11 | */ 12 | 13 | if (!class_exists('Mustangostang\Spyc')) { 14 | require_once dirname(__FILE__) . '/src/Spyc.php'; 15 | } 16 | 17 | class_alias('Mustangostang\Spyc', 'Spyc'); 18 | 19 | require_once dirname(__FILE__) . '/includes/functions.php'; 20 | 21 | // Enable use of Spyc from command line 22 | // The syntax is the following: php Spyc.php spyc.yaml 23 | do { 24 | if (PHP_SAPI != 'cli') break; 25 | if (empty ($_SERVER['argc']) || $_SERVER['argc'] < 2) break; 26 | if (empty ($_SERVER['PHP_SELF']) || FALSE === strpos ($_SERVER['PHP_SELF'], 'Spyc.php') ) break; 27 | $file = $argv[1]; 28 | echo json_encode (spyc_load_file ($file)); 29 | } while (0); 30 | -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/examples/yaml-dump.php: -------------------------------------------------------------------------------- 1 | 'A sequence','second' => 'of mapped values'); 18 | $array['Mapped'] = array('A sequence','which is mapped'); 19 | $array['A Note'] = 'What if your text is too long?'; 20 | $array['Another Note'] = 'If that is the case, the dumper will probably fold your text by using a block. Kinda like this.'; 21 | $array['The trick?'] = 'The trick is that we overrode the default indent, 2, to 4 and the default wordwrap, 40, to 60.'; 22 | $array['Old Dog'] = "And if you want\n to preserve line breaks, \ngo ahead!"; 23 | $array['key:withcolon'] = "Should support this to"; 24 | 25 | $yaml = Spyc::YAMLDump($array,4,60); 26 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/ComposerIO.php: -------------------------------------------------------------------------------- 1 | ]+)>#', '$1$2', $messages ); 36 | foreach ( $messages as $message ) { 37 | // phpcs:ignore WordPress.WP.AlternativeFunctions.strip_tags_strip_tags 38 | WP_CLI::log( strip_tags( trim( $message ) ) ); 39 | } 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/mock-requests-transport.php: -------------------------------------------------------------------------------- 1 | requests[] = compact( 'url', 'headers', 'data', 'options' ); 21 | 22 | return 'HTTP/1.1 418' . "\r\n" 23 | . 'Content-Type: water/leaf-infused' . "\r\n" 24 | . "\r\n\r\n"; // This last line is actually important or the request will error. 25 | } 26 | 27 | public function request_multiple( $requests, $options ) { 28 | throw new Exception( 'Method not implemented: ' . __METHOD__ ); 29 | } 30 | 31 | public static function test( $capabilities = [] ) { 32 | return true; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 James Logsdon 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/examples/common.php: -------------------------------------------------------------------------------- 1 | tick(); 22 | if ($sleep) usleep($sleep); 23 | } 24 | $notify->finish(); 25 | } 26 | 27 | function test_notify_msg(cli\Notify $notify, $cycle = 1000000, $sleep = null) { 28 | $notify->display(); 29 | for ($i = 0; $i < $cycle; $i++) { 30 | // Sleep before tick to simulate time-intensive work and give time 31 | // for the initial message to display before it is changed 32 | if ($sleep) usleep($sleep); 33 | $msg = sprintf(' Finished step %d', $i + 1); 34 | $notify->tick(1, $msg); 35 | } 36 | $notify->finish(); 37 | } 38 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/src/Mustache/Cache.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | if (!function_exists('trigger_deprecation')) { 13 | /** 14 | * Triggers a silenced deprecation notice. 15 | * 16 | * @param string $package The name of the Composer package that is triggering the deprecation 17 | * @param string $version The version of the package that introduced the deprecation 18 | * @param string $message The message of the deprecation 19 | * @param mixed ...$args Values to insert in the message using printf() formatting 20 | * 21 | * @author Nicolas Grekas 22 | */ 23 | function trigger_deprecation(string $package, string $version, string $message, ...$args): void 24 | { 25 | @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/symfony/finder/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2004-present Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php80/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/src/Mustache/Exception/SyntaxException.php: -------------------------------------------------------------------------------- 1 | token = $token; 27 | if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 28 | parent::__construct($msg, 0, $previous); 29 | } else { 30 | parent::__construct($msg); // @codeCoverageIgnore 31 | } 32 | } 33 | 34 | /** 35 | * @return array 36 | */ 37 | public function getToken() 38 | { 39 | return $this->token; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /vendor/composer/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Copyright (c) Nils Adermann, Jordi Boggiano 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /vendor/symfony/deprecation-contracts/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020-2022 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/examples/output.php: -------------------------------------------------------------------------------- 1 | 'you', 'b' => 'array')); 9 | 10 | \cli\err(' \cli\err sends output to STDERR'); 11 | \cli\err(' It does automatically append a new line'); 12 | \cli\err(' It does accept any number of %s which are then %s to %s for formatting', 'arguments', 'passed', 'sprintf'); 13 | \cli\err(" Alternatively, {:a} can use an {:b} as the second argument.\n", array('a' => 'you', 'b' => 'array')); 14 | 15 | \cli\line(' \cli\line forwards to \cli\out for output'); 16 | \cli\line(' It does automatically append a new line'); 17 | \cli\line(' It does accept any number of %s which are then %s to %s for formatting', 'arguments', 'passed', 'sprintf'); 18 | \cli\line(" Alternatively, {:a} can use an {:b} as the second argument.\n", array('a' => 'you', 'b' => 'array')); 19 | -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/COPYING: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2011 Vladimir Andersen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/test-process.php: -------------------------------------------------------------------------------- 1 | run(); 17 | 18 | $this->assertSame( $process_run->stdout, $expected_out ); 19 | } 20 | 21 | public function data_process_env() { 22 | return [ 23 | [ '', [], [], '' ], 24 | [ 'ENV=blah', [], [ 'ENV' ], 'blah' ], 25 | [ 'ENV="blah blah"', [], [ 'ENV' ], 'blah blah' ], 26 | [ 'ENV_1="blah1 blah1" ENV_2="blah2" ENV_3=blah3', [ 'ENV' => 'in' ], [ 'ENV', 'ENV_1', 'ENV_2', 'ENV_3' ], 'inblah1 blah1blah2blah3' ], 27 | [ 'ENV=blah', [ 'ENV_1' => 'in1', 'ENV_2' => 'in2' ], [ 'ENV_1', 'ENV_2', 'ENV' ], 'in1in2blah' ], 28 | ]; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2010-2015 Justin Hileman 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 19 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 20 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 21 | OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Site.php: -------------------------------------------------------------------------------- 1 | get_site( $site_id ); 25 | } 26 | 27 | /** 28 | * Get site (blog) data for a given id. 29 | * 30 | * @param string $arg The raw CLI argument. 31 | * @return array|false The item if found; false otherwise. 32 | */ 33 | private function get_site( $arg ) { 34 | global $wpdb; 35 | 36 | // Load site data 37 | $site = $wpdb->get_row( 38 | $wpdb->prepare( 39 | "SELECT * FROM {$wpdb->blogs} WHERE blog_id = %d", 40 | $arg 41 | ) 42 | ); 43 | 44 | if ( ! empty( $site ) ) { 45 | // Only care about domain and path which are set here 46 | return $site; 47 | } 48 | 49 | return false; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/src/Mustache/Exception/UnknownFilterException.php: -------------------------------------------------------------------------------- 1 | filterName = $filterName; 26 | $message = sprintf('Unknown filter: %s', $filterName); 27 | if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 28 | parent::__construct($message, 0, $previous); 29 | } else { 30 | parent::__construct($message); // @codeCoverageIgnore 31 | } 32 | } 33 | 34 | public function getFilterName() 35 | { 36 | return $this->filterName; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/src/Mustache/Exception/UnknownHelperException.php: -------------------------------------------------------------------------------- 1 | helperName = $helperName; 26 | $message = sprintf('Unknown helper: %s', $helperName); 27 | if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 28 | parent::__construct($message, 0, $previous); 29 | } else { 30 | parent::__construct($message); // @codeCoverageIgnore 31 | } 32 | } 33 | 34 | public function getHelperName() 35 | { 36 | return $this->helperName; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/src/Mustache/Loader/StringLoader.php: -------------------------------------------------------------------------------- 1 | load('{{ foo }}'); // '{{ foo }}' 19 | * 20 | * This is the default Template Loader instance used by Mustache: 21 | * 22 | * $m = new Mustache; 23 | * $tpl = $m->loadTemplate('{{ foo }}'); 24 | * echo $tpl->render(array('foo' => 'bar')); // "bar" 25 | */ 26 | class Mustache_Loader_StringLoader implements Mustache_Loader 27 | { 28 | /** 29 | * Load a Template by source. 30 | * 31 | * @param string $name Mustache Template source 32 | * 33 | * @return string Mustache Template source 34 | */ 35 | public function load($name) 36 | { 37 | return $name; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeFallbackAutoloader.php: -------------------------------------------------------------------------------- 1 | get_custom_vendor_folder(); 29 | if ( false !== $custom_vendor ) { 30 | array_unshift( 31 | $autoloader_paths, 32 | WP_CLI_ROOT . '/../../../' . $custom_vendor . '/autoload.php' 33 | ); 34 | } 35 | 36 | WP_CLI::debug( 37 | sprintf( 38 | 'Fallback autoloader paths: %s', 39 | implode( ', ', $autoloader_paths ) 40 | ), 41 | 'bootstrap' 42 | ); 43 | 44 | return $autoloader_paths; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/src/Mustache/Exception/UnknownTemplateException.php: -------------------------------------------------------------------------------- 1 | templateName = $templateName; 26 | $message = sprintf('Unknown template: %s', $templateName); 27 | if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 28 | parent::__construct($message, 0, $previous); 29 | } else { 30 | parent::__construct($message); // @codeCoverageIgnore 31 | } 32 | } 33 | 34 | public function getTemplateName() 35 | { 36 | return $this->templateName; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (C) 2011-2020 WP-CLI Development Group (https://github.com/wp-cli/wp-cli/contributors) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/utils/auto-composer-update.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ### 4 | # Runs composer update, commits changes to a new branch, 5 | # and creates a pull request. 6 | # 7 | # Requires git, composer, and hub 8 | ### 9 | 10 | date 11 | 12 | if [ -z "$WP_CLI_DIR" ]; then 13 | echo 'Please set $WP_CLI_DIR' 14 | exit 1 15 | fi 16 | 17 | set -ex 18 | 19 | cd $WP_CLI_DIR 20 | 21 | # Reset WP-CLI directory to baseline 22 | git checkout -f master 23 | git pull origin master 24 | composer install 25 | # Run composer update and capture to untracked log file 26 | composer update --no-progress --no-interaction |& tee vendor/update.log 27 | UPDATE=$(cat vendor/update.log | col -b) 28 | 29 | # We only care to proceed when there are changes 30 | if [ -z "$(git status -s)" ]; then 31 | echo 'No updates available' 32 | exit 0; 33 | fi 34 | 35 | # Create a dated branch and commit the changes 36 | DATE=$(date +%Y-%m-%d) 37 | BRANCH="update-deps-$DATE" 38 | git branch -f $BRANCH master 39 | git checkout $BRANCH 40 | git add . 41 | MESSAGE="Update Composer dependencies ($DATE) 42 | 43 | \`\`\` 44 | $UPDATE 45 | \`\`\`" 46 | git commit -n -m "$MESSAGE" 47 | 48 | # Push and pull request 49 | git push origin $BRANCH 50 | hub pull-request -m "$MESSAGE" 51 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/lib/cli/Memoize.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright 2010 James Logsdom (http://girsbrain.org) 10 | * @license http://www.opensource.org/licenses/mit-license.php The MIT License 11 | */ 12 | 13 | namespace cli; 14 | 15 | abstract class Memoize { 16 | protected $_memoCache = array(); 17 | 18 | public function __get($name) { 19 | if (isset($this->_memoCache[$name])) { 20 | return $this->_memoCache[$name]; 21 | } 22 | 23 | // Hide probable private methods 24 | if (0 == strncmp($name, '_', 1)) { 25 | return ($this->_memoCache[$name] = null); 26 | } 27 | 28 | if (!method_exists($this, $name)) { 29 | return ($this->_memoCache[$name] = null); 30 | } 31 | 32 | $method = array($this, $name); 33 | ($this->_memoCache[$name] = call_user_func($method)); 34 | return $this->_memoCache[$name]; 35 | } 36 | 37 | protected function _unmemo($name) { 38 | if ($name === true) { 39 | $this->_memoCache = array(); 40 | } else { 41 | unset($this->_memoCache[$name]); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception/Http/StatusUnknown.php: -------------------------------------------------------------------------------- 1 | code = (int) $data->status_code; 45 | } 46 | 47 | parent::__construct($reason, $data); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/src/Mustache/Source.php: -------------------------------------------------------------------------------- 1 | new Context\Cli(), 28 | Context::ADMIN => new Context\Admin(), 29 | Context::FRONTEND => new Context\Frontend(), 30 | Context::AUTO => new Context\Auto( $context_manager ), 31 | ]; 32 | 33 | $contexts = WP_CLI::do_hook( 'before_registering_contexts', $contexts ); 34 | 35 | foreach ( $contexts as $name => $implementation ) { 36 | $context_manager->register_context( $name, $implementation ); 37 | } 38 | 39 | $state->setValue( 'context_manager', $context_manager ); 40 | 41 | return $state; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/includes/functions.php: -------------------------------------------------------------------------------- 1 | 6 | * @author Chris Wanstrath 7 | * @link https://github.com/mustangostang/spyc/ 8 | * @copyright Copyright 2005-2006 Chris Wanstrath, 2006-2011 Vlad Andersen 9 | * @license http://www.opensource.org/licenses/mit-license.php MIT License 10 | * @package Spyc 11 | */ 12 | 13 | if (!function_exists('spyc_load')) { 14 | /** 15 | * Parses YAML to array. 16 | * @param string $string YAML string. 17 | * @return array 18 | */ 19 | function spyc_load ($string) { 20 | return Spyc::YAMLLoadString($string); 21 | } 22 | } 23 | 24 | if (!function_exists('spyc_load_file')) { 25 | /** 26 | * Parses YAML to array. 27 | * @param string $file Path to YAML file. 28 | * @return array 29 | */ 30 | function spyc_load_file ($file) { 31 | return Spyc::YAMLLoad($file); 32 | } 33 | } 34 | 35 | if (!function_exists('spyc_dump')) { 36 | /** 37 | * Dumps array to YAML. 38 | * @param array $data Array. 39 | * @return string 40 | */ 41 | function spyc_dump ($data) { 42 | return Spyc::YAMLDump($data, false, false, true); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /vendor/symfony/polyfill-php80/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/polyfill-php80", 3 | "type": "library", 4 | "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", 5 | "keywords": ["polyfill", "shim", "compatibility", "portable"], 6 | "homepage": "https://symfony.com", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Ion Bazan", 11 | "email": "ion.bazan@gmail.com" 12 | }, 13 | { 14 | "name": "Nicolas Grekas", 15 | "email": "p@tchwork.com" 16 | }, 17 | { 18 | "name": "Symfony Community", 19 | "homepage": "https://symfony.com/contributors" 20 | } 21 | ], 22 | "require": { 23 | "php": ">=7.1" 24 | }, 25 | "autoload": { 26 | "psr-4": { "Symfony\\Polyfill\\Php80\\": "" }, 27 | "files": [ "bootstrap.php" ], 28 | "classmap": [ "Resources/stubs" ] 29 | }, 30 | "minimum-stability": "dev", 31 | "extra": { 32 | "branch-alias": { 33 | "dev-main": "1.27-dev" 34 | }, 35 | "thanks": { 36 | "name": "symfony/polyfill", 37 | "url": "https://github.com/symfony/polyfill" 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/lib/cli/arguments/InvalidArguments.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright 2010 James Logsdom (http://girsbrain.org) 10 | * @license http://www.opensource.org/licenses/mit-license.php The MIT License 11 | */ 12 | 13 | namespace cli\arguments; 14 | 15 | /** 16 | * Thrown when undefined arguments are detected in strict mode. 17 | */ 18 | class InvalidArguments extends \InvalidArgumentException { 19 | protected $arguments; 20 | 21 | /** 22 | * @param array $arguments A list of arguments that do not fit the profile. 23 | */ 24 | public function __construct(array $arguments) { 25 | $this->arguments = $arguments; 26 | $this->message = $this->_generateMessage(); 27 | } 28 | 29 | /** 30 | * Get the arguments that caused the exception. 31 | * 32 | * @return array 33 | */ 34 | public function getArguments() { 35 | return $this->arguments; 36 | } 37 | 38 | private function _generateMessage() { 39 | return 'unknown argument' . 40 | (count($this->arguments) > 1 ? 's' : '') . 41 | ': ' . join(', ', $this->arguments); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/wp-cli.php: -------------------------------------------------------------------------------- 1 | ' . TEST_CONFIG_OVERRIDE;"` 25 | And STDERR should contain: 26 | """ 27 | TEST_CONFIG_OVERRIDE 28 | """ 29 | 30 | When I run `WP_CONFIG_PATH=wp-config-override.php wp eval "echo 'TEST_CONFIG_OVERRIDE => ' . TEST_CONFIG_OVERRIDE;"` 31 | Then STDERR should be empty 32 | And STDOUT should contain: 33 | """ 34 | TEST_CONFIG_OVERRIDE => success 35 | """ 36 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class.php: -------------------------------------------------------------------------------- 1 | ] 30 | * 31 | * ## EXAMPLES 32 | * 33 | * $ wp foo command2 --path=/**a/**b/**c/** 34 | */ 35 | 36 | final 37 | protected 38 | static 39 | function 40 | command2() { 41 | } 42 | 43 | /** 44 | * Command3 function 45 | * 46 | * ## OPTIONS 47 | * 48 | * [--path=] 49 | * 50 | * ## EXAMPLES 51 | * 52 | * $ wp foo command3 --path=/**a/**b/**c/** 53 | function*/public function command3( $function ) {} 54 | 55 | function command4() {} 56 | } 57 | 58 | /** 59 | * Basic class 60 | * 61 | * ## EXAMPLES 62 | * 63 | * # Foo. 64 | * $ wp foo --final abstract 65 | class*/abstract class 66 | CommandFactoryTests_Get_Doc_Comment_2_Command 67 | extends WP_CLI_Command 68 | { 69 | function command1() {} 70 | } 71 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeLogger.php: -------------------------------------------------------------------------------- 1 | declare_loggers(); 25 | $runner = new RunnerInstance(); 26 | $runner()->init_logger(); 27 | 28 | return $state; 29 | } 30 | 31 | /** 32 | * Load the class declarations for the loggers. 33 | */ 34 | private function declare_loggers() { 35 | $logger_dir = WP_CLI_ROOT . '/php/WP_CLI/Loggers'; 36 | $iterator = new DirectoryIterator( $logger_dir ); 37 | 38 | // Make sure the base class is declared first. 39 | include_once "$logger_dir/Base.php"; 40 | 41 | foreach ( $iterator as $filename ) { 42 | if ( '.php' !== substr( $filename, - 4 ) ) { 43 | continue; 44 | } 45 | 46 | include_once "$logger_dir/$filename"; 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/mustache/mustache/src/Mustache/Cache/NoopCache.php: -------------------------------------------------------------------------------- 1 | log( 41 | Mustache_Logger::WARNING, 42 | 'Template cache disabled, evaluating "{className}" class at runtime', 43 | array('className' => $key) 44 | ); 45 | eval('?>' . $value); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/symfony/deprecation-contracts/README.md: -------------------------------------------------------------------------------- 1 | Symfony Deprecation Contracts 2 | ============================= 3 | 4 | A generic function and convention to trigger deprecation notices. 5 | 6 | This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices. 7 | 8 | By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component, 9 | the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments. 10 | 11 | The function requires at least 3 arguments: 12 | - the name of the Composer package that is triggering the deprecation 13 | - the version of the package that introduced the deprecation 14 | - the message of the deprecation 15 | - more arguments can be provided: they will be inserted in the message using `printf()` formatting 16 | 17 | Example: 18 | ```php 19 | trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin'); 20 | ``` 21 | 22 | This will generate the following message: 23 | `Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.` 24 | 25 | While not necessarily recommended, the deprecation notices can be completely ignored by declaring an empty 26 | `function trigger_deprecation() {}` in your application. 27 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/utils/git-setup-pre-commit-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Setup Git pre-commit hook. 4 | # 5 | 6 | # stop when composer.json file is not found 7 | if [[ ! -f "composer.json" ]]; then 8 | echo "unable to locate composer.json file." 9 | exit 1 10 | fi 11 | 12 | # determine the phpcs binary location 13 | if [[ -f "vendor/bin/phpcs" ]]; then 14 | phpcs_bin="./vendor/bin/phpcs" 15 | elif [[ -n $COMPOSER_BIN_DIR && -f "$COMPOSER_BIN_DIR/phpcs" ]]; then 16 | phpcs_bin="./$COMPOSER_BIN_DIR/phpcs" 17 | elif [[ -n $COMPOSER_VENDOR_DIR && -f "$COMPOSER_VENDOR_DIR/bin/phpcs" ]]; then 18 | phpcs_bin="./$COMPOSER_VENDOR_DIR/bin/phpcs" 19 | else 20 | echo "pre-commit hook: unable to locate phpcs binary file." 21 | exit 22 | fi 23 | 24 | if git --version &>/dev/null; then 25 | pre_commit_file="$(git rev-parse --git-dir)/hooks/pre-commit" 26 | else 27 | pre_commit_file=".git/hooks/pre-commit" 28 | fi 29 | 30 | # create the pre-commit file or notify to add command if it already exists 31 | if [[ ! -f "$pre_commit_file" ]]; then 32 | cat utils/git-pre-commit-script | sed 's|{{PHPCS_BIN}}|'$phpcs_bin'|' > $pre_commit_file 33 | chmod +x $pre_commit_file 34 | elif ! grep -q "phpcs" $pre_commit_file; then 35 | echo -e "hook file already exists: $pre_commit_file\n\nplease add the below command to your pre-commit file:\n\n$phpcs_bin" 36 | fi 37 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception/InvalidArgument.php: -------------------------------------------------------------------------------- 1 | abort = true; 38 | $this->reason = (string) $reason; 39 | } 40 | 41 | /** 42 | * Check whether the command addition was aborted. 43 | * 44 | * @return bool 45 | */ 46 | public function was_aborted() { 47 | return $this->abort; 48 | } 49 | 50 | /** 51 | * Get the reason as to why the addition was aborted. 52 | * 53 | * @return string 54 | */ 55 | public function get_reason() { 56 | return $this->reason; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/tests/indent_1.yaml: -------------------------------------------------------------------------------- 1 | root: 2 | child_1: 2 3 | 4 | child_2: 0 5 | child_3: 1 6 | 7 | root2: 8 | child_1: 1 9 | # A comment 10 | child_2: 2 11 | 12 | displays: 13 | - resolutions: 14 | 1024: 768 15 | - resolutions: 16 | 1920: 1200 17 | 18 | display: 19 | - resolutions: 20 | 1024: 768 21 | 1920: 1200 22 | producer: "Nec" 23 | 24 | nested_hashes_and_seqs: 25 | - { row: 0, col: 0, headsets_affected: [{ports: [0], side: left}], switch_function: {ics_ptt: true} } 26 | 27 | easier_nest: { h: [{a: b, a1: b1}, {c: d}] } 28 | 29 | one_space: | 30 | By four 31 | spaces 32 | 33 | steps: 34 | - step: &id001 35 | instrument: Lasik 2000 36 | pulseEnergy: 5.4 37 | pulseDuration: 12 38 | repetition: 1000 39 | spotSize: 1mm 40 | - step: 41 | <<: *id001 42 | spotSize: 2mm 43 | 44 | death masks are: 45 | sad: 2 46 | <<: {magnificent: 4} 47 | 48 | login: &login 49 | adapter: mysql 50 | host: localhost 51 | 52 | development: 53 | database: rails_dev 54 | <<: *login 55 | 56 | "key": "value:" 57 | colon_only: ":" 58 | 59 | list_and_comment: [one, two, three] # comment 60 | kai: 61 | -example: value 62 | kai_list_of_items: 63 | - -item 64 | - '-item' 65 | -item 66 | 67 | &foo bar: 68 | 1: "abc" 69 | 70 | zzz: *foo 71 | -------------------------------------------------------------------------------- /vendor/wp-cli/mustangostang-spyc/README.md: -------------------------------------------------------------------------------- 1 | # `mustangostang/spyc` WP-CLI fork 2 | 3 | This is a fork of the [`mustangostang/spyc`](https://github.com/mustangostang/spyc) package, under a different name to avoid potential security issues. 4 | 5 | See [`wp-cli/wp-cli#4017`](https://github.com/wp-cli/wp-cli/issues/4017) for more information. 6 | 7 | **_Original documentation follows below:_** 8 | 9 | --- 10 | 11 | **Spyc** is a YAML loader/dumper written in pure PHP. Given a YAML document, Spyc will return an array that 12 | you can use however you see fit. Given an array, Spyc will return a string which contains a YAML document 13 | built from your data. 14 | 15 | **YAML** is an amazingly human friendly and strikingly versatile data serialization language which can be used 16 | for log files, config files, custom protocols, the works. For more information, see http://www.yaml.org. 17 | 18 | Spyc supports YAML 1.0 specification. 19 | 20 | ## Using Spyc 21 | 22 | Using Spyc is trivial: 23 | 24 | ``` 25 | ] 30 | * 31 | * ## EXAMPLES 32 | * 33 | * $ wp foo command2 --path=/**a/**b/**c/** 34 | */ 35 | 36 | final 37 | protected 38 | static 39 | function 40 | command2() { 41 | } 42 | 43 | /** 44 | * Command3 function 45 | * 46 | * ## OPTIONS 47 | * 48 | * [--path=] 49 | * 50 | * ## EXAMPLES 51 | * 52 | * $ wp foo command3 --path=/**a/**b/**c/** 53 | function*/public function command3( $function ) {} 54 | 55 | function command4() {} 56 | } 57 | 58 | /** 59 | * Basic class 60 | * 61 | * ## EXAMPLES 62 | * 63 | * # Foo. 64 | * $ wp foo --final abstract 65 | class*/abstract class 66 | CommandFactoryTests_Get_Doc_Comment_2_Command_Win 67 | extends WP_CLI_Command 68 | { 69 | function command1() {} 70 | } 71 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/examples/arguments.php: -------------------------------------------------------------------------------- 1 | addFlag(array('verbose', 'v'), 'Turn on verbose output'); 20 | $arguments->addFlag('version', 'Display the version'); 21 | $arguments->addFlag(array('quiet', 'q'), 'Disable all output'); 22 | $arguments->addFlag(array('help', 'h'), 'Show this help screen'); 23 | 24 | $arguments->addOption(array('cache', 'C'), array( 25 | 'default' => getcwd(), 26 | 'description' => 'Set the cache directory')); 27 | $arguments->addOption(array('name', 'n'), array( 28 | 'default' => 'James', 29 | 'description' => 'Set a name with a really long description and a default so we can see what line wrapping looks like which is probably a goo idea')); 30 | 31 | $arguments->parse(); 32 | if ($arguments['help']) { 33 | echo $arguments->getHelpScreen(); 34 | echo "\n\n"; 35 | } 36 | 37 | echo $arguments->asJSON() . "\n"; 38 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/RegisterFrameworkCommands.php: -------------------------------------------------------------------------------- 1 | getMessage() 48 | ); 49 | } 50 | } 51 | 52 | return $state; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/features/validation.feature: -------------------------------------------------------------------------------- 1 | Feature: Argument validation 2 | In order to catch errors fast 3 | As a user 4 | I need to see warnings and errors when I pass incorrect arguments 5 | 6 | Scenario: Passing zero arguments to a variadic command 7 | Given a WP installation 8 | 9 | When I try `wp plugin install` 10 | Then the return code should be 1 11 | Then STDOUT should contain: 12 | """ 13 | usage: wp plugin install 14 | """ 15 | 16 | Scenario: Validation for early commands 17 | Given an empty directory 18 | And WP files 19 | 20 | When I try `wp core config` 21 | Then the return code should be 1 22 | And STDERR should contain: 23 | """ 24 | Parameter errors: 25 | """ 26 | And STDERR should contain: 27 | """ 28 | missing --dbname parameter 29 | """ 30 | 31 | When I try `wp core config --invalid --other-invalid` 32 | Then the return code should be 1 33 | And STDERR should contain: 34 | """ 35 | unknown --invalid parameter 36 | """ 37 | And STDERR should contain: 38 | """ 39 | unknown --other-invalid parameter 40 | """ 41 | 42 | When I try `wp core version invalid` 43 | Then the return code should be 1 44 | And STDERR should contain: 45 | """ 46 | Error: Too many positional arguments: invalid 47 | """ 48 | And STDOUT should be empty 49 | -------------------------------------------------------------------------------- /vendor/symfony/finder/Iterator/FilenameFilterIterator.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Iterator; 13 | 14 | use Symfony\Component\Finder\Glob; 15 | 16 | /** 17 | * FilenameFilterIterator filters files by patterns (a regexp, a glob, or a string). 18 | * 19 | * @author Fabien Potencier 20 | * 21 | * @extends MultiplePcreFilterIterator 22 | */ 23 | class FilenameFilterIterator extends MultiplePcreFilterIterator 24 | { 25 | /** 26 | * Filters the iterator values. 27 | * 28 | * @return bool 29 | */ 30 | #[\ReturnTypeWillChange] 31 | public function accept() 32 | { 33 | return $this->isAccepted($this->current()->getFilename()); 34 | } 35 | 36 | /** 37 | * Converts glob to regexp. 38 | * 39 | * PCRE patterns are left unchanged. 40 | * Glob strings are transformed with Glob::toRegex(). 41 | * 42 | * @param string $str Pattern: glob or regexp 43 | * 44 | * @return string 45 | */ 46 | protected function toRegex(string $str) 47 | { 48 | return $this->isRegex($str) ? $str : Glob::toRegex($str); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception.php: -------------------------------------------------------------------------------- 1 | type = $type; 44 | $this->data = $data; 45 | } 46 | 47 | /** 48 | * Like {@see \Exception::getCode()}, but a string code. 49 | * 50 | * @codeCoverageIgnore 51 | * @return string 52 | */ 53 | public function getType() { 54 | return $this->type; 55 | } 56 | 57 | /** 58 | * Gives any relevant data 59 | * 60 | * @codeCoverageIgnore 61 | * @return mixed 62 | */ 63 | public function getData() { 64 | return $this->data; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandNamespace.php: -------------------------------------------------------------------------------- 1 | get_subcommands(); 26 | 27 | $i = 0; 28 | $count = 0; 29 | 30 | foreach ( $methods as $subcommand ) { 31 | $prefix = ( 0 === $i ) ? 'usage: ' : ' or: '; 32 | $i++; 33 | 34 | if ( \WP_CLI::get_runner()->is_command_disabled( $subcommand ) ) { 35 | continue; 36 | } 37 | 38 | \WP_CLI::line( $subcommand->get_usage( $prefix ) ); 39 | $count++; 40 | } 41 | 42 | $cmd_name = implode( ' ', array_slice( get_path( $this ), 1 ) ); 43 | $message = $count > 0 44 | ? "See 'wp help $cmd_name ' for more information on a specific command." 45 | : "The namespace $cmd_name does not contain any usable commands in the current context."; 46 | 47 | \WP_CLI::line(); 48 | \WP_CLI::line( $message ); 49 | 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Base.php: -------------------------------------------------------------------------------- 1 | get( $arg ); 35 | 36 | if ( ! $item ) { 37 | WP_CLI::error( sprintf( $this->msg, $arg ) ); 38 | } 39 | 40 | return $item; 41 | } 42 | 43 | /** 44 | * Get multiple items. 45 | * 46 | * @param array $args The raw CLI arguments. 47 | * @return array The list of found items. 48 | */ 49 | public function get_many( $args ) { 50 | $items = []; 51 | 52 | foreach ( $args as $arg ) { 53 | $item = $this->get( $arg ); 54 | 55 | if ( $item ) { 56 | $items[] = $item; 57 | } else { 58 | WP_CLI::warning( sprintf( $this->msg, $arg ) ); 59 | } 60 | } 61 | 62 | return $items; 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/lib/cli/notify/Spinner.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright 2010 James Logsdom (http://girsbrain.org) 10 | * @license http://www.opensource.org/licenses/mit-license.php The MIT License 11 | */ 12 | 13 | namespace cli\notify; 14 | 15 | use cli\Notify; 16 | use cli\Streams; 17 | 18 | /** 19 | * The `Spinner` Notifier displays an ASCII spinner. 20 | */ 21 | class Spinner extends Notify { 22 | protected $_chars = '-\|/'; 23 | protected $_format = '{:msg} {:char} ({:elapsed}, {:speed}/s)'; 24 | protected $_iteration = 0; 25 | 26 | /** 27 | * Prints the current spinner position to `STDOUT` with the time elapsed 28 | * and tick speed. 29 | * 30 | * @param boolean $finish `true` if this was called from 31 | * `cli\Notify::finish()`, `false` otherwise. 32 | * @see cli\out_padded() 33 | * @see cli\Notify::formatTime() 34 | * @see cli\Notify::speed() 35 | */ 36 | public function display($finish = false) { 37 | $msg = $this->_message; 38 | $idx = $this->_iteration++ % strlen($this->_chars); 39 | $char = $this->_chars[$idx]; 40 | $speed = number_format(round($this->speed())); 41 | $elapsed = $this->formatTime($this->elapsed()); 42 | 43 | Streams::out_padded($this->_format, compact('msg', 'char', 'elapsed', 'speed')); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/features/cli-info.feature: -------------------------------------------------------------------------------- 1 | Feature: Review CLI information 2 | 3 | Background: 4 | When I run `wp package path` 5 | Then save STDOUT as {PACKAGE_PATH} 6 | 7 | Scenario: Get the path to the packages directory 8 | Given an empty directory 9 | And a non-existent {PACKAGE_PATH} directory 10 | 11 | When I run `wp cli info --format=json` 12 | Then STDOUT should be JSON containing: 13 | """ 14 | {"wp_cli_packages_dir_path":null} 15 | """ 16 | 17 | # Allow for composer/ca-bundle using `openssl_x509_parse()` which throws PHP warnings on old versions of PHP. 18 | When I try `wp package install danielbachhuber/wp-cli-reset-post-date-command` 19 | And I run `wp cli info --format=json` 20 | Then STDOUT should be JSON containing: 21 | """ 22 | {"wp_cli_packages_dir_path":"{PACKAGE_PATH}"} 23 | """ 24 | 25 | When I run `wp cli info` 26 | Then STDOUT should contain: 27 | """ 28 | WP-CLI packages dir: 29 | """ 30 | 31 | Scenario: Packages directory path should be slashed correctly 32 | When I run `WP_CLI_PACKAGES_DIR=/foo wp package path` 33 | Then STDOUT should be: 34 | """ 35 | /foo/ 36 | """ 37 | 38 | When I run `WP_CLI_PACKAGES_DIR=/foo/ wp package path` 39 | Then STDOUT should be: 40 | """ 41 | /foo/ 42 | """ 43 | 44 | When I run `WP_CLI_PACKAGES_DIR=/foo\\ wp package path` 45 | Then STDOUT should be: 46 | """ 47 | /foo/ 48 | """ 49 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/commands/src/CLI_Cache_Command.php: -------------------------------------------------------------------------------- 1 | is_enabled() ) { 34 | WP_CLI::error( 'Cache directory does not exist.' ); 35 | } 36 | 37 | $cache->clear(); 38 | 39 | WP_CLI::success( 'Cache cleared.' ); 40 | } 41 | 42 | /** 43 | * Prunes the internal cache. 44 | * 45 | * Removes all cached files except for the newest version of each one. 46 | * 47 | * ## EXAMPLES 48 | * 49 | * $ wp cli cache prune 50 | * Success: Cache pruned. 51 | * 52 | * @subcommand prune 53 | */ 54 | public function cache_prune() { 55 | $cache = WP_CLI::get_cache(); 56 | 57 | if ( ! $cache->is_enabled() ) { 58 | WP_CLI::error( 'Cache directory does not exist.' ); 59 | } 60 | 61 | $cache->prune(); 62 | 63 | WP_CLI::success( 'Cache pruned.' ); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/DefineProtectedCommands.php: -------------------------------------------------------------------------------- 1 | get_protected_commands(); 24 | $current_command = $this->get_current_command(); 25 | 26 | foreach ( $commands as $command ) { 27 | if ( 0 === strpos( $current_command, $command ) ) { 28 | $state->setValue( BootstrapState::IS_PROTECTED_COMMAND, true ); 29 | } 30 | } 31 | 32 | return $state; 33 | } 34 | 35 | /** 36 | * Get the list of protected commands. 37 | * 38 | * @return array 39 | */ 40 | private function get_protected_commands() { 41 | return [ 42 | 'cli info', 43 | 'package', 44 | ]; 45 | } 46 | 47 | /** 48 | * Get the current command as a string. 49 | * 50 | * @return string Current command to be executed. 51 | */ 52 | private function get_current_command() { 53 | $runner = new RunnerInstance(); 54 | 55 | return implode( ' ', (array) $runner()->arguments ); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/User.php: -------------------------------------------------------------------------------- 1 | msg = "Invalid user login: '%s'"; 30 | return get_user_by( 'login', $arg ); 31 | } 32 | 33 | if ( is_numeric( $arg ) ) { 34 | $check = get_user_by( 'login', $arg ); 35 | $user = get_user_by( 'id', $arg ); 36 | if ( $check && $user ) { 37 | WP_CLI::warning( 38 | sprintf( 39 | 'Ambiguous user match detected (both ID and user_login exist for identifier \'%d\'). WP-CLI will default to the ID, but you can force user_login instead with WP_CLI_FORCE_USER_LOGIN=1.', 40 | $arg 41 | ) 42 | ); 43 | } 44 | } elseif ( is_email( $arg ) ) { 45 | $user = get_user_by( 'email', $arg ); 46 | // Logins can be emails. 47 | if ( ! $user ) { 48 | $user = get_user_by( 'login', $arg ); 49 | } 50 | } else { 51 | $user = get_user_by( 'login', $arg ); 52 | } 53 | 54 | return $user; 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludePackageAutoloader.php: -------------------------------------------------------------------------------- 1 | state->getValue( BootstrapState::IS_PROTECTED_COMMAND, false ) ) { 24 | return false; 25 | } 26 | 27 | $runner = new RunnerInstance(); 28 | $skip_packages = $runner()->config['skip-packages']; 29 | if ( true === $skip_packages ) { 30 | WP_CLI::debug( 'Skipped loading packages.', 'bootstrap' ); 31 | 32 | return false; 33 | } 34 | 35 | $autoloader_path = $runner()->get_packages_dir_path() . 'vendor/autoload.php'; 36 | 37 | if ( is_readable( $autoloader_path ) ) { 38 | WP_CLI::debug( 39 | 'Loading packages from: ' . $autoloader_path, 40 | 'bootstrap' 41 | ); 42 | 43 | return [ 44 | $autoloader_path, 45 | ]; 46 | } 47 | 48 | return false; 49 | } 50 | 51 | /** 52 | * Handle the failure to find an autoloader. 53 | * 54 | * @return void 55 | */ 56 | protected function handle_failure() { 57 | WP_CLI::debug( 'No package autoload found to load.', 'bootstrap' ); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeFrameworkAutoloader.php: -------------------------------------------------------------------------------- 1 | WP_CLI_ROOT . '/php/WP_CLI', 36 | 'cli' => WP_CLI_VENDOR_DIR . '/wp-cli/php-cli-tools/lib/cli', 37 | 'Symfony\Component\Finder' => WP_CLI_VENDOR_DIR . '/symfony/finder/', 38 | ]; 39 | 40 | foreach ( $mappings as $namespace => $folder ) { 41 | $autoloader->add_namespace( 42 | $namespace, 43 | $folder 44 | ); 45 | } 46 | 47 | include_once WP_CLI_VENDOR_DIR . '/wp-cli/mustangostang-spyc/Spyc.php'; 48 | 49 | $autoloader->register(); 50 | 51 | return $state; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Quiet.php: -------------------------------------------------------------------------------- 1 | in_color = $in_color; 17 | } 18 | 19 | /** 20 | * Informational messages aren't logged. 21 | * 22 | * @param string $message Message to write. 23 | */ 24 | public function info( $message ) { 25 | // Nothing. 26 | } 27 | 28 | /** 29 | * Success messages aren't logged. 30 | * 31 | * @param string $message Message to write. 32 | */ 33 | public function success( $message ) { 34 | // Nothing. 35 | } 36 | 37 | /** 38 | * Warning messages aren't logged. 39 | * 40 | * @param string $message Message to write. 41 | */ 42 | public function warning( $message ) { 43 | // Nothing. 44 | } 45 | 46 | /** 47 | * Write an error message to STDERR, prefixed with "Error: ". 48 | * 49 | * @param string $message Message to write. 50 | */ 51 | public function error( $message ) { 52 | $this->_line( $message, 'Error', '%R', STDERR ); 53 | } 54 | 55 | /** 56 | * Similar to error( $message ), but outputs $message in a red box. 57 | * 58 | * @param array $message_lines Message to write. 59 | */ 60 | public function error_multi_line( $message_lines ) { 61 | $message = implode( "\n", $message_lines ); 62 | 63 | $this->_line( $message, 'Error', '%R', STDERR ); 64 | $this->_line( '', '---------', '%R', STDERR ); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /vendor/wp-cli/php-cli-tools/lib/cli/table/Renderer.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright 2010 James Logsdom (http://girsbrain.org) 10 | * @license http://www.opensource.org/licenses/mit-license.php The MIT License 11 | */ 12 | 13 | namespace cli\table; 14 | 15 | /** 16 | * Table renderers are used to change how a table is displayed. 17 | */ 18 | abstract class Renderer { 19 | protected $_widths = array(); 20 | 21 | public function __construct(array $widths = array()) { 22 | $this->setWidths($widths); 23 | } 24 | 25 | /** 26 | * Set the widths of each column in the table. 27 | * 28 | * @param array $widths The widths of the columns. 29 | * @param bool $fallback Whether to use these values as fallback only. 30 | */ 31 | public function setWidths(array $widths, $fallback = false) { 32 | if ($fallback) { 33 | foreach ( $this->_widths as $index => $value ) { 34 | $widths[$index] = $value; 35 | } 36 | } 37 | $this->_widths = $widths; 38 | } 39 | 40 | /** 41 | * Render a border for the top and bottom and separating the headers from the 42 | * table rows. 43 | * 44 | * @return string The table border. 45 | */ 46 | public function border() { 47 | return null; 48 | } 49 | 50 | /** 51 | * Renders a row for output. 52 | * 53 | * @param array $row The table row. 54 | * @return string The formatted table row. 55 | */ 56 | abstract public function row(array $row); 57 | } 58 | -------------------------------------------------------------------------------- /vendor/symfony/finder/Comparator/DateComparator.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Comparator; 13 | 14 | /** 15 | * DateCompare compiles date comparisons. 16 | * 17 | * @author Fabien Potencier 18 | */ 19 | class DateComparator extends Comparator 20 | { 21 | /** 22 | * @param string $test A comparison string 23 | * 24 | * @throws \InvalidArgumentException If the test is not understood 25 | */ 26 | public function __construct(string $test) 27 | { 28 | if (!preg_match('#^\s*(==|!=|[<>]=?|after|since|before|until)?\s*(.+?)\s*$#i', $test, $matches)) { 29 | throw new \InvalidArgumentException(sprintf('Don\'t understand "%s" as a date test.', $test)); 30 | } 31 | 32 | try { 33 | $date = new \DateTime($matches[2]); 34 | $target = $date->format('U'); 35 | } catch (\Exception $e) { 36 | throw new \InvalidArgumentException(sprintf('"%s" is not a valid date.', $matches[2])); 37 | } 38 | 39 | $operator = $matches[1] ?? '=='; 40 | if ('since' === $operator || 'after' === $operator) { 41 | $operator = '>'; 42 | } 43 | 44 | if ('until' === $operator || 'before' === $operator) { 45 | $operator = '<'; 46 | } 47 | 48 | parent::__construct($target, $operator); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /vendor/symfony/finder/Iterator/FileTypeFilterIterator.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Iterator; 13 | 14 | /** 15 | * FileTypeFilterIterator only keeps files, directories, or both. 16 | * 17 | * @author Fabien Potencier 18 | * 19 | * @extends \FilterIterator 20 | */ 21 | class FileTypeFilterIterator extends \FilterIterator 22 | { 23 | public const ONLY_FILES = 1; 24 | public const ONLY_DIRECTORIES = 2; 25 | 26 | private $mode; 27 | 28 | /** 29 | * @param \Iterator $iterator The Iterator to filter 30 | * @param int $mode The mode (self::ONLY_FILES or self::ONLY_DIRECTORIES) 31 | */ 32 | public function __construct(\Iterator $iterator, int $mode) 33 | { 34 | $this->mode = $mode; 35 | 36 | parent::__construct($iterator); 37 | } 38 | 39 | /** 40 | * Filters the iterator values. 41 | * 42 | * @return bool 43 | */ 44 | #[\ReturnTypeWillChange] 45 | public function accept() 46 | { 47 | $fileinfo = $this->current(); 48 | if (self::ONLY_DIRECTORIES === (self::ONLY_DIRECTORIES & $this->mode) && $fileinfo->isFile()) { 49 | return false; 50 | } elseif (self::ONLY_FILES === (self::ONLY_FILES & $this->mode) && $fileinfo->isDir()) { 51 | return false; 52 | } 53 | 54 | return true; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Iterator; 13 | 14 | /** 15 | * DepthRangeFilterIterator limits the directory depth. 16 | * 17 | * @author Fabien Potencier 18 | * 19 | * @template-covariant TKey 20 | * @template-covariant TValue 21 | * 22 | * @extends \FilterIterator 23 | */ 24 | class DepthRangeFilterIterator extends \FilterIterator 25 | { 26 | private $minDepth = 0; 27 | 28 | /** 29 | * @param \RecursiveIteratorIterator<\RecursiveIterator> $iterator The Iterator to filter 30 | * @param int $minDepth The min depth 31 | * @param int $maxDepth The max depth 32 | */ 33 | public function __construct(\RecursiveIteratorIterator $iterator, int $minDepth = 0, int $maxDepth = \PHP_INT_MAX) 34 | { 35 | $this->minDepth = $minDepth; 36 | $iterator->setMaxDepth(\PHP_INT_MAX === $maxDepth ? -1 : $maxDepth); 37 | 38 | parent::__construct($iterator); 39 | } 40 | 41 | /** 42 | * Filters the iterator values. 43 | * 44 | * @return bool 45 | */ 46 | #[\ReturnTypeWillChange] 47 | public function accept() 48 | { 49 | return $this->getInnerIterator()->getDepth() >= $this->minDepth; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Iterator; 13 | 14 | use Symfony\Component\Finder\Comparator\NumberComparator; 15 | 16 | /** 17 | * SizeRangeFilterIterator filters out files that are not in the given size range. 18 | * 19 | * @author Fabien Potencier 20 | * 21 | * @extends \FilterIterator 22 | */ 23 | class SizeRangeFilterIterator extends \FilterIterator 24 | { 25 | private $comparators = []; 26 | 27 | /** 28 | * @param \Iterator $iterator 29 | * @param NumberComparator[] $comparators 30 | */ 31 | public function __construct(\Iterator $iterator, array $comparators) 32 | { 33 | $this->comparators = $comparators; 34 | 35 | parent::__construct($iterator); 36 | } 37 | 38 | /** 39 | * Filters the iterator values. 40 | * 41 | * @return bool 42 | */ 43 | #[\ReturnTypeWillChange] 44 | public function accept() 45 | { 46 | $fileinfo = $this->current(); 47 | if (!$fileinfo->isFile()) { 48 | return true; 49 | } 50 | 51 | $filesize = $fileinfo->getSize(); 52 | foreach ($this->comparators as $compare) { 53 | if (!$compare->test($filesize)) { 54 | return false; 55 | } 56 | } 57 | 58 | return true; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Exception/ArgumentCount.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Symfony\Polyfill\Php80 as p; 13 | 14 | if (\PHP_VERSION_ID >= 80000) { 15 | return; 16 | } 17 | 18 | if (!defined('FILTER_VALIDATE_BOOL') && defined('FILTER_VALIDATE_BOOLEAN')) { 19 | define('FILTER_VALIDATE_BOOL', \FILTER_VALIDATE_BOOLEAN); 20 | } 21 | 22 | if (!function_exists('fdiv')) { 23 | function fdiv(float $num1, float $num2): float { return p\Php80::fdiv($num1, $num2); } 24 | } 25 | if (!function_exists('preg_last_error_msg')) { 26 | function preg_last_error_msg(): string { return p\Php80::preg_last_error_msg(); } 27 | } 28 | if (!function_exists('str_contains')) { 29 | function str_contains(?string $haystack, ?string $needle): bool { return p\Php80::str_contains($haystack ?? '', $needle ?? ''); } 30 | } 31 | if (!function_exists('str_starts_with')) { 32 | function str_starts_with(?string $haystack, ?string $needle): bool { return p\Php80::str_starts_with($haystack ?? '', $needle ?? ''); } 33 | } 34 | if (!function_exists('str_ends_with')) { 35 | function str_ends_with(?string $haystack, ?string $needle): bool { return p\Php80::str_ends_with($haystack ?? '', $needle ?? ''); } 36 | } 37 | if (!function_exists('get_debug_type')) { 38 | function get_debug_type($value): string { return p\Php80::get_debug_type($value); } 39 | } 40 | if (!function_exists('get_resource_id')) { 41 | function get_resource_id($resource): int { return p\Php80::get_resource_id($resource); } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/ProcessRun.php: -------------------------------------------------------------------------------- 1 | $value ) { 66 | $this->$key = $value; 67 | } 68 | } 69 | 70 | /** 71 | * Return properties of executed command as a string. 72 | * 73 | * @return string 74 | */ 75 | public function __toString() { 76 | $out = "$ $this->command\n"; 77 | $out .= "$this->stdout\n$this->stderr"; 78 | $out .= "cwd: $this->cwd\n"; 79 | $out .= "run time: $this->run_time\n"; 80 | $out .= "exit status: $this->return_code"; 81 | 82 | return $out; 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/BootstrapState.php: -------------------------------------------------------------------------------- 1 | state ) 43 | ? $this->state[ $key ] 44 | : $fallback; 45 | } 46 | 47 | /** 48 | * Set the state value for a given key. 49 | * 50 | * @param string $key Key to set the state for. 51 | * @param mixed $value Value to set the state for the given key to. 52 | * 53 | * @return void 54 | */ 55 | public function setValue( $key, $value ) { 56 | $this->state[ $key ] = $value; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/symfony/finder/Iterator/PathFilterIterator.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Iterator; 13 | 14 | /** 15 | * PathFilterIterator filters files by path patterns (e.g. some/special/dir). 16 | * 17 | * @author Fabien Potencier 18 | * @author Włodzimierz Gajda 19 | * 20 | * @extends MultiplePcreFilterIterator 21 | */ 22 | class PathFilterIterator extends MultiplePcreFilterIterator 23 | { 24 | /** 25 | * Filters the iterator values. 26 | * 27 | * @return bool 28 | */ 29 | #[\ReturnTypeWillChange] 30 | public function accept() 31 | { 32 | $filename = $this->current()->getRelativePathname(); 33 | 34 | if ('\\' === \DIRECTORY_SEPARATOR) { 35 | $filename = str_replace('\\', '/', $filename); 36 | } 37 | 38 | return $this->isAccepted($filename); 39 | } 40 | 41 | /** 42 | * Converts strings to regexp. 43 | * 44 | * PCRE patterns are left unchanged. 45 | * 46 | * Default conversion: 47 | * 'lorem/ipsum/dolor' ==> 'lorem\/ipsum\/dolor/' 48 | * 49 | * Use only / as directory separator (on Windows also). 50 | * 51 | * @param string $str Pattern: regexp or dirname 52 | * 53 | * @return string 54 | */ 55 | protected function toRegex(string $str) 56 | { 57 | return $this->isRegex($str) ? $str : '/'.preg_quote($str, '/').'/'; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/symfony/finder/Iterator/DateRangeFilterIterator.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Iterator; 13 | 14 | use Symfony\Component\Finder\Comparator\DateComparator; 15 | 16 | /** 17 | * DateRangeFilterIterator filters out files that are not in the given date range (last modified dates). 18 | * 19 | * @author Fabien Potencier 20 | * 21 | * @extends \FilterIterator 22 | */ 23 | class DateRangeFilterIterator extends \FilterIterator 24 | { 25 | private $comparators = []; 26 | 27 | /** 28 | * @param \Iterator $iterator 29 | * @param DateComparator[] $comparators 30 | */ 31 | public function __construct(\Iterator $iterator, array $comparators) 32 | { 33 | $this->comparators = $comparators; 34 | 35 | parent::__construct($iterator); 36 | } 37 | 38 | /** 39 | * Filters the iterator values. 40 | * 41 | * @return bool 42 | */ 43 | #[\ReturnTypeWillChange] 44 | public function accept() 45 | { 46 | $fileinfo = $this->current(); 47 | 48 | if (!file_exists($fileinfo->getPathname())) { 49 | return false; 50 | } 51 | 52 | $filedate = $fileinfo->getMTime(); 53 | foreach ($this->comparators as $compare) { 54 | if (!$compare->test($filedate)) { 55 | return false; 56 | } 57 | } 58 | 59 | return true; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /vendor/symfony/finder/Iterator/FilecontentFilterIterator.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Finder\Iterator; 13 | 14 | /** 15 | * FilecontentFilterIterator filters files by their contents using patterns (regexps or strings). 16 | * 17 | * @author Fabien Potencier 18 | * @author Włodzimierz Gajda 19 | * 20 | * @extends MultiplePcreFilterIterator 21 | */ 22 | class FilecontentFilterIterator extends MultiplePcreFilterIterator 23 | { 24 | /** 25 | * Filters the iterator values. 26 | * 27 | * @return bool 28 | */ 29 | #[\ReturnTypeWillChange] 30 | public function accept() 31 | { 32 | if (!$this->matchRegexps && !$this->noMatchRegexps) { 33 | return true; 34 | } 35 | 36 | $fileinfo = $this->current(); 37 | 38 | if ($fileinfo->isDir() || !$fileinfo->isReadable()) { 39 | return false; 40 | } 41 | 42 | $content = $fileinfo->getContents(); 43 | if (!$content) { 44 | return false; 45 | } 46 | 47 | return $this->isAccepted($content); 48 | } 49 | 50 | /** 51 | * Converts string to regexp if necessary. 52 | * 53 | * @param string $str Pattern: string or regexp 54 | * 55 | * @return string 56 | */ 57 | protected function toRegex(string $str) 58 | { 59 | return $this->isRegex($str) ? $str : '/'.preg_quote($str, '/').'/'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport.php: -------------------------------------------------------------------------------- 1 | $capabilities Optional. Associative array of capabilities to test against, i.e. `['' => true]`. 42 | * @return bool Whether the transport can be used. 43 | */ 44 | public static function test($capabilities = []); 45 | } 46 | --------------------------------------------------------------------------------