Skip to content

Commit 55b0aa8

Browse files
WIP
1 parent 1b3c7e0 commit 55b0aa8

File tree

6 files changed

+131
-85
lines changed

6 files changed

+131
-85
lines changed

.editorconfig

Lines changed: 90 additions & 68 deletions
Large diffs are not rendered by default.

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Andrey Helldar
3+
Copyright (c) 2023 Andrey Helldar
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sber QR Cashier Driver
22

3-
<img src="https://preview.dragon-code.pro/cashier-provider/sber-qr.svg?brand=laravel" alt="Sber QR Cashier Driver"/>
3+
<img src="https://preview.dragon-code.pro/cashier-provider/sber-qr.svg?brand=laravel&mode=dark" alt="Sber QR Cashier Driver"/>
44

55
[![Stable Version][badge_stable]][link_packagist]
66
[![Unstable Version][badge_unstable]][link_packagist]

composer.json

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "cashier-provider/sber-qr",
33
"description": "Driver for payment with QR codes via Sber (see cashier-provider/core)",
4-
"type": "library",
54
"license": "MIT",
5+
"type": "library",
66
"keywords": [
77
"andrey-helldar",
88
"helldar",
@@ -15,27 +15,48 @@
1515
"authors": [
1616
{
1717
"name": "Andrey Helldar",
18-
"email": "[email protected]"
18+
"email": "[email protected]",
19+
"homepage": "https://github.com/andrey-helldar"
1920
}
2021
],
2122
"support": {
2223
"issues": "https://github.com/cashier-provider/sber-qr/issues",
2324
"source": "https://github.com/cashier-provider/sber-qr"
2425
},
26+
"funding": [
27+
{
28+
"type": "github",
29+
"url": "https://github.com/sponsors/TheDragonCode"
30+
},
31+
{
32+
"type": "open_collective",
33+
"url": "https://opencollective.com/dragon-code"
34+
},
35+
{
36+
"type": "boosty",
37+
"url": "https://boosty.to/dragon-code"
38+
},
39+
{
40+
"type": "yoomoney",
41+
"url": "https://yoomoney.ru/to/410012608840929"
42+
}
43+
],
2544
"require": {
26-
"php": "^7.3|^8.0",
27-
"cashier-provider/core": "^2.0",
28-
"cashier-provider/sber-auth": "^2.0",
45+
"php": "^7.3 || ^8.0",
46+
"cashier-provider/core": "^3.0",
47+
"cashier-provider/sber-auth": "^3.0",
2948
"psr/http-message": "^1.0"
3049
},
3150
"require-dev": {
3251
"ext-json": "*",
3352
"dragon-code/support": "^5.0",
34-
"illuminate/database": "^6.0|^7.0|^8.0",
35-
"orchestra/testbench": "^4.0|^5.0|^6.0",
53+
"illuminate/database": "^6.0 || ^7.0 || ^8.0",
54+
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
3655
"phpunit/phpunit": "^9.0",
37-
"symfony/var-dumper": "^4.0|^5.0"
56+
"symfony/var-dumper": "^4.0 || ^5.0"
3857
},
58+
"minimum-stability": "stable",
59+
"prefer-stable": true,
3960
"autoload": {
4061
"psr-4": {
4162
"CashierProvider\\Sber\\QrCode\\": "src"
@@ -47,9 +68,12 @@
4768
}
4869
},
4970
"config": {
71+
"allow-plugins": {
72+
"dragon-code/codestyler": true,
73+
"ergebnis/composer-normalize": true,
74+
"friendsofphp/php-cs-fixer": true
75+
},
5076
"preferred-install": "dist",
5177
"sort-packages": true
52-
},
53-
"minimum-stability": "stable",
54-
"prefer-stable": true
78+
}
5579
}

tests/Helpers/ExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function testDefaultReason()
117117
$this->throw(10000, 'Foo Bar');
118118
}
119119

120-
protected function throw($code, string $reason = null)
120+
protected function throw($code, ?string $reason = null)
121121
{
122122
$this->manager()->throw($this->uri(), $code, [
123123
'Message' => $reason,

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected function getEnvironmentSetup($app)
9898
]);
9999
}
100100

101-
protected function model(Details $details = null, int $status_id = 0): EloquentModel
101+
protected function model(?Details $details = null, int $status_id = 0): EloquentModel
102102
{
103103
$model = PaymentConfig::getModel();
104104

@@ -127,7 +127,7 @@ protected function detailsRelation(EloquentModel $model, ?Details $details): Cas
127127
}
128128

129129
/**
130-
* @param \CashierProvider\Sber\QrCode\Requests\BaseRequest|string $request
130+
* @param \CashierProvider\Sber\QrCode\Requests\BaseRequest|string $request
131131
*
132132
* @return \DragonCode\Contracts\Cashier\Http\Request
133133
*/

0 commit comments

Comments
 (0)