Skip to content

Commit 68f33be

Browse files
committed
2 parents b5b142c + ad3158a commit 68f33be

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

src/Commands/CreateKeypair.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Vrajroham\LaravelBitpay\Commands;
44

5-
use BitPayKeyUtils\KeyHelper\PrivateKey;
6-
use Illuminate\Console\Command;
75
use Bitpay\Client\BitpayException;
6+
use BitPayKeyUtils\KeyHelper\PrivateKey;
87
use GuzzleHttp\Client;
8+
use Illuminate\Console\Command;
99
use Vrajroham\LaravelBitpay\Traits\CreateKeypairTrait;
1010

1111
class CreateKeypair extends Command
@@ -146,12 +146,12 @@ public function pairWithServerAndCreateToken()
146146
try {
147147
$this->pairingCodeLabel = config('app.name').'_BitPay_Client';
148148
$postData = [
149-
'id' => (string) $this->sin,
150-
'label' => $this->pairingCodeLabel,
149+
'id' => (string) $this->sin,
150+
'label' => $this->pairingCodeLabel,
151151
'facade' => 'merchant',
152152
];
153153
$response = $bitpayClient->post('/tokens', [
154-
'json' => $postData,
154+
'json' => $postData,
155155
'headers' => [
156156
'x-accept-version: 2.0.0',
157157
'Content-Type: application/json',

src/Events/BitpayWebhookReceived.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Illuminate\Foundation\Events\Dispatchable;
66
use Illuminate\Queue\SerializesModels;
7-
use Illuminate\Support\Facades\Log;
87

98
class BitpayWebhookReceived
109
{

src/Http/Middlewares/VerifyWebhookSignature.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class VerifyWebhookSignature
1414
* @param \Illuminate\Http\Request $request
1515
* @param \Closure $next
1616
*
17-
* @return \Illuminate\Http\Response
18-
*
1917
* @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
18+
*
19+
* @return \Illuminate\Http\Response
2020
*/
2121
public function handle($request, Closure $next)
2222
{

src/LaravelBitpay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use BitPaySDK\Model\Bill\Item;
66
use BitPaySDK\Model\Currency;
77
use BitPaySDK\Model\Invoice\Buyer;
8-
use Vrajroham\LaravelBitpay\Traits\LaravelBitpayTrait;
98
use BitPaySDK\Model\Invoice\Invoice;
9+
use Vrajroham\LaravelBitpay\Traits\LaravelBitpayTrait;
1010

1111
class LaravelBitpay
1212
{

src/Traits/CreateKeypairTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function validateAndLoadConfig()
1414
throw InvalidConfigurationException::invalidNetworkName();
1515
}
1616

17-
if (! class_exists($config['key_storage'])) {
17+
if (!class_exists($config['key_storage'])) {
1818
throw InvalidConfigurationException::invalidStorageClass();
1919
}
2020

src/Traits/LaravelBitpayTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Vrajroham\LaravelBitpay\Traits;
44

55
use BitPaySDK\Client as BitpayClient;
6-
use BitPaySDK\Tokens;
76
use BitPaySDK\Env;
7+
use BitPaySDK\Tokens;
88
use Vrajroham\LaravelBitpay\Exceptions\InvalidConfigurationException;
99

1010
trait LaravelBitpayTrait

0 commit comments

Comments
 (0)