Skip to content

Commit 62b3b01

Browse files
committed
Run laravel PINT
1 parent d12241c commit 62b3b01

12 files changed

+21
-22
lines changed

config/pay-pocket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
* The third array item should contain optional parameters to pass to the generator
1010
*/
1111
'log_reference_generator' => [\Illuminate\Support\Str::class, 'random', [15]],
12-
];
12+
];

src/Exceptions/InsufficientBalanceException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class InsufficientBalanceException extends Exception
1212
* @param string $message
1313
* @param int $code
1414
*/
15-
public function __construct($message = 'Insufficient balance to cover the order', $code = 0, ?\Throwable $previous = null)
15+
public function __construct($message = 'Insufficient balance to cover the order', $code = 0, \Throwable $previous = null)
1616
{
1717
parent::__construct($message, $code, $previous);
1818
}

src/Exceptions/InvalidDepositException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class InvalidDepositException extends Exception
1212
* @param string $message
1313
* @param int $code
1414
*/
15-
public function __construct($message = 'Invalid deposit operation', $code = 0, ?\Throwable $previous = null)
15+
public function __construct($message = 'Invalid deposit operation', $code = 0, \Throwable $previous = null)
1616
{
1717
parent::__construct($message, $code, $previous);
1818
}

src/Exceptions/InvalidValueException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class InvalidValueException extends Exception
1212
* @param string $message
1313
* @param int $code
1414
*/
15-
public function __construct($message = 'Invalie value to deposit', $code = 0, ?\Throwable $previous = null)
15+
public function __construct($message = 'Invalie value to deposit', $code = 0, \Throwable $previous = null)
1616
{
1717
parent::__construct($message, $code, $previous);
1818
}

src/Exceptions/InvalidWalletTypeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class InvalidWalletTypeException extends Exception
88
{
9-
public function __construct($message = 'Invalid wallet type', $code = 0, ?\Throwable $previous = null)
9+
public function __construct($message = 'Invalid wallet type', $code = 0, \Throwable $previous = null)
1010
{
1111
parent::__construct($message, $code, $previous);
1212
}

src/Exceptions/WalletNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class WalletNotFoundException extends Exception
88
{
9-
public function __construct($message = 'Wallet not found', $code = 0, ?\Throwable $previous = null)
9+
public function __construct($message = 'Wallet not found', $code = 0, \Throwable $previous = null)
1010
{
1111
parent::__construct($message, $code, $previous);
1212
}

src/Interfaces/WalletOperations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function getWalletBalanceByType(string $walletType);
1010

1111
public function hasSufficientBalance($value): bool;
1212

13-
public function pay(int|float $orderValue, ?string $notes = null);
13+
public function pay(int|float $orderValue, string $notes = null);
1414

15-
public function deposit(string $type, int|float $amount, ?string $notes = null): bool;
15+
public function deposit(string $type, int|float $amount, string $notes = null): bool;
1616
}

src/LaravelPayPocketServiceProvider.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,17 @@ public function configurePackage(Package $package): void
2828
public function bootingPackage()
2929
{
3030
$this->publishes([
31-
__DIR__ . '/../Enums/' => app_path('Enums'),
31+
__DIR__.'/../Enums/' => app_path('Enums'),
3232
], 'pay-pocket-wallets');
3333

34-
3534
$this->publishes([
36-
__DIR__ . '/../config/pay-pocket.php' => config_path('pay-pocket.php'),
35+
__DIR__.'/../config/pay-pocket.php' => config_path('pay-pocket.php'),
3736
], 'config');
3837
}
3938

4039
public function registeringPackage()
4140
{
4241
// Automatically apply the package configuration
43-
$this->mergeConfigFrom(__DIR__ . '/../config/pay-pocket.php', 'pay-pocket');
42+
$this->mergeConfigFrom(__DIR__.'/../config/pay-pocket.php', 'pay-pocket');
4443
}
45-
}
44+
}

src/Traits/BalanceOperation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected function createLog($logType, $value, $notes = null): void
5757
'ip' => \Request::ip(),
5858
'value' => $value,
5959
'notes' => $notes,
60-
'reference' => $reference
60+
'reference' => $reference,
6161
]);
6262

6363
$this->createdLog->changeStatus('Done');

src/Traits/HandlesDeposit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait HandlesDeposit
1515
/**
1616
* Deposit an amount to the user's wallet of a specific type.
1717
*/
18-
public function deposit(string $type, int|float $amount, ?string $notes = null): bool
18+
public function deposit(string $type, int|float $amount, string $notes = null): bool
1919
{
2020
$depositable = $this->getDepositableTypes();
2121

0 commit comments

Comments
 (0)