Skip to content

Commit 59a8026

Browse files
Merge pull request #514 from bavix/dependabot/composer/symplify/easy-coding-standard-tw-11.0
2 parents 90fbc42 + 26ae092 commit 59a8026

26 files changed

+43
-38
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"phpstan/phpstan": "^1.7",
4343
"phpunit/phpunit": "^9.5",
4444
"rector/rector": "^0.13",
45-
"symplify/easy-coding-standard": "^10.2",
45+
"symplify/easy-coding-standard": "^11.0",
4646
"vimeo/psalm": "^4.23"
4747
},
4848
"suggest": {

ecs.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
$containerConfigurator->import(SetList::SYMPLIFY);
4545
$containerConfigurator->import(SetList::COMMON);
4646
$containerConfigurator->import(SetList::PSR_12);
47-
$containerConfigurator->import(SetList::PHP_CS_FIXER);
4847
$containerConfigurator->import(SetList::CONTROL_STRUCTURES);
4948
$containerConfigurator->import(SetList::NAMESPACES);
5049
$containerConfigurator->import(SetList::STRICT);

src/Commands/TransferFixCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
final class TransferFixCommand extends Command
1313
{
1414
protected $signature = 'bx:transfer:fix';
15+
1516
protected $description = 'Brings transfers to the correct form/to.';
1617

1718
public function handle(Wallet $wallet, Transfer $transfer, CastServiceInterface $castService): void

src/External/Dto/Extra.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
final class Extra implements ExtraDtoInterface
1111
{
1212
private OptionDtoInterface $deposit;
13+
1314
private OptionDtoInterface $withdraw;
1415

1516
public function __construct(OptionDtoInterface|array|null $deposit, OptionDtoInterface|array|null $withdraw)

src/Internal/Dto/TransactionDto.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
final class TransactionDto implements TransactionDtoInterface
1111
{
1212
private DateTimeImmutable $createdAt;
13+
1314
private DateTimeImmutable $updatedAt;
1415

1516
public function __construct(

src/Internal/Dto/TransferDto.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
final class TransferDto implements TransferDtoInterface
1111
{
1212
private DateTimeImmutable $createdAt;
13+
1314
private DateTimeImmutable $updatedAt;
1415

1516
public function __construct(

src/Internal/Exceptions/ExceptionInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,28 @@
99
interface ExceptionInterface extends Throwable
1010
{
1111
public const AMOUNT_INVALID = 1 << 0;
12+
1213
public const BALANCE_IS_EMPTY = 1 << 1;
14+
1315
public const CONFIRMED_INVALID = 1 << 2;
16+
1417
public const UNCONFIRMED_INVALID = 1 << 3;
18+
1519
public const INSUFFICIENT_FUNDS = 1 << 4;
20+
1621
public const PRODUCT_ENDED = 1 << 5;
22+
1723
public const WALLET_OWNER_INVALID = 1 << 6;
24+
1825
public const CART_EMPTY = 1 << 7;
26+
1927
public const LOCK_PROVIDER_NOT_FOUND = 1 << 8;
28+
2029
public const RECORD_NOT_FOUND = 1 << 9;
30+
2131
public const TRANSACTION_FAILED = 1 << 10;
32+
2233
public const MODEL_NOT_FOUND = 1 << 11;
34+
2335
public const TRANSACTION_START = 1 << 12;
2436
}

src/Internal/Service/DatabaseService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function transaction(callable $callback): mixed
7474
$this->init = false;
7575

7676
throw new TransactionFailedException(
77-
'Transaction failed. Message: '.$throwable->getMessage(),
77+
'Transaction failed. Message: ' . $throwable->getMessage(),
7878
ExceptionInterface::TRANSACTION_FAILED,
7979
$throwable
8080
);

src/Internal/Service/StorageService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function sync(string $key, float|int|string $value): bool
5656
public function increase(string $key, float|int|string $value): string
5757
{
5858
return $this->lockService->block(
59-
$key.'::increase',
59+
$key . '::increase',
6060
function () use ($key, $value): string {
6161
$result = $this->mathService->add($this->get($key), $value);
6262
$this->sync($key, $result);

src/Models/Transaction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
class Transaction extends Model
3333
{
3434
public const TYPE_DEPOSIT = 'deposit';
35+
3536
public const TYPE_WITHDRAW = 'withdraw';
3637

3738
/**

0 commit comments

Comments
 (0)