Skip to content

Commit 18b4a9d

Browse files
getsolarisgithub-actions[bot]
authored andcommitted
style: fix psr-12 code style issues
1 parent 38fcf7e commit 18b4a9d

File tree

7 files changed

+31
-28
lines changed

7 files changed

+31
-28
lines changed

config/toss-payments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
'secret_key' => env('TOSS_PAYMENTS_SECRET_KEY'),
88
'content_type' => 'application/json',
99
'accept' => 'application/json',
10-
];
10+
];

src/Attributes/Payment.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
1010
class Payment extends TossPayments implements AttributeInterface
1111
{
1212
/**
13-
* @var string $uri
13+
* @var string
1414
*/
1515
protected string $uri;
1616

1717
/**
18-
* @var string $paymentKey
18+
* @var string
1919
*/
2020
protected string $paymentKey;
2121

2222
/**
23-
* @var string $orderId
23+
* @var string
2424
*/
2525
protected string $orderId;
2626

2727
/**
28-
* @var int $amount
28+
* @var int
2929
*/
3030
protected int $amount;
3131

@@ -51,7 +51,7 @@ public function initializeUri(): static
5151
*/
5252
public function createEndpoint(?string $endpoint): string
5353
{
54-
return $this->url . $this->uri . $this->start($endpoint);
54+
return $this->url.$this->uri.$this->start($endpoint);
5555
}
5656

5757
/**
@@ -104,14 +104,14 @@ public function confirm(): PromiseInterface|Response
104104
*/
105105
public function get(): PromiseInterface|Response
106106
{
107-
return $this->client->get($this->createEndpoint('/' . $this->paymentKey));
107+
return $this->client->get($this->createEndpoint('/'.$this->paymentKey));
108108
}
109109

110110
/**
111111
* @return PromiseInterface|Response
112112
*/
113113
public function order(): PromiseInterface|Response
114114
{
115-
return $this->client->get($this->createEndpoint('/orders/' . $this->orderId));
115+
return $this->client->get($this->createEndpoint('/orders/'.$this->orderId));
116116
}
117-
}
117+
}

src/Attributes/Transaction.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99
class Transaction extends TossPayments implements AttributeInterface
1010
{
1111
/**
12-
* @var string $uri
12+
* @var string
1313
*/
1414
protected string $uri;
1515

1616
/**
17-
* @var string $startDate
17+
* @var string
1818
*/
1919
protected string $startDate;
2020

2121
/**
22-
* @var string $endDate
22+
* @var string
2323
*/
2424
protected string $endDate;
2525

2626
/**
27-
* @var string $startingAfter
27+
* @var string
2828
*/
2929
protected string $startingAfter;
3030

@@ -55,7 +55,7 @@ public function initializeUri(): static
5555
*/
5656
public function createEndpoint(?string $endpoint): string
5757
{
58-
return $this->url . $this->uri . $this->start($endpoint);
58+
return $this->url.$this->uri.$this->start($endpoint);
5959
}
6060

6161
/**
@@ -93,6 +93,7 @@ public function startingAfter(string $startingAfter): static
9393

9494
/**
9595
* @return $this
96+
*
9697
* @throws LargeLimitException
9798
*/
9899
public function limit(int $limit): static
@@ -115,4 +116,4 @@ public function get()
115116
'limit' => $this->limit,
116117
]);
117118
}
118-
}
119+
}

src/Contracts/AttributeInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
interface AttributeInterface
66
{
77
public function __construct();
8+
89
public function initializeUri(): static;
10+
911
public function createEndpoint(?string $endpoint): string;
10-
}
12+
}

src/Exceptions/LargeLimitException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
class LargeLimitException extends \Exception
66
{
77
protected $message = 'limit 가 10000을 초과하였습니다.';
8-
}
8+
}

src/TossPayments.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,42 @@
88
class TossPayments
99
{
1010
/**
11-
* @var string $attribute
11+
* @var string
1212
*/
1313
protected $attribute;
1414

1515
/**
16-
* @var $client
16+
* @var
1717
*/
1818
protected $client;
1919

2020
/**
21-
* @var string $url
21+
* @var string
2222
*/
2323
protected string $endpoint;
2424

2525
/**
26-
* @var string $version
26+
* @var string
2727
*/
2828
protected string $version;
2929

3030
/**
31-
* @var string $url
31+
* @var string
3232
*/
3333
protected string $url;
3434

3535
/**
36-
* @var string $clientKey
36+
* @var string
3737
*/
3838
protected string $clientKey;
3939

4040
/**
41-
* @var string $secretKey
41+
* @var string
4242
*/
4343
protected string $secretKey;
4444

4545
/**
46-
* @var array $headers
46+
* @var array
4747
*/
4848
protected array $headers = [];
4949

@@ -93,7 +93,7 @@ protected function initializeApiUrl(): static
9393
{
9494
$this->endpoint = config('toss-payments.endpoint');
9595
$this->version = config('toss-payments.version');
96-
$this->url = $this->endpoint . '/' . $this->version;
96+
$this->url = $this->endpoint.'/'.$this->version;
9797

9898
return $this;
9999
}
@@ -115,7 +115,7 @@ protected function initializeKeys(): static
115115
protected function initializeHeaders(): static
116116
{
117117
$this->headers = [
118-
'Authorization' => 'Basic ' . base64_encode($this->secretKey . ':'),
118+
'Authorization' => 'Basic '.base64_encode($this->secretKey.':'),
119119
'Content-Type' => 'application/json',
120120
];
121121

src/TossPaymentsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ public function boot(): void
3232
__DIR__."/../config/{$this->name}.php" => config_path($this->name.'.php'),
3333
], 'config');
3434
}
35-
}
35+
}

0 commit comments

Comments
 (0)