Skip to content
This repository was archived by the owner on Jan 10, 2022. It is now read-only.

Commit 07b6a02

Browse files
committed
Merge branch 'release/2.1.3'
2 parents e056485 + cbd7eac commit 07b6a02

28 files changed

Lines changed: 2324 additions & 42 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
/composer.lock
66
/vendor/
77

8+
# Composer bin plugin
9+
/vendor-bin/**/vendor
10+
811
# Eclipse
912
/.buildpath
1013
/.project

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ before_install:
5252
if [[ "$COVERAGE" != "1" && -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]]; then
5353
phpenv config-rm xdebug.ini
5454
fi
55+
# Set Xdebug mode for coverage.
56+
- export XDEBUG_MODE=coverage
5557
# Raise PHP memory limit to 2048MB
5658
- echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
5759
# Validate composer.json file.
@@ -72,6 +74,10 @@ install:
7274
- composer self-update
7375
# Install Composer packages.
7476
- composer install
77+
# PHPStan
78+
- if [ "$PHPSTAN" == "1" ]; then composer bin phpstan install; fi
79+
# Psalm
80+
- if [ "$PSALM" == "1" ]; then composer bin psalm install; fi
7581
# Test on specific WordPress version.
7682
- composer require --dev --update-with-dependencies roots/wordpress:${WP_VERSION} wp-phpunit/wp-phpunit:${WP_VERSION}
7783
# List available packages.
@@ -87,9 +93,9 @@ script:
8793
# PHP Mess Detector
8894
- if [ "$PHPMD" == "1" ]; then composer run-script phpmd; fi
8995
# PHPStan
90-
- if [ "$PHPSTAN" == "1" ]; then phpstan analyze; fi
96+
- if [ "$PHPSTAN" == "1" ]; then composer run-script phpstan; fi
9197
# Psalm
92-
- if [ "$PSALM" == "1" ]; then psalm; fi
98+
- if [ "$PSALM" == "1" ]; then composer run-script psalm; fi
9399

94100
after_success:
95101
- if [ "$COVERAGE" == "1" ]; then composer run-script coveralls; fi

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
77
## [Unreleased][unreleased]
88
-
99

10+
## [2.1.3] - 2021-04-26
11+
- Happy 2021.
12+
1013
## [2.1.2] - 2021-01-14
1114
- Fix i18n "Warning: The string "..." has X different translator comments".
1215
- Remove Travis hhvm test.
@@ -27,7 +30,7 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
2730
- Updated packages.
2831

2932
## [2.0.2] - 2019-03-29
30-
- Added support for additional payment data like customer, adresses, payment lines, etc.
33+
- Added support for additional payment data like customer, addresses, payment lines, etc.
3134
- Added gateway for AfterPay, Bancontact, Bank Transfer, Credit Card, Focum, Giropay, Maestro, PayPal and SOFORT.
3235

3336
## [2.0.1] - 2018-12-12
@@ -51,15 +54,16 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
5154
## [1.0.1] - 2016-02-12
5255
- WordPress Coding Standards optimizations.
5356
- Removed status code from redirect in status_update.
54-
- Added Pronamic gateway, whith payment method selector in plugin settings.
57+
- Added Pronamic gateway, with payment method selector in plugin settings.
5558
- iDEAL gateway now uses the iDEAL payment method.
5659

5760
## 1.0.0 - 2015-05-26
5861

5962
### Added
6063
- First release.
6164

62-
[unreleased]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.1.2...HEAD
65+
[unreleased]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.1.3...HEAD
66+
[2.1.3]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.1.2...2.1.3
6367
[2.1.2]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.1.1...2.1.2
6468
[2.1.1]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.1.0...2.1.1
6569
[2.1.0]: https://github.com/wp-pay-extensions/wp-e-commerce/compare/2.0.4...2.1.0

