diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..edf6777 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,24 @@ +name: 'build-test' +on: + pull_request: + push: + branches: + - main + - 'releases/*' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Run plugin check + uses: wordpress/plugin-check-action@v1 + with: + exclude-directories: '.github,vendor' + categories: | + accessibility + general + performance + security diff --git a/CHANGELOG.md b/CHANGELOG.md index 18156e1..c7ecc46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/). +## [0.5.0] - 2024-08-04 + +### Added + +- WordPress Plugin Check Action (props @swissspidy). + ## [0.4.0] - 2023-10-08 ### Changed diff --git a/README.md b/README.md index 4cff39b..40e3123 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ The icons are from [Themify Icons](https://themify.me/themify-icons). ## Requirements -* PHP 7.4+. -* WordPress 6.1+. +* PHP 7.4+ +* WordPress 6.1+ ## Installation diff --git a/composer.json b/composer.json index e21dda1..912b28c 100644 --- a/composer.json +++ b/composer.json @@ -14,11 +14,15 @@ ], "autoload": {}, "require": { - "php": "^7.4|^8.0", + "php": "^8.2", "composer-plugin-api": "^2.3" }, "require-dev": { - "pixelalbatross/coding-standards": "dev-main" + "phpcompatibility/php-compatibility": "dev-develop as 9.99.99", + "phpcompatibility/phpcompatibility-wp": "*", + "phpstan/phpstan": "^1.11", + "pixelalbatross/coding-standards": "dev-main", + "szepeviktor/phpstan-wordpress": "^1.3" }, "scripts": { "lint": "phpcs .", diff --git a/composer.lock b/composer.lock index 5d56f4b..517d4b2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8b631b616f23287d45b0c09b890a4920", + "content-hash": "add86412229e47169622a34d1ff75a3c", "packages": [], "packages-dev": [ { @@ -82,35 +82,95 @@ }, "time": "2022-02-04T12:51:07+00:00" }, + { + "name": "php-stubs/wordpress-stubs", + "version": "v6.6.0", + "source": { + "type": "git", + "url": "https://github.com/php-stubs/wordpress-stubs.git", + "reference": "86e8753e89d59849276dcdd91b9a7dd78bb4abe2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/86e8753e89d59849276dcdd91b9a7dd78bb4abe2", + "reference": "86e8753e89d59849276dcdd91b9a7dd78bb4abe2", + "shasum": "" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "nikic/php-parser": "^4.13", + "php": "^7.4 || ^8.0", + "php-stubs/generator": "^0.8.3", + "phpdocumentor/reflection-docblock": "^5.4.1", + "phpstan/phpstan": "^1.10.49", + "phpunit/phpunit": "^9.5", + "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0", + "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" + }, + "suggest": { + "paragonie/sodium_compat": "Pure PHP implementation of libsodium", + "symfony/polyfill-php80": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "WordPress function and class declaration stubs for static analysis.", + "homepage": "https://github.com/php-stubs/wordpress-stubs", + "keywords": [ + "PHPStan", + "static analysis", + "wordpress" + ], + "support": { + "issues": "https://github.com/php-stubs/wordpress-stubs/issues", + "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.6.0" + }, + "time": "2024-07-17T08:50:38+00:00" + }, { "name": "phpcompatibility/php-compatibility", - "version": "9.3.5", + "version": "dev-develop", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", - "reference": "9fb324479acf6f39452e0655d2429cc0d3914243" + "reference": "b35316c5e05a70e694266278adbc02c37ed7f5e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243", - "reference": "9fb324479acf6f39452e0655d2429cc0d3914243", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/b35316c5e05a70e694266278adbc02c37ed7f5e6", + "reference": "b35316c5e05a70e694266278adbc02c37ed7f5e6", "shasum": "" }, "require": { - "php": ">=5.3", - "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" + "php": ">=5.4", + "phpcsstandards/phpcsutils": "^1.0.12", + "squizlabs/php_codesniffer": "^3.10.0" }, - "conflict": { - "squizlabs/php_codesniffer": "2.6.2" + "replace": { + "wimg/php-compatibility": "*" }, "require-dev": { - "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.3", + "phpcsstandards/phpcsdevtools": "^1.2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4 || ^10.1.0", + "yoast/phpunit-polyfills": "^1.0.5 || ^2.0.0" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." }, + "default-branch": true, "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev", + "dev-develop": "10.x-dev" + } + }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-3.0-or-later" @@ -136,38 +196,54 @@ "keywords": [ "compatibility", "phpcs", - "standards" + "standards", + "static analysis" ], "support": { "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues", + "security": "https://github.com/PHPCompatibility/PHPCompatibility/security/policy", "source": "https://github.com/PHPCompatibility/PHPCompatibility" }, - "time": "2019-12-27T09:44:58+00:00" + "funding": [ + { + "url": "https://github.com/PHPCompatibility", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2024-07-13T00:58:17+00:00" }, { "name": "phpcompatibility/phpcompatibility-paragonie", - "version": "1.3.2", + "version": "1.3.3", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", - "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26" + "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/bba5a9dfec7fcfbd679cfaf611d86b4d3759da26", - "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/293975b465e0e709b571cbf0c957c6c0a7b9a2ac", + "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac", "shasum": "" }, "require": { "phpcompatibility/php-compatibility": "^9.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", "paragonie/random_compat": "dev-master", "paragonie/sodium_compat": "dev-master" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." }, "type": "phpcodesniffer-standard", @@ -197,22 +273,37 @@ ], "support": { "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues", + "security": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/security/policy", "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie" }, - "time": "2022-10-25T01:46:02+00:00" + "funding": [ + { + "url": "https://github.com/PHPCompatibility", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2024-04-24T21:30:46+00:00" }, { "name": "phpcompatibility/phpcompatibility-wp", - "version": "2.1.4", + "version": "2.1.5", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", - "reference": "b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5" + "reference": "01c1ff2704a58e46f0cb1ca9d06aee07b3589082" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5", - "reference": "b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/01c1ff2704a58e46f0cb1ca9d06aee07b3589082", + "reference": "01c1ff2704a58e46f0cb1ca9d06aee07b3589082", "shasum": "" }, "require": { @@ -220,10 +311,10 @@ "phpcompatibility/phpcompatibility-paragonie": "^1.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7" + "dealerdirect/phpcodesniffer-composer-installer": "^1.0" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." }, "type": "phpcodesniffer-standard", @@ -252,9 +343,248 @@ ], "support": { "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues", + "security": "https://github.com/PHPCompatibility/PHPCompatibilityWP/security/policy", "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP" }, - "time": "2022-10-24T09:00:36+00:00" + "funding": [ + { + "url": "https://github.com/PHPCompatibility", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2024-04-24T21:37:59+00:00" + }, + { + "name": "phpcsstandards/phpcsextra", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSExtra.git", + "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/11d387c6642b6e4acaf0bd9bf5203b8cca1ec489", + "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489", + "shasum": "" + }, + "require": { + "php": ">=5.4", + "phpcsstandards/phpcsutils": "^1.0.9", + "squizlabs/php_codesniffer": "^3.8.0" + }, + "require-dev": { + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.6", + "phpcsstandards/phpcsdevtools": "^1.2.1", + "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors" + } + ], + "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues", + "security": "https://github.com/PHPCSStandards/PHPCSExtra/security/policy", + "source": "https://github.com/PHPCSStandards/PHPCSExtra" + }, + "funding": [ + { + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2023-12-08T16:49:07+00:00" + }, + { + "name": "phpcsstandards/phpcsutils", + "version": "1.0.12", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSUtils.git", + "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/87b233b00daf83fb70f40c9a28692be017ea7c6c", + "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c", + "shasum": "" + }, + "require": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0", + "php": ">=5.4", + "squizlabs/php_codesniffer": "^3.10.0 || 4.0.x-dev@dev" + }, + "require-dev": { + "ext-filter": "*", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.6", + "yoast/phpunit-polyfills": "^1.1.0 || ^2.0.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "autoload": { + "classmap": [ + "PHPCSUtils/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors" + } + ], + "description": "A suite of utility functions for use with PHP_CodeSniffer", + "homepage": "https://phpcsutils.com/", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "phpcs3", + "standards", + "static analysis", + "tokens", + "utility" + ], + "support": { + "docs": "https://phpcsutils.com/", + "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues", + "security": "https://github.com/PHPCSStandards/PHPCSUtils/security/policy", + "source": "https://github.com/PHPCSStandards/PHPCSUtils" + }, + "funding": [ + { + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2024-05-20T13:34:27+00:00" + }, + { + "name": "phpstan/phpstan", + "version": "1.11.9", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "e370bcddadaede0c1716338b262346f40d296f82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e370bcddadaede0c1716338b262346f40d296f82", + "reference": "e370bcddadaede0c1716338b262346f40d296f82", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + } + ], + "time": "2024-08-01T16:25:18+00:00" }, { "name": "pixelalbatross/coding-standards", @@ -262,12 +592,12 @@ "source": { "type": "git", "url": "https://github.com/pixelalbatross/coding-standards.git", - "reference": "4d6a5a6c79136f35f46f767bb62dd0fe5b980b65" + "reference": "ac4c59213d0097a3c0d00b1c69152fc199d70fd1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pixelalbatross/coding-standards/zipball/4d6a5a6c79136f35f46f767bb62dd0fe5b980b65", - "reference": "4d6a5a6c79136f35f46f767bb62dd0fe5b980b65", + "url": "https://api.github.com/repos/pixelalbatross/coding-standards/zipball/ac4c59213d0097a3c0d00b1c69152fc199d70fd1", + "reference": "ac4c59213d0097a3c0d00b1c69152fc199d70fd1", "shasum": "" }, "require": { @@ -275,7 +605,7 @@ "php": ">=7.4", "phpcompatibility/phpcompatibility-wp": "^2.1", "squizlabs/php_codesniffer": "^3.6", - "wp-coding-standards/wpcs": "^2.3" + "wp-coding-standards/wpcs": "^2.3|^3.0" }, "default-branch": true, "type": "phpcodesniffer-standard", @@ -294,20 +624,20 @@ "issues": "https://github.com/pixelalbatross/coding-standards/issues", "source": "https://github.com/pixelalbatross/coding-standards/tree/main" }, - "time": "2023-02-03T15:59:15+00:00" + "time": "2024-07-15T08:51:25+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.7.2", + "version": "3.10.2", "source": { "type": "git", - "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879" + "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", + "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879", - "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", "shasum": "" }, "require": { @@ -317,11 +647,11 @@ "php": ">=5.4.0" }, "require-dev": { - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" }, "bin": [ - "bin/phpcs", - "bin/phpcbf" + "bin/phpcbf", + "bin/phpcs" ], "type": "library", "extra": { @@ -336,49 +666,219 @@ "authors": [ { "name": "Greg Sherwood", - "role": "lead" + "role": "Former lead" + }, + { + "name": "Juliette Reinders Folmer", + "role": "Current lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors" } ], "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", - "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", + "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer", "keywords": [ "phpcs", "standards", "static analysis" ], "support": { - "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", - "source": "https://github.com/squizlabs/PHP_CodeSniffer", - "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" + "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues", + "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy", + "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer", + "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki" }, - "time": "2023-02-22T23:07:41+00:00" + "funding": [ + { + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2024-07-21T23:26:44+00:00" + }, + { + "name": "symfony/polyfill-php73", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/ec444d3f3f6505bb28d11afa41e75faadebc10a1", + "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "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.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php73/tree/v1.30.0" + }, + "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": "2024-05-31T15:07:36+00:00" + }, + { + "name": "szepeviktor/phpstan-wordpress", + "version": "v1.3.5", + "source": { + "type": "git", + "url": "https://github.com/szepeviktor/phpstan-wordpress.git", + "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/7f8cfe992faa96b6a33bbd75c7bace98864161e7", + "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0", + "phpstan/phpstan": "^1.10.31", + "symfony/polyfill-php73": "^1.12.0" + }, + "require-dev": { + "composer/composer": "^2.1.14", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpstan/phpstan-strict-rules": "^1.2", + "phpunit/phpunit": "^8.0 || ^9.0", + "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0", + "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" + }, + "suggest": { + "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "SzepeViktor\\PHPStan\\WordPress\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "WordPress extensions for PHPStan", + "keywords": [ + "PHPStan", + "code analyse", + "code analysis", + "static analysis", + "wordpress" + ], + "support": { + "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues", + "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.3.5" + }, + "time": "2024-06-28T22:27:19+00:00" }, { "name": "wp-coding-standards/wpcs", - "version": "2.3.0", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", - "reference": "7da1894633f168fe244afc6de00d141f27517b62" + "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62", - "reference": "7da1894633f168fe244afc6de00d141f27517b62", + "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/9333efcbff231f10dfd9c56bb7b65818b4733ca7", + "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7", "shasum": "" }, "require": { + "ext-filter": "*", + "ext-libxml": "*", + "ext-tokenizer": "*", + "ext-xmlreader": "*", "php": ">=5.4", - "squizlabs/php_codesniffer": "^3.3.1" + "phpcsstandards/phpcsextra": "^1.2.1", + "phpcsstandards/phpcsutils": "^1.0.10", + "squizlabs/php_codesniffer": "^3.9.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", "phpcompatibility/php-compatibility": "^9.0", - "phpcsstandards/phpcsdevtools": "^1.0", - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + "phpcsstandards/phpcsdevtools": "^1.2.0", + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." + "ext-iconv": "For improved results", + "ext-mbstring": "For improved results" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -395,6 +895,7 @@ "keywords": [ "phpcs", "standards", + "static analysis", "wordpress" ], "support": { @@ -402,20 +903,34 @@ "source": "https://github.com/WordPress/WordPress-Coding-Standards", "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki" }, - "time": "2020-05-13T23:57:56+00:00" + "funding": [ + { + "url": "https://opencollective.com/php_codesniffer", + "type": "custom" + } + ], + "time": "2024-03-25T16:39:00+00:00" + } + ], + "aliases": [ + { + "package": "phpcompatibility/php-compatibility", + "version": "dev-develop", + "alias": "9.99.99", + "alias_normalized": "9.99.99.0" } ], - "aliases": [], "minimum-stability": "stable", "stability-flags": { + "phpcompatibility/php-compatibility": 20, "pixelalbatross/coding-standards": 20 }, "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^7.4|^8.0", + "php": "^8.2", "composer-plugin-api": "^2.3" }, "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } diff --git a/languages/slider-block-pt_PT-cc54581754d7e0be53a3a8d69fdadf30.json b/languages/slider-block-pt_PT-cc54581754d7e0be53a3a8d69fdadf30.json index cb3f19c..bbf49e8 100644 --- a/languages/slider-block-pt_PT-cc54581754d7e0be53a3a8d69fdadf30.json +++ b/languages/slider-block-pt_PT-cc54581754d7e0be53a3a8d69fdadf30.json @@ -1 +1 @@ -{"translation-revision-date":"2023-09-07 02:49+0100","generator":"WP-CLI\/2.8.1","source":"build\/slide\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_PT","plural-forms":"nplurals=2; plural=(n != 1);"},"Heading":["T\u00edtulo"],"Settings":["Configura\u00e7\u00f5es"],"URL Hash":["Hash de URL"],"A URL hash is used to link to a specific slide that allows you to load the page with that slide open.":["Um hash de URL \u00e9 usado para ligar a um slide espec\u00edfico que permite carregar a p\u00e1gina com esse slide aberto."]}}} \ No newline at end of file +{"translation-revision-date":"2023-09-07 02:49+0100","generator":"WP-CLI\/2.10.0","source":"build\/slide\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_PT","plural-forms":"nplurals=2; plural=(n != 1);"},"Heading":["T\u00edtulo"],"Settings":["Configura\u00e7\u00f5es"],"URL Hash":["Hash de URL"],"A URL hash is used to link to a specific slide that allows you to load the page with that slide open.":["Um hash de URL \u00e9 usado para ligar a um slide espec\u00edfico que permite carregar a p\u00e1gina com esse slide aberto."]}}} \ No newline at end of file diff --git a/languages/slider-block-pt_PT-fd363219a7a85bfba8be653feedfaa1e.json b/languages/slider-block-pt_PT-fd363219a7a85bfba8be653feedfaa1e.json index 26edbf6..621fe34 100644 --- a/languages/slider-block-pt_PT-fd363219a7a85bfba8be653feedfaa1e.json +++ b/languages/slider-block-pt_PT-fd363219a7a85bfba8be653feedfaa1e.json @@ -1 +1 @@ -{"translation-revision-date":"2023-09-07 02:49+0100","generator":"WP-CLI\/2.8.1","source":"build\/slider\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_PT","plural-forms":"nplurals=2; plural=(n != 1);"},"Settings":["Configura\u00e7\u00f5es"],"Add slide":["Adicionar slide"],"Loop":["Ciclo"],"When enabled, the slider will behave as a carousel.":["Quando activado, o slider comportar-se-\u00e1 como um carrossel."],"Rewind":["Rebobinar"],"When enabled, clicking the \"next\" navigation button on the last slide will take you back to the first slide. When you click the \"previous\" navigation button on the first slide, it will take you to the last slide.":["Quando activado, clicar no bot\u00e3o de navega\u00e7\u00e3o \u201cseguinte\u201d no \u00faltimo slide leva-o de volta ao primeiro slide. Se clicar no bot\u00e3o de navega\u00e7\u00e3o \u201canterior\u201d no primeiro slide, regressar\u00e1 ao \u00faltimo slide."],"Autoplay":["Reprodu\u00e7\u00e3o autom\u00e1tica"],"Free Mode":["Modo livre"],"Navigation":["Navega\u00e7\u00e3o"],"Pagination":["Pagina\u00e7\u00e3o"],"Hash Navigation":["Navega\u00e7\u00e3o por Hash"],"When enabled, you can load a page with a specific slide open. Each slide requires a \"URL Hash\", which can be set on each slide block.":["Quando activado, pode carregar uma p\u00e1gina com um slide espec\u00edfico aberto. Cada slide requer um \"Hash de URL\", que pode ser definido em cada bloco de slide."],"Speed":["Velocidade"],"Duration of transition between slides (in milliseconds).":["Dura\u00e7\u00e3o da transi\u00e7\u00e3o entre slides (em milissegundos)."],"Width":["Largura"],"The slider will not be responsive if this parameter is set.":["O slider n\u00e3o ser\u00e1 responsivo se este par\u00e2metro estiver definido."],"Height":["Altura"],"Auto Height":["Altura autom\u00e1tica"],"When enabled, the slider will adjust its height to match the height of the currently active slide.":["Quando activada, o slider ajustar\u00e1 a sua altura para corresponder \u00e0 altura do slide actualmente activo."],"Per View":["Por visualiza\u00e7\u00e3o"],"Number of slides per view (slides visible at the same time).":["N\u00famero de slides por visualiza\u00e7\u00e3o (slides vis\u00edveis ao mesmo tempo)."],"Space Between Slides":["Espa\u00e7o entre slides"],"The distance between slides.":["A dist\u00e2ncia entre os slides."],"Centered Slides":["Slides centrados"],"When enabled, the active slide will be centered.":["Quando activado, o slide activo ser\u00e1 centrado."],"Delay":["Atraso"],"Delay between transitions (in milliseconds).":["Atraso entre transi\u00e7\u00f5es (em milissegundos)."],"Pause on Hover":["Pausa ao passar o rato"],"When enabled autoplay will be paused on pointer (mouse) enter over the slider.":["Quando activada, a reprodu\u00e7\u00e3o autom\u00e1tica \u00e9 interrompida quando o ponteiro (rato) passa sobre o slider."],"Type":["Tipo"],"Bullets":["Indicadores"],"Fraction":["Frac\u00e7\u00e3o"],"Progress Bar":["Barra de progresso"],"Accessibility":["Acessibilidade"],"Aria Label":["Aria Label"],"Sets an aria-label attribute to the root element.":["Define um atributo aria-label para o elemento raiz."]}}} \ No newline at end of file +{"translation-revision-date":"2023-09-07 02:49+0100","generator":"WP-CLI\/2.10.0","source":"build\/slider\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_PT","plural-forms":"nplurals=2; plural=(n != 1);"},"Settings":["Configura\u00e7\u00f5es"],"Add slide":["Adicionar slide"],"Loop":["Ciclo"],"When enabled, the slider will behave as a carousel.":["Quando activado, o slider comportar-se-\u00e1 como um carrossel."],"Rewind":["Rebobinar"],"When enabled, clicking the \"next\" navigation button on the last slide will take you back to the first slide. When you click the \"previous\" navigation button on the first slide, it will take you to the last slide.":["Quando activado, clicar no bot\u00e3o de navega\u00e7\u00e3o \u201cseguinte\u201d no \u00faltimo slide leva-o de volta ao primeiro slide. Se clicar no bot\u00e3o de navega\u00e7\u00e3o \u201canterior\u201d no primeiro slide, regressar\u00e1 ao \u00faltimo slide."],"Autoplay":["Reprodu\u00e7\u00e3o autom\u00e1tica"],"Free Mode":["Modo livre"],"Navigation":["Navega\u00e7\u00e3o"],"Pagination":["Pagina\u00e7\u00e3o"],"Hash Navigation":["Navega\u00e7\u00e3o por Hash"],"When enabled, you can load a page with a specific slide open. Each slide requires a \"URL Hash\", which can be set on each slide block.":["Quando activado, pode carregar uma p\u00e1gina com um slide espec\u00edfico aberto. Cada slide requer um \"Hash de URL\", que pode ser definido em cada bloco de slide."],"Speed":["Velocidade"],"Duration of transition between slides (in milliseconds).":["Dura\u00e7\u00e3o da transi\u00e7\u00e3o entre slides (em milissegundos)."],"Width":["Largura"],"The slider will not be responsive if this parameter is set.":["O slider n\u00e3o ser\u00e1 responsivo se este par\u00e2metro estiver definido."],"Height":["Altura"],"Auto Height":["Altura autom\u00e1tica"],"When enabled, the slider will adjust its height to match the height of the currently active slide.":["Quando activada, o slider ajustar\u00e1 a sua altura para corresponder \u00e0 altura do slide actualmente activo."],"Per View":["Por visualiza\u00e7\u00e3o"],"Number of slides per view (slides visible at the same time).":["N\u00famero de slides por visualiza\u00e7\u00e3o (slides vis\u00edveis ao mesmo tempo)."],"Space Between Slides":["Espa\u00e7o entre slides"],"The distance between slides.":["A dist\u00e2ncia entre os slides."],"Centered Slides":["Slides centrados"],"When enabled, the active slide will be centered.":["Quando activado, o slide activo ser\u00e1 centrado."],"Delay":["Atraso"],"Delay between transitions (in milliseconds).":["Atraso entre transi\u00e7\u00f5es (em milissegundos)."],"Pause on Hover":["Pausa ao passar o rato"],"When enabled autoplay will be paused on pointer (mouse) enter over the slider.":["Quando activada, a reprodu\u00e7\u00e3o autom\u00e1tica \u00e9 interrompida quando o ponteiro (rato) passa sobre o slider."],"Type":["Tipo"],"Bullets":["Indicadores"],"Fraction":["Frac\u00e7\u00e3o"],"Progress Bar":["Barra de progresso"],"Accessibility":["Acessibilidade"],"Aria Label":["Aria Label"],"Sets an aria-label attribute to the root element.":["Define um atributo aria-label para o elemento raiz."]}}} \ No newline at end of file diff --git a/languages/slider-block-pt_PT.l10n.php b/languages/slider-block-pt_PT.l10n.php new file mode 100644 index 0000000..4b9f996 --- /dev/null +++ b/languages/slider-block-pt_PT.l10n.php @@ -0,0 +1,2 @@ +'Slider Block 0.2.0','report-msgid-bugs-to'=>'https://wordpress.org/support/plugin/slider-block','last-translator'=>'','language-team'=>'','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','pot-creation-date'=>'2023-09-07T01:13:01+00:00','po-revision-date'=>'2023-09-07 02:49+0100','language'=>'pt_PT','x-generator'=>'Poedit 3.3.2','x-domain'=>'slider-block','messages'=>['A URL hash is used to link to a specific slide that allows you to load the page with that slide open.'=>'Um hash de URL é usado para ligar a um slide específico que permite carregar a página com esse slide aberto.','Accessibility'=>'Acessibilidade','Add slide'=>'Adicionar slide','Aria Label'=>'Aria Label','Auto Height'=>'Altura automática','Autoplay'=>'Reprodução automática','Bullets'=>'Indicadores','Centered Slides'=>'Slides centrados','Delay'=>'Atraso','Delay between transitions (in milliseconds).'=>'Atraso entre transições (em milissegundos).','Display a slider.'=>'Exibe um slider.','Duration of transition between slides (in milliseconds).'=>'Duração da transição entre slides (em milissegundos).','Fraction'=>'Fracção','Free Mode'=>'Modo livre','Go to slide {{index}}'=>'Ir para o slide {{index}}','Hash Navigation'=>'Navegação por Hash','Heading'=>'Título','Height'=>'Altura','Loop'=>'Ciclo','Navigation'=>'Navegação','Next slide'=>'Slide seguinte','Number of slides per view (slides visible at the same time).'=>'Número de slides por visualização (slides visíveis ao mesmo tempo).','Pagination'=>'Paginação','Pause on Hover'=>'Pausa ao passar o rato','Per View'=>'Por visualização','Previous slide'=>'Slide anterior','Progress Bar'=>'Barra de progresso','Rewind'=>'Rebobinar','Sets an aria-label attribute to the root element.'=>'Define um atributo aria-label para o elemento raiz.','Settings'=>'Configurações','Slider Block'=>'Bloco de Slider','Space Between Slides'=>'Espaço entre slides','Speed'=>'Velocidade','The distance between slides.'=>'A distância entre os slides.','The slider will not be responsive if this parameter is set.'=>'O slider não será responsivo se este parâmetro estiver definido.','This is the first slide'=>'Este é o primeiro slide','This is the last slide'=>'Este é o último slide','Type'=>'Tipo','URL Hash'=>'Hash de URL','When enabled autoplay will be paused on pointer (mouse) enter over the slider.'=>'Quando activada, a reprodução automática é interrompida quando o ponteiro (rato) passa sobre o slider.','When enabled, clicking the "next" navigation button on the last slide will take you back to the first slide. When you click the "previous" navigation button on the first slide, it will take you to the last slide.'=>'Quando activado, clicar no botão de navegação “seguinte” no último slide leva-o de volta ao primeiro slide. Se clicar no botão de navegação “anterior” no primeiro slide, regressará ao último slide.','When enabled, the active slide will be centered.'=>'Quando activado, o slide activo será centrado.','When enabled, the slider will adjust its height to match the height of the currently active slide.'=>'Quando activada, o slider ajustará a sua altura para corresponder à altura do slide actualmente activo.','When enabled, the slider will behave as a carousel.'=>'Quando activado, o slider comportar-se-á como um carrossel.','When enabled, you can load a page with a specific slide open. Each slide requires a "URL Hash", which can be set on each slide block.'=>'Quando activado, pode carregar uma página com um slide específico aberto. Cada slide requer um "Hash de URL", que pode ser definido em cada bloco de slide.','Width'=>'Largura','block descriptionDisplay a slider.'=>'Exibe um slider.','block keywordcarousel'=>'carrossel','block keywordslider'=>'slider','block titleSlide'=>'Slide','block titleSlider'=>'Slider','{{index}} / {{slidesLength}}'=>'{{index}} / {{slidesLength}}']]; diff --git a/languages/slider-block-pt_PT.po b/languages/slider-block-pt_PT.po index 2c8e579..544583c 100644 --- a/languages/slider-block-pt_PT.po +++ b/languages/slider-block-pt_PT.po @@ -14,22 +14,27 @@ msgstr "" "X-Domain: slider-block\n" #. Plugin Name of the plugin +#: slider-block.php msgid "Slider Block" msgstr "Bloco de Slider" #. Plugin URI of the plugin +#: slider-block.php msgid "https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=slider-block&utm_campaign=plugin-uri" msgstr "" #. Description of the plugin +#: slider-block.php msgid "Display a slider." msgstr "Exibe um slider." #. Author of the plugin +#: slider-block.php msgid "Pixel Albatross" msgstr "" #. Author URI of the plugin +#: slider-block.php msgid "https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=slider-block&utm_campaign=author-uri" msgstr "" diff --git a/languages/slider-block.pot b/languages/slider-block.pot index 4043c4f..8ed2ad8 100644 --- a/languages/slider-block.pot +++ b/languages/slider-block.pot @@ -1,36 +1,41 @@ -# Copyright (C) 2023 Pixel Albatross +# Copyright (C) 2024 Pixel Albatross # This file is distributed under the GPL-2.0-or-later. msgid "" msgstr "" -"Project-Id-Version: Slider Block 0.3.0\n" +"Project-Id-Version: Slider Block 0.5.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/slider-block\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-10-08T11:15:15+00:00\n" +"POT-Creation-Date: 2024-08-04T14:35:19+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.8.1\n" +"X-Generator: WP-CLI 2.10.0\n" "X-Domain: slider-block\n" #. Plugin Name of the plugin +#: slider-block.php msgid "Slider Block" msgstr "" #. Plugin URI of the plugin +#: slider-block.php msgid "https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=slider-block&utm_campaign=plugin-uri" msgstr "" #. Description of the plugin +#: slider-block.php msgid "Display a slider." msgstr "" #. Author of the plugin +#: slider-block.php msgid "Pixel Albatross" msgstr "" #. Author URI of the plugin +#: slider-block.php msgid "https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=slider-block&utm_campaign=author-uri" msgstr "" diff --git a/phpcs.xml.dist b/phpcs.xml.dist index d67cafa..7a58d7f 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -8,6 +8,7 @@ + diff --git a/slider-block.php b/slider-block.php index 9562d10..4d92da3 100644 --- a/slider-block.php +++ b/slider-block.php @@ -5,7 +5,7 @@ * Plugin URI: https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=slider-block&utm_campaign=plugin-uri * Requires at least: 6.1 * Requires PHP: 7.4 - * Version: 0.4.0 + * Version: 0.5.0 * Author: Pixel Albatross * Author URI: https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=slider-block&utm_campaign=author-uri * License: GPL-2.0-or-later