Skip to content

Commit

Permalink
clean and format code (#8)
Browse files Browse the repository at this point in the history
* add some cleaning and formatting

* fix typo in readme file

* update composer json

* update changelog
  • Loading branch information
mhdcodes authored Jun 26, 2021
1 parent 2b3213e commit 6b17097
Show file tree
Hide file tree
Showing 41 changed files with 717 additions and 623 deletions.
34 changes: 33 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,38 @@ All notable changes to `phpjuice/paypal-checkout-sdk` will be documented in this
## Version 1.0.0

### Added

- Orders API Requests
- Paypal Client
- PayPal Client
- Access Token Requests

## Version 1.0.1

### Added

- Update package documentation

## Version 1.0.2

### Added

- Add type hints to all classes.
- Add the calculated total test.

## Version 1.1.0

### Added

- Upgrade guzzle http to version 7 (#3)

## Version 1.1.1

### Added

- Remove PHP version header on sandbox environment (#7) (see #6)

## Version 1.1.2

### Added

- Clean and refactor code #8
30 changes: 13 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"name": "phpjuice/paypal-checkout-sdk",
"description": "Paypal Checkout SDK",
"keywords": [
"paypal",
"checkout"
],
"license": "MIT",
"type": "library",
"autoload": {
"psr-4": {
"PayPal\\Checkout\\": "src/"
Expand All @@ -17,29 +9,33 @@
"Tests\\": "tests/"
}
},
"description": "Paypal Checkout SDK",
"keywords": [
"paypal",
"checkout"
],
"license": "MIT",
"minimum-stability": "dev",
"name": "phpjuice/paypal-checkout-sdk",
"prefer-stable": true,
"require": {
"php": "^7.2",
"guzzlehttp/psr7": "^1.6",
"guzzlehttp/guzzle": "^7.0"
"guzzlehttp/guzzle": "^7.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"squizlabs/php_codesniffer": "^3.4",
"phpstan/phpstan": "^0.11.5"
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"test": "phpunit",
"phpcs": [
"phpcs --config-set show_warnings 0 ",
"phpcs src --standard=PSR2 --extensions=php --encoding=utf-8"
],
"phpcbf": "phpcbf src --standard=PSR2 --extensions=php --encoding=utf-8",
"analyse": "phpstan analyse src tests",
"php-cs-fixer": [
"php-cs-fixer fix src --rules=@PSR2",
"php-cs-fixer fix tests --rules=@PSR2"
]
}
},
"type": "library"
}
Loading

0 comments on commit 6b17097

Please sign in to comment.