composer.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,30 @@
5959
}
6060
],
6161
"require-dev": {
62-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
63-
"php-coveralls/php-coveralls": "^2.1",
62+
"wp-e-commerce/wp-e-commerce": "^3.14",
63+
"bamarni/composer-bin-plugin": "^1.4",
64+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
65+
"php-coveralls/php-coveralls": "^2.4",
6466
"phpcompatibility/php-compatibility": "^9.2",
6567
"phpcompatibility/phpcompatibility-wp": "^2.0",
6668
"phpmd/phpmd": "^2.7",
6769
"phpunit/phpunit": "^5.7 || ^6.0",
6870
"roots/wordpress": "^5.6",
6971
"squizlabs/php_codesniffer": "^3.4",
70-
"wp-coding-standards/wpcs": "^2.1",
72+
"wp-coding-standards/wpcs": "^2.3",
7173
"wp-e-commerce/wp-e-commerce": "^3.14",
7274
"wp-phpunit/wp-phpunit": "^5.6"
7375
},
7476
"scripts": {
75-
"coveralls": "vendor/bin/coveralls -v",
77+
"coveralls": "vendor/bin/php-coveralls -v",
7678
"phpcbf": "vendor/bin/phpcbf",
7779
"phpcs": "vendor/bin/phpcs -s -v",
7880
"phplint": "find src tests -name '*.php' | xargs -n 1 -P 4 php -l",
7981
"phpmd": "vendor/bin/phpmd src,tests text phpmd.ruleset.xml --suffixes php",
80-
"phpunit": "vendor/bin/phpunit"
82+
"phpstan": "vendor/bin/phpstan analyse",
83+
"phpunit": "vendor/bin/phpunit",
84+
"post-install-cmd": "echo 'Optionally run: composer bin all install'",
85+
"post-update-cmd": "echo 'Optionally run: composer bin all update'",
86+
"psalm": "vendor/bin/psalm"
8187
}
8288
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wp-e-commerce",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "WP eCommerce driver for the WordPress payment processing library.",
55
"repository": {
66
"type": "git",

phpstan.neon.dist

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
includes:
2+
- vendor-bin/phpstan/vendor/szepeviktor/phpstan-wordpress/extension.neon
13
parameters:
24
customRulesetUsed: false
35
level: max
4-
bootstrap: tests/bootstrap.php
6+
bootstrapFiles:
7+
- tests/phpstan/bootstrap.php
58
paths:
6-
- src
9+
- src/

psalm.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
<MissingReturnType errorLevel="info" />
3434
<MissingPropertyType errorLevel="info" />
3535
<InvalidDocblock errorLevel="info" />
36-
<MisplacedRequiredParam errorLevel="info" />
3736

3837
<PropertyNotSetInConstructor errorLevel="info" />
3938
<MissingConstructor errorLevel="info" />

src/Extension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Extension.
44
*
55
* @author Pronamic <info@pronamic.eu>
6-
* @copyright 2005-2020 Pronamic
6+
* @copyright 2005-2021 Pronamic
77
* @license GPL-3.0-or-later
88
* @package Pronamic\WordPress\Pay\Extensions\WPeCommerce
99
*/
@@ -19,7 +19,7 @@
1919
/**
2020
* Title: WP eCommerce extension
2121
* Description:
22-
* Copyright: 2005-2020 Pronamic
22+
* Copyright: 2005-2021 Pronamic
2323
* Company: Pronamic
2424
*
2525
* @author Remco Tolsma

src/Gateways/AfterPayGateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* AfterPay Gateway.
44
*
55
* @author Pronamic <info@pronamic.eu>
6-
* @copyright 2005-2020 Pronamic
6+
* @copyright 2005-2021 Pronamic
77
* @license GPL-3.0-or-later
88
* @package Pronamic\WordPress\Pay\Extensions\WPeCommerce
99
*/

src/Gateways/BancontactGateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Bancontact Gateway.
44
*
55
* @author Pronamic <info@pronamic.eu>
6-
* @copyright 2005-2020 Pronamic
6+
* @copyright 2005-2021 Pronamic
77
* @license GPL-3.0-or-later
88
* @package Pronamic\WordPress\Pay\Extensions\WPeCommerce
99
*/

0 commit comments

Comments
 (0)