From 8b84aaa2a48b69fd76d0fc368172868aeababf15 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Sat, 27 Feb 2021 09:55:50 +0000 Subject: [PATCH 01/24] Switch to data-hero-candidate branch for amp-toolbox --- composer.json | 2 +- composer.lock | 1512 +++---------------------------------------------- 2 files changed, 92 insertions(+), 1422 deletions(-) diff --git a/composer.json b/composer.json index e732dfd6059..6bdb36ca951 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "ext-json": "*", "ext-libxml": "*", "ext-spl": "*", - "ampproject/amp-toolbox": "^0.1", + "ampproject/amp-toolbox": "dev-add/data-hero-candidate-attribute-support", "cweagans/composer-patches": "1.7.0", "fasterimage/fasterimage": "1.5.0", "sabberworm/php-css-parser": "dev-master#bfdd976" diff --git a/composer.lock b/composer.lock index 5fb083373cf..8263a04ed87 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8357a2e5a66e29b1039ad807cc8644e4", + "content-hash": "86f4b0fd807b54c60d8be662b29048cf", "packages": [ { "name": "ampproject/amp-toolbox", - "version": "0.1.1", + "version": "dev-add/data-hero-candidate-attribute-support", "source": { "type": "git", "url": "https://github.com/ampproject/amp-toolbox-php.git", - "reference": "c14b5b9f9c9c2af3d78d791750d35dc83667b65b" + "reference": "70fda009ef17b749835c4bfb57f36b6c6f4f9096" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ampproject/amp-toolbox-php/zipball/c14b5b9f9c9c2af3d78d791750d35dc83667b65b", - "reference": "c14b5b9f9c9c2af3d78d791750d35dc83667b65b", + "url": "https://api.github.com/repos/ampproject/amp-toolbox-php/zipball/70fda009ef17b749835c4bfb57f36b6c6f4f9096", + "reference": "70fda009ef17b749835c4bfb57f36b6c6f4f9096", "shasum": "" }, "require": { @@ -25,17 +25,19 @@ "ext-iconv": "*", "ext-json": "*", "ext-libxml": "*", - "php": "^5.6 || ^7.0" + "php": "^5.6 || ^7.0 || ^8.0" }, "require-dev": { - "civicrm/composer-downloads-plugin": "^2.1", - "dealerdirect/phpcodesniffer-composer-installer": "0.7.0", + "civicrm/composer-downloads-plugin": "^2.1 || ^3.0", + "dealerdirect/phpcodesniffer-composer-installer": "0.7.1", "ext-zip": "*", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpcompatibility/phpcompatibility-wp": "2.1.0", + "phpcompatibility/phpcompatibility-wp": "2.1.1", + "phpunit/phpunit": "^5 || ^6 || ^7 || ^8 || ^9", "roave/security-advisories": "dev-master", - "sirbrillig/phpcs-variable-analysis": "2.9.0", - "squizlabs/php_codesniffer": "^3" + "sirbrillig/phpcs-variable-analysis": "2.10.2", + "squizlabs/php_codesniffer": "^3", + "yoast/phpunit-polyfills": "^0.2.0" }, "suggest": { "ext-json": "Provides native implementation of json_encode()/json_decode().", @@ -61,7 +63,7 @@ "Apache-2.0" ], "description": "A collection of AMP tools making it easier to publish and host AMP pages with PHP.", - "time": "2020-12-11T18:20:11+00:00" + "time": "2021-02-27T06:04:57+00:00" }, { "name": "cweagans/composer-patches", @@ -184,6 +186,13 @@ "phpunit/phpunit": "^4.8.36" }, "type": "library", + "extra": { + "patches_applied": { + "1. Add additional validation for size unit ": "https://github.com/sabberworm/PHP-CSS-Parser/compare/3bc5ded67d77a52b81608cfc97f23b1bb0678e2f%5E...468da3441945e9c1bf402a3340b1d8326723f7d9.patch", + "2. Validate name-start code points for identifier ": "https://github.com/sabberworm/PHP-CSS-Parser/compare/d42b64793f2edaffeb663c63e9de79069cdc0831%5E...113df5d55e94e21c6402021dfa959924941d4c29.patch", + "3. Fix parsing CSS selectors which contain commas ": "https://github.com/westonruter/PHP-CSS-Parser/compare/master...10a2501c119abafced3e4014aa3c0a3453a86f67.patch" + } + }, "autoload": { "psr-4": { "Sabberworm\\CSS\\": "lib/Sabberworm/CSS/" @@ -205,14 +214,7 @@ "parser", "stylesheet" ], - "time": "2020-07-21T18:39:46+00:00", - "extra": { - "patches_applied": { - "1. Add additional validation for size unit ": "https://github.com/sabberworm/PHP-CSS-Parser/compare/3bc5ded67d77a52b81608cfc97f23b1bb0678e2f%5E...468da3441945e9c1bf402a3340b1d8326723f7d9.patch", - "2. Validate name-start code points for identifier ": "https://github.com/sabberworm/PHP-CSS-Parser/compare/d42b64793f2edaffeb663c63e9de79069cdc0831%5E...113df5d55e94e21c6402021dfa959924941d4c29.patch", - "3. Fix parsing CSS selectors which contain commas ": "https://github.com/westonruter/PHP-CSS-Parser/compare/master...10a2501c119abafced3e4014aa3c0a3453a86f67.patch" - } - } + "time": "2020-07-21T18:39:46+00:00" }, { "name": "willwashburn/stream", @@ -310,191 +312,6 @@ ], "time": "2020-09-07T10:45:45+00:00" }, - { - "name": "behat/behat", - "version": "v3.7.0", - "source": { - "type": "git", - "url": "https://github.com/Behat/Behat.git", - "reference": "08052f739619a9e9f62f457a67302f0715e6dd13" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Behat/Behat/zipball/08052f739619a9e9f62f457a67302f0715e6dd13", - "reference": "08052f739619a9e9f62f457a67302f0715e6dd13", - "shasum": "" - }, - "require": { - "behat/gherkin": "^4.6.0", - "behat/transliterator": "^1.2", - "ext-mbstring": "*", - "php": ">=5.3.3", - "psr/container": "^1.0", - "symfony/config": "^2.7.51 || ^3.0 || ^4.0 || ^5.0", - "symfony/console": "^2.7.51 || ^2.8.33 || ^3.3.15 || ^3.4.3 || ^4.0.3 || ^5.0", - "symfony/dependency-injection": "^2.7.51 || ^3.0 || ^4.0 || ^5.0", - "symfony/event-dispatcher": "^2.7.51 || ^3.0 || ^4.0 || ^5.0", - "symfony/translation": "^2.7.51 || ^3.0 || ^4.0 || ^5.0", - "symfony/yaml": "^2.7.51 || ^3.0 || ^4.0 || ^5.0" - }, - "require-dev": { - "container-interop/container-interop": "^1.2", - "herrera-io/box": "~1.6.1", - "phpunit/phpunit": "^4.8.36 || ^6.5.14 || ^7.5.20", - "symfony/process": "~2.5 || ^3.0 || ^4.0 || ^5.0" - }, - "suggest": { - "ext-dom": "Needed to output test results in JUnit format." - }, - "bin": [ - "bin/behat" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.6.x-dev" - } - }, - "autoload": { - "psr-4": { - "Behat\\Behat\\": "src/Behat/Behat/", - "Behat\\Testwork\\": "src/Behat/Testwork/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - } - ], - "description": "Scenario-oriented BDD framework for PHP 5.3", - "homepage": "http://behat.org/", - "keywords": [ - "Agile", - "BDD", - "ScenarioBDD", - "Scrum", - "StoryBDD", - "User story", - "business", - "development", - "documentation", - "examples", - "symfony", - "testing" - ], - "time": "2020-06-03T13:08:44+00:00" - }, - { - "name": "behat/gherkin", - "version": "v4.7.3", - "source": { - "type": "git", - "url": "https://github.com/Behat/Gherkin.git", - "reference": "d5ae4616aeaa91daadbfb8446d9d17aae8d43cf7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Behat/Gherkin/zipball/d5ae4616aeaa91daadbfb8446d9d17aae8d43cf7", - "reference": "d5ae4616aeaa91daadbfb8446d9d17aae8d43cf7", - "shasum": "" - }, - "require": { - "php": ">=5.6" - }, - "require-dev": { - "cucumber/cucumber": "dev-gherkin-16.0.0", - "phpunit/phpunit": "^5.7.1|~6|~7", - "symfony/phpunit-bridge": "~2.7|~3|~4", - "symfony/yaml": "~2.3|~3|~4" - }, - "suggest": { - "symfony/yaml": "If you want to parse features, represented in YAML files" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.4-dev" - } - }, - "autoload": { - "psr-0": { - "Behat\\Gherkin": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - } - ], - "description": "Gherkin DSL parser for PHP", - "homepage": "http://behat.org/", - "keywords": [ - "BDD", - "Behat", - "Cucumber", - "DSL", - "gherkin", - "parser" - ], - "time": "2021-02-04T12:26:47+00:00" - }, - { - "name": "behat/transliterator", - "version": "v1.3.0", - "source": { - "type": "git", - "url": "https://github.com/Behat/Transliterator.git", - "reference": "3c4ec1d77c3d05caa1f0bf8fb3aae4845005c7fc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Behat/Transliterator/zipball/3c4ec1d77c3d05caa1f0bf8fb3aae4845005c7fc", - "reference": "3c4ec1d77c3d05caa1f0bf8fb3aae4845005c7fc", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "chuyskywalker/rolling-curl": "^3.1", - "php-yaoi/php-yaoi": "^1.0", - "phpunit/phpunit": "^4.8.36|^6.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2-dev" - } - }, - "autoload": { - "psr-4": { - "Behat\\Transliterator\\": "src/Behat/Transliterator" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Artistic-1.0" - ], - "description": "String transliterator", - "keywords": [ - "i18n", - "slug", - "transliterator" - ], - "time": "2020-01-14T16:39:13+00:00" - }, { "name": "civicrm/composer-downloads-plugin", "version": "v3.0.1", @@ -744,16 +561,16 @@ }, { "name": "firebase/php-jwt", - "version": "v5.2.0", + "version": "v5.2.1", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", - "reference": "feb0e820b8436873675fd3aca04f3728eb2185cb" + "reference": "f42c9110abe98dd6cfe9053c49bc86acc70b2d23" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/feb0e820b8436873675fd3aca04f3728eb2185cb", - "reference": "feb0e820b8436873675fd3aca04f3728eb2185cb", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/f42c9110abe98dd6cfe9053c49bc86acc70b2d23", + "reference": "f42c9110abe98dd6cfe9053c49bc86acc70b2d23", "shasum": "" }, "require": { @@ -790,20 +607,20 @@ "jwt", "php" ], - "time": "2020-03-25T18:49:23+00:00" + "time": "2021-02-12T00:02:00+00:00" }, { "name": "google/auth", - "version": "v1.14.3", + "version": "v1.15.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-auth-library-php.git", - "reference": "c1503299c779af0cbc99b43788f75930988852cf" + "reference": "b346c07de6613e26443d7b4830e5e1933b830dc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/c1503299c779af0cbc99b43788f75930988852cf", - "reference": "c1503299c779af0cbc99b43788f75930988852cf", + "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/b346c07de6613e26443d7b4830e5e1933b830dc4", + "reference": "b346c07de6613e26443d7b4830e5e1933b830dc4", "shasum": "" }, "require": { @@ -816,7 +633,7 @@ }, "require-dev": { "guzzlehttp/promises": "0.1.1|^1.3", - "kelvinmo/simplejwt": "^0.2.5", + "kelvinmo/simplejwt": "^0.2.5|^0.5.1", "phpseclib/phpseclib": "^2", "phpunit/phpunit": "^4.8.36|^5.7", "sebastian/comparator": ">=1.2.3", @@ -842,7 +659,7 @@ "google", "oauth2" ], - "time": "2020-10-16T21:33:48+00:00" + "time": "2021-02-05T20:50:04+00:00" }, { "name": "google/cloud-core", @@ -1541,165 +1358,18 @@ ], "time": "2020-10-15T10:06:57+00:00" }, - { - "name": "php-parallel-lint/php-console-color", - "version": "v0.3", - "source": { - "type": "git", - "url": "https://github.com/php-parallel-lint/PHP-Console-Color.git", - "reference": "b6af326b2088f1ad3b264696c9fd590ec395b49e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-parallel-lint/PHP-Console-Color/zipball/b6af326b2088f1ad3b264696c9fd590ec395b49e", - "reference": "b6af326b2088f1ad3b264696c9fd590ec395b49e", - "shasum": "" - }, - "require": { - "php": ">=5.4.0" - }, - "replace": { - "jakub-onderka/php-console-color": "*" - }, - "require-dev": { - "php-parallel-lint/php-code-style": "1.0", - "php-parallel-lint/php-parallel-lint": "1.0", - "php-parallel-lint/php-var-dump-check": "0.*", - "phpunit/phpunit": "~4.3", - "squizlabs/php_codesniffer": "1.*" - }, - "type": "library", - "autoload": { - "psr-4": { - "JakubOnderka\\PhpConsoleColor\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-2-Clause" - ], - "authors": [ - { - "name": "Jakub Onderka", - "email": "jakub.onderka@gmail.com" - } - ], - "time": "2020-05-14T05:47:14+00:00" - }, - { - "name": "php-parallel-lint/php-console-highlighter", - "version": "v0.5", - "source": { - "type": "git", - "url": "https://github.com/php-parallel-lint/PHP-Console-Highlighter.git", - "reference": "21bf002f077b177f056d8cb455c5ed573adfdbb8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-parallel-lint/PHP-Console-Highlighter/zipball/21bf002f077b177f056d8cb455c5ed573adfdbb8", - "reference": "21bf002f077b177f056d8cb455c5ed573adfdbb8", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.4.0", - "php-parallel-lint/php-console-color": "~0.2" - }, - "replace": { - "jakub-onderka/php-console-highlighter": "*" - }, - "require-dev": { - "php-parallel-lint/php-code-style": "~1.0", - "php-parallel-lint/php-parallel-lint": "~1.0", - "php-parallel-lint/php-var-dump-check": "~0.1", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~1.5" - }, - "type": "library", - "autoload": { - "psr-4": { - "JakubOnderka\\PhpConsoleHighlighter\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jakub Onderka", - "email": "acci@acci.cz", - "homepage": "http://www.acci.cz/" - } - ], - "description": "Highlight PHP code in terminal", - "time": "2020-05-13T07:37:49+00:00" - }, - { - "name": "php-parallel-lint/php-parallel-lint", - "version": "v1.2.0", - "source": { - "type": "git", - "url": "https://github.com/php-parallel-lint/PHP-Parallel-Lint.git", - "reference": "474f18bc6cc6aca61ca40bfab55139de614e51ca" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-parallel-lint/PHP-Parallel-Lint/zipball/474f18bc6cc6aca61ca40bfab55139de614e51ca", - "reference": "474f18bc6cc6aca61ca40bfab55139de614e51ca", - "shasum": "" - }, - "require": { - "ext-json": "*", - "php": ">=5.4.0" - }, - "replace": { - "grogy/php-parallel-lint": "*", - "jakub-onderka/php-parallel-lint": "*" - }, - "require-dev": { - "nette/tester": "^1.3 || ^2.0", - "php-parallel-lint/php-console-highlighter": "~0.3", - "squizlabs/php_codesniffer": "~3.0" - }, - "suggest": { - "php-parallel-lint/php-console-highlighter": "Highlight syntax in code snippet" - }, - "bin": [ - "parallel-lint" - ], - "type": "library", - "autoload": { - "classmap": [ - "./" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-2-Clause" - ], - "authors": [ - { - "name": "Jakub Onderka", - "email": "ahoj@jakubonderka.cz" - } - ], - "description": "This tool check syntax of PHP files about 20x faster than serial check.", - "homepage": "https://github.com/php-parallel-lint/PHP-Parallel-Lint", - "time": "2020-04-04T12:18:32+00:00" - }, { "name": "php-stubs/wordpress-stubs", - "version": "v5.7.0", + "version": "v5.6.0", "source": { "type": "git", "url": "https://github.com/php-stubs/wordpress-stubs.git", - "reference": "69baf30e7c92f149526da950a68222af05f7bc67" + "reference": "ed446cce304cd49f13900274b3ed60d1b526297e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/69baf30e7c92f149526da950a68222af05f7bc67", - "reference": "69baf30e7c92f149526da950a68222af05f7bc67", + "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/ed446cce304cd49f13900274b3ed60d1b526297e", + "reference": "ed446cce304cd49f13900274b3ed60d1b526297e", "shasum": "" }, "replace": { @@ -1726,7 +1396,7 @@ "static analysis", "wordpress" ], - "time": "2021-03-10T10:29:23+00:00" + "time": "2020-12-09T00:38:16+00:00" }, { "name": "phpcompatibility/php-compatibility", @@ -2492,55 +2162,6 @@ ], "time": "2016-08-06T20:24:11+00:00" }, - { - "name": "psr/container", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Container\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", - "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" - ], - "time": "2017-02-14T16:28:37+00:00" - }, { "name": "psr/http-message", "version": "1.0.1", @@ -2680,28 +2301,28 @@ }, { "name": "rize/uri-template", - "version": "0.3.2", + "version": "0.3.3", "source": { "type": "git", "url": "https://github.com/rize/UriTemplate.git", - "reference": "9e5fdd5c47147aa5adf7f760002ee591ed37b9ca" + "reference": "6e0b97e00e0f36c652dd3c37b194ef07de669b82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rize/UriTemplate/zipball/9e5fdd5c47147aa5adf7f760002ee591ed37b9ca", - "reference": "9e5fdd5c47147aa5adf7f760002ee591ed37b9ca", + "url": "https://api.github.com/repos/rize/UriTemplate/zipball/6e0b97e00e0f36c652dd3c37b194ef07de669b82", + "reference": "6e0b97e00e0f36c652dd3c37b194ef07de669b82", "shasum": "" }, "require": { "php": ">=5.3.0" }, "require-dev": { - "phpunit/phpunit": "~4.0.0" + "phpunit/phpunit": "~4.8.36" }, "type": "library", "autoload": { - "psr-0": { - "Rize\\UriTemplate": "src/" + "psr-4": { + "Rize\\": "src/Rize" } }, "notification-url": "https://packagist.org/downloads/", @@ -2720,7 +2341,7 @@ "template", "uri" ], - "time": "2017-06-14T03:57:53+00:00" + "time": "2021-02-22T15:03:38+00:00" }, { "name": "rmccue/requests", @@ -2777,12 +2398,12 @@ "source": { "type": "git", "url": "https://github.com/Roave/SecurityAdvisories.git", - "reference": "fe6ef201f838f07770873731a99f359ebb64fa50" + "reference": "a6bfc5a1416f0dde1f53b7737b2cf983352737b8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/fe6ef201f838f07770873731a99f359ebb64fa50", - "reference": "fe6ef201f838f07770873731a99f359ebb64fa50", + "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/a6bfc5a1416f0dde1f53b7737b2cf983352737b8", + "reference": "a6bfc5a1416f0dde1f53b7737b2cf983352737b8", "shasum": "" }, "conflict": { @@ -2842,14 +2463,12 @@ "ezsystems/ezplatform-admin-ui": ">=1.3,<1.3.5|>=1.4,<1.4.6", "ezsystems/ezplatform-admin-ui-assets": ">=4,<4.2.1|>=5,<5.0.1|>=5.1,<5.1.1", "ezsystems/ezplatform-kernel": ">=1,<1.0.2.1", - "ezsystems/ezplatform-rest": ">=1.2,<=1.2.2|>=1.3,<=1.3.1", "ezsystems/ezplatform-user": ">=1,<1.0.1", - "ezsystems/ezpublish-kernel": ">=5.3,<5.3.12.1|>=5.4,<5.4.14.2|>=6,<6.7.9.1|>=6.8,<=6.13.8|>=7,<7.2.4.1|>=7.3,<7.3.2.1|>=7.5,<=7.5.15", + "ezsystems/ezpublish-kernel": ">=5.3,<5.3.12.1|>=5.4,<5.4.14.2|>=6,<6.7.9.1|>=6.8,<6.13.6.3|>=7,<7.2.4.1|>=7.3,<7.3.2.1|>=7.5,<7.5.7.1", "ezsystems/ezpublish-legacy": ">=5.3,<5.3.12.6|>=5.4,<5.4.14.2|>=2011,<2017.12.7.3|>=2018.6,<2018.6.1.4|>=2018.9,<2018.9.1.3|>=2019.3,<2019.3.5.1", "ezsystems/platform-ui-assets-bundle": ">=4.2,<4.2.3", "ezsystems/repository-forms": ">=2.3,<2.3.2.1", "ezyang/htmlpurifier": "<4.1.1", - "facade/ignition": "<=2.5.1,>=2.0|<=1.16.13", "firebase/php-jwt": "<2", "flarum/sticky": ">=0.1-beta.14,<=0.1-beta.15", "flarum/tags": "<=0.1-beta.13", @@ -2872,10 +2491,8 @@ "illuminate/database": "<6.20.14|>=7,<7.30.4|>=8,<8.24", "illuminate/encryption": ">=4,<=4.0.11|>=4.1,<=4.1.31|>=4.2,<=4.2.22|>=5,<=5.0.35|>=5.1,<=5.1.46|>=5.2,<=5.2.45|>=5.3,<=5.3.31|>=5.4,<=5.4.36|>=5.5,<5.5.40|>=5.6,<5.6.15", "illuminate/view": ">=7,<7.1.2", - "impresscms/impresscms": "<=1.4.2", "ivankristianto/phpwhois": "<=4.3", "james-heinrich/getid3": "<1.9.9", - "joomla/archive": "<1.1.10", "joomla/session": "<1.3.1", "jsmitty12/phpwhois": "<5.1", "kazist/phpwhois": "<=4.2.6", @@ -2901,7 +2518,7 @@ "nette/nette": ">=2,<2.0.19|>=2.1,<2.1.13", "nystudio107/craft-seomatic": "<3.3", "nzo/url-encryptor-bundle": ">=4,<4.3.2|>=5,<5.0.1", - "october/backend": "<1.1.2", + "october/backend": ">=1.0.319,<1.0.470", "october/cms": "= 1.0.469|>=1.0.319,<1.0.469", "october/october": ">=1.0.319,<1.0.466", "october/rain": "<1.0.472|>=1.1,<1.1.2", @@ -2948,7 +2565,7 @@ "sensiolabs/connect": "<4.2.3", "serluck/phpwhois": "<=4.2.6", "shopware/core": "<=6.3.4", - "shopware/platform": "<=6.3.5.1", + "shopware/platform": "<=6.3.5", "shopware/shopware": "<5.6.9", "silverstripe/admin": ">=1.0.3,<1.0.4|>=1.1,<1.1.1", "silverstripe/assets": ">=1,<1.4.7|>=1.5,<1.5.2", @@ -2984,7 +2601,6 @@ "sylius/resource-bundle": "<1.3.14|>=1.4,<1.4.7|>=1.5,<1.5.2|>=1.6,<1.6.4", "sylius/sylius": "<1.6.9|>=1.7,<1.7.9|>=1.8,<1.8.3", "symbiote/silverstripe-multivaluefield": ">=3,<3.0.99", - "symbiote/silverstripe-queuedjobs": ">=3,<3.0.2|>=3.1,<3.1.4|>=4,<4.0.7|>=4.1,<4.1.2|>=4.2,<4.2.4|>=4.3,<4.3.3|>=4.4,<4.4.3|>=4.5,<4.5.1|>=4.6,<4.6.4", "symbiote/silverstripe-versionedfiles": "<=2.0.3", "symfony/cache": ">=3.1,<3.4.35|>=4,<4.2.12|>=4.3,<4.3.8", "symfony/dependency-injection": ">=2,<2.0.17|>=2.7,<2.7.51|>=2.8,<2.8.50|>=3,<3.4.26|>=4,<4.1.12|>=4.2,<4.2.7", @@ -3021,8 +2637,8 @@ "titon/framework": ">=0,<9.9.99", "truckersmp/phpwhois": "<=4.3.1", "twig/twig": "<1.38|>=2,<2.7", - "typo3/cms": ">=6.2,<6.2.30|>=7,<7.6.32|>=8,<8.7.38|>=9,<9.5.25|>=10,<10.4.14|>=11,<11.1.1", - "typo3/cms-core": ">=8,<8.7.38|>=9,<9.5.25|>=10,<10.4.14|>=11,<11.1.1", + "typo3/cms": ">=6.2,<6.2.30|>=7,<7.6.32|>=8,<8.7.38|>=9,<9.5.23|>=10,<10.4.10", + "typo3/cms-core": ">=8,<8.7.38|>=9,<9.5.23|>=10,<10.4.10", "typo3/flow": ">=1,<1.0.4|>=1.1,<1.1.1|>=2,<2.0.1|>=2.3,<2.3.16|>=3,<3.0.10|>=3.1,<3.1.7|>=3.2,<3.2.7|>=3.3,<3.3.5", "typo3/neos": ">=1.1,<1.1.3|>=1.2,<1.2.13|>=2,<2.0.4", "typo3/phar-stream-wrapper": ">=1,<2.1.1|>=3,<3.1.1", @@ -3097,7 +2713,7 @@ "type": "tidelift" } ], - "time": "2021-03-16T14:08:12+00:00" + "time": "2021-02-26T20:02:39+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -3620,16 +3236,16 @@ }, { "name": "sirbrillig/phpcs-variable-analysis", - "version": "v2.11.0", + "version": "v2.10.2", "source": { "type": "git", "url": "https://github.com/sirbrillig/phpcs-variable-analysis.git", - "reference": "e76e816236f401458dd8e16beecab905861b5867" + "reference": "0775e0c683badad52c03b11c2cd86a9fdecb937a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/e76e816236f401458dd8e16beecab905861b5867", - "reference": "e76e816236f401458dd8e16beecab905861b5867", + "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/0775e0c683badad52c03b11c2cd86a9fdecb937a", + "reference": "0775e0c683badad52c03b11c2cd86a9fdecb937a", "shasum": "" }, "require": { @@ -3664,7 +3280,7 @@ } ], "description": "A PHPCS sniff to detect problems with variables.", - "time": "2021-03-09T22:32:14+00:00" + "time": "2021-01-08T16:31:05+00:00" }, { "name": "squizlabs/php_codesniffer", @@ -3718,448 +3334,17 @@ "time": "2020-10-23T02:01:07+00:00" }, { - "name": "symfony/config", + "name": "symfony/finder", "version": "v3.4.47", "source": { "type": "git", - "url": "https://github.com/symfony/config.git", - "reference": "bc6b3fd3930d4b53a60b42fe2ed6fc466b75f03f" + "url": "https://github.com/symfony/finder.git", + "reference": "b6b6ad3db3edb1b4b1c1896b1975fb684994de6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/bc6b3fd3930d4b53a60b42fe2ed6fc466b75f03f", - "reference": "bc6b3fd3930d4b53a60b42fe2ed6fc466b75f03f", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8", - "symfony/filesystem": "~2.8|~3.0|~4.0", - "symfony/polyfill-ctype": "~1.8" - }, - "conflict": { - "symfony/dependency-injection": "<3.3", - "symfony/finder": "<3.3" - }, - "require-dev": { - "symfony/dependency-injection": "~3.3|~4.0", - "symfony/event-dispatcher": "~3.3|~4.0", - "symfony/finder": "~3.3|~4.0", - "symfony/yaml": "~3.0|~4.0" - }, - "suggest": { - "symfony/yaml": "To use the yaml reference dumper" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Config\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Config Component", - "homepage": "https://symfony.com", - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-24T10:57:07+00:00" - }, - { - "name": "symfony/console", - "version": "v3.4.47", - "source": { - "type": "git", - "url": "https://github.com/symfony/console.git", - "reference": "a10b1da6fc93080c180bba7219b5ff5b7518fe81" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/a10b1da6fc93080c180bba7219b5ff5b7518fe81", - "reference": "a10b1da6fc93080c180bba7219b5ff5b7518fe81", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8", - "symfony/debug": "~2.8|~3.0|~4.0", - "symfony/polyfill-mbstring": "~1.0" - }, - "conflict": { - "symfony/dependency-injection": "<3.4", - "symfony/process": "<3.3" - }, - "provide": { - "psr/log-implementation": "1.0" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/config": "~3.3|~4.0", - "symfony/dependency-injection": "~3.4|~4.0", - "symfony/event-dispatcher": "~2.8|~3.0|~4.0", - "symfony/lock": "~3.4|~4.0", - "symfony/process": "~3.3|~4.0" - }, - "suggest": { - "psr/log": "For using the console logger", - "symfony/event-dispatcher": "", - "symfony/lock": "", - "symfony/process": "" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Console\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Console Component", - "homepage": "https://symfony.com", - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-24T10:57:07+00:00" - }, - { - "name": "symfony/debug", - "version": "v3.4.47", - "source": { - "type": "git", - "url": "https://github.com/symfony/debug.git", - "reference": "ab42889de57fdfcfcc0759ab102e2fd4ea72dcae" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/ab42889de57fdfcfcc0759ab102e2fd4ea72dcae", - "reference": "ab42889de57fdfcfcc0759ab102e2fd4ea72dcae", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8", - "psr/log": "~1.0" - }, - "conflict": { - "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2" - }, - "require-dev": { - "symfony/http-kernel": "~2.8|~3.0|~4.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Debug\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Debug Component", - "homepage": "https://symfony.com", - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-24T10:57:07+00:00" - }, - { - "name": "symfony/dependency-injection", - "version": "v3.4.47", - "source": { - "type": "git", - "url": "https://github.com/symfony/dependency-injection.git", - "reference": "51d2a2708c6ceadad84393f8581df1dcf9e5e84b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/51d2a2708c6ceadad84393f8581df1dcf9e5e84b", - "reference": "51d2a2708c6ceadad84393f8581df1dcf9e5e84b", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8", - "psr/container": "^1.0" - }, - "conflict": { - "symfony/config": "<3.3.7", - "symfony/finder": "<3.3", - "symfony/proxy-manager-bridge": "<3.4", - "symfony/yaml": "<3.4" - }, - "provide": { - "psr/container-implementation": "1.0" - }, - "require-dev": { - "symfony/config": "~3.3|~4.0", - "symfony/expression-language": "~2.8|~3.0|~4.0", - "symfony/yaml": "~3.4|~4.0" - }, - "suggest": { - "symfony/config": "", - "symfony/expression-language": "For using expressions in service container configuration", - "symfony/finder": "For using double-star glob patterns or when GLOB_BRACE portability is required", - "symfony/proxy-manager-bridge": "Generate service proxies to lazy load them", - "symfony/yaml": "" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\DependencyInjection\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony DependencyInjection Component", - "homepage": "https://symfony.com", - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-24T10:57:07+00:00" - }, - { - "name": "symfony/event-dispatcher", - "version": "v3.4.47", - "source": { - "type": "git", - "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "31fde73757b6bad247c54597beef974919ec6860" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/31fde73757b6bad247c54597beef974919ec6860", - "reference": "31fde73757b6bad247c54597beef974919ec6860", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8" - }, - "conflict": { - "symfony/dependency-injection": "<3.3" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/config": "~2.8|~3.0|~4.0", - "symfony/debug": "~3.4|~4.4", - "symfony/dependency-injection": "~3.3|~4.0", - "symfony/expression-language": "~2.8|~3.0|~4.0", - "symfony/stopwatch": "~2.8|~3.0|~4.0" - }, - "suggest": { - "symfony/dependency-injection": "", - "symfony/http-kernel": "" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\EventDispatcher\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony EventDispatcher Component", - "homepage": "https://symfony.com", - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-24T10:57:07+00:00" - }, - { - "name": "symfony/filesystem", - "version": "v3.4.47", - "source": { - "type": "git", - "url": "https://github.com/symfony/filesystem.git", - "reference": "e58d7841cddfed6e846829040dca2cca0ebbbbb3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/e58d7841cddfed6e846829040dca2cca0ebbbbb3", - "reference": "e58d7841cddfed6e846829040dca2cca0ebbbbb3", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8", - "symfony/polyfill-ctype": "~1.8" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Filesystem\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Filesystem Component", - "homepage": "https://symfony.com", - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-24T10:57:07+00:00" - }, - { - "name": "symfony/finder", - "version": "v3.4.47", - "source": { - "type": "git", - "url": "https://github.com/symfony/finder.git", - "reference": "b6b6ad3db3edb1b4b1c1896b1975fb684994de6e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/b6b6ad3db3edb1b4b1c1896b1975fb684994de6e", - "reference": "b6b6ad3db3edb1b4b1c1896b1975fb684994de6e", + "url": "https://api.github.com/repos/symfony/finder/zipball/b6b6ad3db3edb1b4b1c1896b1975fb684994de6e", + "reference": "b6b6ad3db3edb1b4b1c1896b1975fb684994de6e", "shasum": "" }, "require": { @@ -4448,83 +3633,6 @@ ], "time": "2020-10-23T09:01:57+00:00" }, - { - "name": "symfony/polyfill-mbstring", - "version": "v1.19.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b5f7b932ee6fa802fc792eabd77c4c88084517ce", - "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.19-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for the Mbstring extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "mbstring", - "polyfill", - "portable", - "shim" - ], - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-23T09:01:57+00:00" - }, { "name": "symfony/polyfill-php70", "version": "v1.19.0", @@ -4623,103 +3731,18 @@ "extra": { "branch-alias": { "dev-main": "1.19-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php72\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-23T09:01:57+00:00" - }, - { - "name": "symfony/translation", - "version": "v3.4.47", - "source": { - "type": "git", - "url": "https://github.com/symfony/translation.git", - "reference": "be83ee6c065cb32becdb306ba61160d598b1ce88" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/be83ee6c065cb32becdb306ba61160d598b1ce88", - "reference": "be83ee6c065cb32becdb306ba61160d598b1ce88", - "shasum": "" - }, - "require": { - "php": "^5.5.9|>=7.0.8", - "symfony/polyfill-mbstring": "~1.0" - }, - "conflict": { - "symfony/config": "<2.8", - "symfony/dependency-injection": "<3.4", - "symfony/yaml": "<3.4" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/config": "~2.8|~3.0|~4.0", - "symfony/dependency-injection": "~3.4|~4.0", - "symfony/finder": "~2.8|~3.0|~4.0", - "symfony/http-kernel": "~3.4|~4.0", - "symfony/intl": "^2.8.18|^3.2.5|~4.0", - "symfony/var-dumper": "~3.4|~4.0", - "symfony/yaml": "~3.4|~4.0" - }, - "suggest": { - "psr/log-implementation": "To use logging capability in translator", - "symfony/config": "", - "symfony/yaml": "" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } }, - "type": "library", "autoload": { "psr-4": { - "Symfony\\Component\\Translation\\": "" + "Symfony\\Polyfill\\Php72\\": "" }, - "exclude-from-classmap": [ - "/Tests/" + "files": [ + "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", @@ -4728,16 +3751,22 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Translation Component", + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], "funding": [ { "url": "https://symfony.com/sponsor", @@ -4752,7 +3781,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T10:57:07+00:00" + "time": "2020-10-23T09:01:57+00:00" }, { "name": "symfony/yaml", @@ -4855,196 +3884,6 @@ "description": "Parser for .gitignore (and sparse-checkout, and anything else using the same format) files", "time": "2019-04-19T19:16:58+00:00" }, - { - "name": "wp-cli/config-command", - "version": "v2.0.8", - "source": { - "type": "git", - "url": "https://github.com/wp-cli/config-command.git", - "reference": "f5d1e9d0998fb8f5985744ea63e26dc16eb28434" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/wp-cli/config-command/zipball/f5d1e9d0998fb8f5985744ea63e26dc16eb28434", - "reference": "f5d1e9d0998fb8f5985744ea63e26dc16eb28434", - "shasum": "" - }, - "require": { - "wp-cli/wp-cli": "~2.5", - "wp-cli/wp-config-transformer": "^1.2.1" - }, - "require-dev": { - "wp-cli/db-command": "^1.3 || ^2", - "wp-cli/wp-cli-tests": "^2.1" - }, - "type": "wp-cli-package", - "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - }, - "bundled": true, - "commands": [ - "config", - "config edit", - "config delete", - "config create", - "config get", - "config has", - "config list", - "config path", - "config set", - "config shuffle-salts" - ] - }, - "autoload": { - "psr-4": { - "": "src/" - }, - "files": [ - "config-command.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Daniel Bachhuber", - "email": "daniel@runcommand.io", - "homepage": "https://runcommand.io" - }, - { - "name": "Alain Schlesser", - "email": "alain.schlesser@gmail.com", - "homepage": "https://www.alainschlesser.com" - } - ], - "description": "Generates and reads the wp-config.php file.", - "homepage": "https://github.com/wp-cli/config-command", - "time": "2020-12-07T22:56:15+00:00" - }, - { - "name": "wp-cli/core-command", - "version": "v2.0.12", - "source": { - "type": "git", - "url": "https://github.com/wp-cli/core-command.git", - "reference": "a7001bd43b58fe67decd02c739615102cc0beb51" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/wp-cli/core-command/zipball/a7001bd43b58fe67decd02c739615102cc0beb51", - "reference": "a7001bd43b58fe67decd02c739615102cc0beb51", - "shasum": "" - }, - "require": { - "composer/semver": "^1.4 || ^2 || ^3", - "wp-cli/wp-cli": "^2.4" - }, - "require-dev": { - "wp-cli/checksum-command": "^1 || ^2", - "wp-cli/db-command": "^1.3 || ^2", - "wp-cli/entity-command": "^1.3 || ^2", - "wp-cli/extension-command": "^1.2 || ^2", - "wp-cli/wp-cli-tests": "^2.1" - }, - "type": "wp-cli-package", - "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - }, - "bundled": true, - "commands": [ - "core", - "core check-update", - "core download", - "core install", - "core is-installed", - "core multisite-convert", - "core multisite-install", - "core update", - "core update-db", - "core version" - ] - }, - "autoload": { - "psr-4": { - "": "src/" - }, - "files": [ - "core-command.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Daniel Bachhuber", - "email": "daniel@runcommand.io", - "homepage": "https://runcommand.io" - } - ], - "description": "Downloads, installs, updates, and manages a WordPress installation.", - "homepage": "https://github.com/wp-cli/core-command", - "time": "2020-12-07T19:31:14+00:00" - }, - { - "name": "wp-cli/eval-command", - "version": "v2.0.8", - "source": { - "type": "git", - "url": "https://github.com/wp-cli/eval-command.git", - "reference": "8a5e0340e82e1fb2b48a5dedd88cef1fb8b410ce" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/wp-cli/eval-command/zipball/8a5e0340e82e1fb2b48a5dedd88cef1fb8b410ce", - "reference": "8a5e0340e82e1fb2b48a5dedd88cef1fb8b410ce", - "shasum": "" - }, - "require": { - "wp-cli/wp-cli": "^2" - }, - "require-dev": { - "wp-cli/wp-cli-tests": "^2.1" - }, - "type": "wp-cli-package", - "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - }, - "bundled": true, - "commands": [ - "eval", - "eval-file" - ] - }, - "autoload": { - "psr-4": { - "": "src/" - }, - "files": [ - "eval-command.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Daniel Bachhuber", - "email": "daniel@runcommand.io", - "homepage": "https://runcommand.io" - } - ], - "description": "Executes arbitrary PHP code or files.", - "homepage": "https://github.com/wp-cli/eval-command", - "time": "2020-12-07T19:30:26+00:00" - }, { "name": "wp-cli/export-command", "version": "v2.0.6", @@ -5299,12 +4138,12 @@ "source": { "type": "git", "url": "https://github.com/wp-cli/wp-cli.git", - "reference": "55ed16933dc242afb615f5b5304f2d1e7284f981" + "reference": "110ad40104996be87c5c7fc40be15b0f094ae5c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/55ed16933dc242afb615f5b5304f2d1e7284f981", - "reference": "55ed16933dc242afb615f5b5304f2d1e7284f981", + "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/110ad40104996be87c5c7fc40be15b0f094ae5c9", + "reference": "110ad40104996be87c5c7fc40be15b0f094ae5c9", "shasum": "" }, "require": { @@ -5314,15 +4153,15 @@ "rmccue/requests": "~1.6", "symfony/finder": ">2.7", "wp-cli/mustangostang-spyc": "^0.6.3", - "wp-cli/php-cli-tools": "~0.11.2", - "wp-cli/wp-cli-tests": "^3.0.7" + "wp-cli/php-cli-tools": "~0.11.2" }, "require-dev": { "roave/security-advisories": "dev-master", "wp-cli/db-command": "^1.3 || ^2", "wp-cli/entity-command": "^1.2 || ^2", "wp-cli/extension-command": "^1.1 || ^2", - "wp-cli/package-command": "^1 || ^2" + "wp-cli/package-command": "^1 || ^2", + "wp-cli/wp-cli-tests": "^2.1.14" }, "suggest": { "ext-readline": "Include for a better --prompt implementation", @@ -5357,118 +4196,7 @@ "cli", "wordpress" ], - "time": "2021-03-05T18:44:53+00:00" - }, - { - "name": "wp-cli/wp-cli-tests", - "version": "v3.0.9", - "source": { - "type": "git", - "url": "https://github.com/wp-cli/wp-cli-tests.git", - "reference": "827f541f432b9a8574111cd1e6cbedd2edd37b62" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-cli-tests/zipball/827f541f432b9a8574111cd1e6cbedd2edd37b62", - "reference": "827f541f432b9a8574111cd1e6cbedd2edd37b62", - "shasum": "" - }, - "require": { - "behat/behat": "^3.7", - "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || ^0.5 || ^0.6.2 || ^0.7.1", - "php": ">=5.6", - "php-parallel-lint/php-console-highlighter": "^0.5", - "php-parallel-lint/php-parallel-lint": "^1.2", - "phpcompatibility/php-compatibility": "^9.3", - "wp-cli/config-command": "^1 || ^2", - "wp-cli/core-command": "^1 || ^2", - "wp-cli/eval-command": "^1 || ^2", - "wp-cli/wp-cli": "^2", - "wp-coding-standards/wpcs": "^2.3", - "yoast/phpunit-polyfills": "^0.2" - }, - "require-dev": { - "roave/security-advisories": "dev-master" - }, - "bin": [ - "bin/install-package-tests", - "bin/rerun-behat-tests", - "bin/run-behat-tests", - "bin/run-linter-tests", - "bin/run-php-unit-tests", - "bin/run-phpcs-tests" - ], - "type": "phpcodesniffer-standard", - "extra": { - "readme": { - "sections": [ - "Using", - "Contributing", - "Support" - ], - "using": { - "body": ".readme-partials/USING.md" - }, - "show_powered_by": false - } - }, - "autoload": { - "psr-4": { - "WP_CLI\\Tests\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "WP-CLI testing framework", - "homepage": "https://wp-cli.org", - "keywords": [ - "cli", - "wordpress" - ], - "time": "2021-03-06T12:04:05+00:00" - }, - { - "name": "wp-cli/wp-config-transformer", - "version": "v1.2.8", - "source": { - "type": "git", - "url": "https://github.com/wp-cli/wp-config-transformer.git", - "reference": "0bb2b9162c38ca72370380aea11dc06e431e13a5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-config-transformer/zipball/0bb2b9162c38ca72370380aea11dc06e431e13a5", - "reference": "0bb2b9162c38ca72370380aea11dc06e431e13a5", - "shasum": "" - }, - "require": { - "php": ">=5.3.29" - }, - "require-dev": { - "composer/composer": ">=1.5.6 <1.7.0 || ^1.7.1 || ^2.0.0", - "phpunit/phpunit": "^6.5.5 || ^7.0.0", - "wp-coding-standards/wpcs": "^0.14.0 || ^1.0.0 || ^2.0.0" - }, - "type": "library", - "autoload": { - "files": [ - "src/WPConfigTransformer.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Frankie Jarrett", - "email": "fjarrett@gmail.com" - } - ], - "description": "Programmatically edit a wp-config.php file.", - "time": "2020-11-12T08:08:10+00:00" + "time": "2021-02-02T17:59:38+00:00" }, { "name": "wp-coding-standards/wpcs", @@ -5515,70 +4243,12 @@ "wordpress" ], "time": "2020-05-13T23:57:56+00:00" - }, - { - "name": "yoast/phpunit-polyfills", - "version": "0.2.0", - "source": { - "type": "git", - "url": "https://github.com/Yoast/PHPUnit-Polyfills.git", - "reference": "c48e4cf0c44b2d892540846aff19fb0468627bab" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/c48e4cf0c44b2d892540846aff19fb0468627bab", - "reference": "c48e4cf0c44b2d892540846aff19fb0468627bab", - "shasum": "" - }, - "require": { - "php": ">=5.5", - "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0" - }, - "require-dev": { - "php-parallel-lint/php-console-highlighter": "^0.5", - "php-parallel-lint/php-parallel-lint": "^1.2.0", - "yoast/yoastcs": "^2.1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.x-dev", - "dev-develop": "1.x-dev" - } - }, - "autoload": { - "files": [ - "phpunitpolyfills-autoload.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Team Yoast", - "email": "support@yoast.com", - "homepage": "https://yoast.com" - }, - { - "name": "Contributors", - "homepage": "https://github.com/Yoast/PHPUnit-Polyfills/graphs/contributors" - } - ], - "description": "Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests", - "homepage": "https://github.com/Yoast/PHPUnit-Polyfills", - "keywords": [ - "phpunit", - "polyfill", - "testing" - ], - "time": "2020-11-25T02:59:57+00:00" } ], "aliases": [], "minimum-stability": "dev", "stability-flags": { + "ampproject/amp-toolbox": 20, "sabberworm/php-css-parser": 20, "roave/security-advisories": 20 }, From d727a3694c2661aee7b623a1a260a24152dd8dc3 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Sat, 27 Feb 2021 09:56:50 +0000 Subject: [PATCH 02/24] Use data-hero-candidate attribute in DetermineHeroImages transformer --- src/Transformer/DetermineHeroImages.php | 57 ++++++++++++++++--------- 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/src/Transformer/DetermineHeroImages.php b/src/Transformer/DetermineHeroImages.php index 34bd8523fb1..dda9efd388b 100644 --- a/src/Transformer/DetermineHeroImages.php +++ b/src/Transformer/DetermineHeroImages.php @@ -31,25 +31,25 @@ final class DetermineHeroImages implements Transformer { /** - * XPath query to find the existing hero images (elements with data/hero attribute). + * XPath query to find the custom logo. * * @var string */ - const EXISTING_HERO_IMAGES_XPATH_QUERY = './/*[@data-hero]'; + const CUSTOM_HEADER_XPATH_QUERY = ".//*[ contains( concat( ' ', normalize-space( @class ), ' ' ), ' wp-custom-header ' ) ]//*[ ( self::img or self::amp-img ) and not( @data-hero ) ]"; /** * XPath query to find the custom logo. * * @var string */ - const CUSTOM_LOGO_XPATH_QUERY = ".//a[ contains( concat( ' ', normalize-space( @class ), ' ' ), ' custom-logo-link ' ) ]//*[ contains( concat( ' ', normalize-space( @class ), ' ' ), ' custom-logo ' ) ][ not( @data-hero ) ]"; + const CUSTOM_LOGO_XPATH_QUERY = ".//a[ contains( concat( ' ', normalize-space( @class ), ' ' ), ' custom-logo-link ' ) ]//*[ ( self::img or self::amp-img ) and contains( concat( ' ', normalize-space( @class ), ' ' ), ' custom-logo ' ) ][ not( @data-hero ) ]"; /** * XPath query to find the featured image. * * @var string */ - const FEATURED_IMAGE_XPATH_QUERY = ".//*[ contains( concat( ' ', normalize-space( @class ), ' ' ), ' wp-post-image ' ) ][ not( @data-hero ) ]"; + const FEATURED_IMAGE_XPATH_QUERY = ".//*[ ( self::img or self::amp-img ) and contains( concat( ' ', normalize-space( @class ), ' ' ), ' wp-post-image ' ) ][ not( @data-hero ) ]"; /** * XPath query to find the cover blocks. @@ -68,33 +68,30 @@ final class DetermineHeroImages implements Transformer { * @return void */ public function transform( Document $document, ErrorCollection $errors ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable - $existing_hero_images_count = $document->xpath->query( - self::EXISTING_HERO_IMAGES_XPATH_QUERY, - $document->body - )->length; - - $available_hero_image_slots = max( - PreloadHeroImage::DATA_HERO_MAX - $existing_hero_images_count, - 0 - ); - $hero_image_elements = []; - if ( count( $hero_image_elements ) < $available_hero_image_slots ) { + if ( count( $hero_image_elements ) < PreloadHeroImage::DATA_HERO_MAX ) { + $custom_header = $this->get_custom_header( $document ); + if ( null !== $custom_header ) { + $hero_image_elements[] = $custom_header; + } + } + + if ( count( $hero_image_elements ) < PreloadHeroImage::DATA_HERO_MAX ) { $custom_logo = $this->get_custom_logo( $document ); if ( null !== $custom_logo ) { $hero_image_elements[] = $custom_logo; } } - if ( count( $hero_image_elements ) < $available_hero_image_slots ) { + if ( count( $hero_image_elements ) < PreloadHeroImage::DATA_HERO_MAX ) { $featured_image = $this->get_featured_image( $document ); if ( null !== $featured_image ) { $hero_image_elements[] = $featured_image; } } - if ( count( $hero_image_elements ) < $available_hero_image_slots ) { + if ( count( $hero_image_elements ) < PreloadHeroImage::DATA_HERO_MAX ) { $hero_image_elements = array_merge( $hero_image_elements, array_filter( @@ -103,11 +100,29 @@ public function transform( Document $document, ErrorCollection $errors ) { // ph ); } - $this->add_data_hero_attribute( - array_slice( $hero_image_elements, 0, $available_hero_image_slots ) + $this->add_data_hero_candidate_attribute( + array_slice( $hero_image_elements, 0, PreloadHeroImage::DATA_HERO_MAX ) ); } + /** + * Retrieve the element that represents the custom header. + * + * @param Document $document Document to retrieve the custom header from. + * @return DOMElement|null Element that represents the custom header, or null + * if not found. + */ + private function get_custom_header( Document $document ) { + $elements = $document->xpath->query( + self::CUSTOM_HEADER_XPATH_QUERY, + $document->body + ); + + $custom_header = $elements->item( 0 ); + + return $custom_header instanceof DOMElement ? $custom_header : null; + } + /** * Retrieve the element that represents the custom logo. * @@ -165,9 +180,9 @@ private function get_cover_blocks( Document $document ) { * @param DOMElement[] $hero_image_elements Elements that are viable hero * images. */ - private function add_data_hero_attribute( $hero_image_elements ) { + private function add_data_hero_candidate_attribute( $hero_image_elements ) { foreach ( $hero_image_elements as $hero_image_element ) { - $hero_image_element->setAttribute( Attribute::DATA_HERO, null ); + $hero_image_element->setAttribute( Attribute::DATA_HERO_CANDIDATE, null ); } } } From 77d5f99b17ecb9fc7ecd352087dedb0c77a5d50b Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Sat, 27 Feb 2021 10:13:17 +0000 Subject: [PATCH 03/24] Refactor transformer to get rid of code duplication --- src/Transformer/DetermineHeroImages.php | 41 +++++++++---------------- 1 file changed, 14 insertions(+), 27 deletions(-) diff --git a/src/Transformer/DetermineHeroImages.php b/src/Transformer/DetermineHeroImages.php index dda9efd388b..2f8ffa91ece 100644 --- a/src/Transformer/DetermineHeroImages.php +++ b/src/Transformer/DetermineHeroImages.php @@ -70,36 +70,23 @@ final class DetermineHeroImages implements Transformer { public function transform( Document $document, ErrorCollection $errors ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable $hero_image_elements = []; - if ( count( $hero_image_elements ) < PreloadHeroImage::DATA_HERO_MAX ) { - $custom_header = $this->get_custom_header( $document ); - if ( null !== $custom_header ) { - $hero_image_elements[] = $custom_header; + foreach ( [ 'custom_header', 'custom_logo', 'featured_image', 'cover_blocks' ] as $hero_image_source ) { + if ( count( $hero_image_elements ) < PreloadHeroImage::DATA_HERO_MAX ) { + $get_candidate_method = "get_{$hero_image_source}"; + $candidates = $this->$get_candidate_method( $document ); + + if ( null === $candidates ) { + continue; + } + + if ( is_array( $candidates ) ) { + $hero_image_elements = array_merge( $hero_image_elements, array_filter( $candidates ) ); + } else { + $hero_image_elements[] = $candidates; + } } } - if ( count( $hero_image_elements ) < PreloadHeroImage::DATA_HERO_MAX ) { - $custom_logo = $this->get_custom_logo( $document ); - if ( null !== $custom_logo ) { - $hero_image_elements[] = $custom_logo; - } - } - - if ( count( $hero_image_elements ) < PreloadHeroImage::DATA_HERO_MAX ) { - $featured_image = $this->get_featured_image( $document ); - if ( null !== $featured_image ) { - $hero_image_elements[] = $featured_image; - } - } - - if ( count( $hero_image_elements ) < PreloadHeroImage::DATA_HERO_MAX ) { - $hero_image_elements = array_merge( - $hero_image_elements, - array_filter( - $this->get_cover_blocks( $document ) - ) - ); - } - $this->add_data_hero_candidate_attribute( array_slice( $hero_image_elements, 0, PreloadHeroImage::DATA_HERO_MAX ) ); From c490443b8f4a913f9bf7aa915216f854648b751f Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Sat, 27 Feb 2021 10:13:28 +0000 Subject: [PATCH 04/24] Adapt tests --- .../Transformer/DetermineHeroImagesTest.php | 111 ++++++++++++------ 1 file changed, 73 insertions(+), 38 deletions(-) diff --git a/tests/php/src/Transformer/DetermineHeroImagesTest.php b/tests/php/src/Transformer/DetermineHeroImagesTest.php index 683cbd0dcbe..bf7cd843f46 100644 --- a/tests/php/src/Transformer/DetermineHeroImagesTest.php +++ b/tests/php/src/Transformer/DetermineHeroImagesTest.php @@ -39,6 +39,32 @@ public function data_transform() { }; return [ + 'detects custom header' => [ + $input( + '
' + . '' + . '
' + ), + $output( + '
' + . '' + . '
' + ), + ], + + 'detects custom header as amp-img' => [ + $input( + '
' + . '' + . '
' + ), + $output( + '
' + . '' + . '
' + ), + ], + 'detects site icon' => [ $input( '