Skip to content

Commit 808e3f9

Browse files
committed
Fix PHP CodeSniffer errors/warnings
1 parent 24fb49c commit 808e3f9

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

src/BitPaySDK/Model/Subscription/BillData.php

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ class BillData
4343
* @param string|null $number Recurring bill identifier, specified by merchant
4444
* @param string|null $currency The three digit currency code used to compute the billData's amount.
4545
* @param string|null $email The email address of the receiver for this billData.
46-
* @param string|\DateTime|null $dueDate Date and time at which a bill is due, ISO-8601 format yyyy-mm-ddThh:mm:ssZ (UTC).
46+
* @param string|\DateTime|null $dueDate Date and time at which a bill is due, ISO-8601 format yyyy-mm-ddThh:mm:ssZ
47+
* (UTC).
4748
* @param array|null $items The list of line items to add to this billData.
4849
*/
4950
public function __construct(
50-
?string $number = null,
51-
?string $currency = null,
52-
?string $email = null,
51+
?string $number = null,
52+
?string $currency = null,
53+
?string $email = null,
5354
string|\DateTime|null $dueDate = null,
54-
?array $items = null
55-
)
56-
{
55+
?array $items = null
56+
) {
5757
$this->number = $number;
5858
$this->currency = $currency ?: Currency::USD;
5959
$this->email = $email;
@@ -73,7 +73,8 @@ public function __construct(
7373
/**
7474
* Gets billData emailBill
7575
*
76-
* If set to `true`, BitPay will automatically issue recurring bills to the `email` address provided once the status of the subscription is set to `active`.
76+
* If set to `true`, BitPay will automatically issue recurring bills to the `email` address provided once the
77+
* status of the subscription is set to `active`.
7778
*
7879
* @return bool|null
7980
*/
@@ -85,7 +86,8 @@ public function getEmailBill(): ?bool
8586
/**
8687
* Sets billData's emailBill
8788
*
88-
* If set to `true`, BitPay will automatically issue recurring bills to the `email` address provided once the status of the subscription is set to `active`.
89+
* If set to `true`, BitPay will automatically issue recurring bills to the `email` address provided once the
90+
* status of the subscription is set to `active`.
8991
*
9092
* @param bool|null $emailBill
9193
* @return void
@@ -438,8 +440,8 @@ public function setPhone(string $phone): void
438440
*
439441
* Date and time at which a billData is due, ISO-8601 format yyyy-mm-ddThh:mm:ssZ. (UTC)
440442
*
441-
* @see Env::BITPAY_DATETIME_FORMAT
442443
* @return string|null the number
444+
* @see Env::BITPAY_DATETIME_FORMAT
443445
*/
444446
public function getDueDate(): ?string
445447
{
@@ -451,8 +453,8 @@ public function getDueDate(): ?string
451453
*
452454
* Date and time at which a billData is due, ISO-8601 format yyyy-mm-ddThh:mm:ssZ. (UTC)
453455
*
454-
* @see Env::BITPAY_DATETIME_FORMAT
455456
* @param string $dueDate Date and time at which a billData is due
457+
* @see Env::BITPAY_DATETIME_FORMAT
456458
*/
457459
public function setDueDate(string $dueDate): void
458460
{

src/BitPaySDK/Model/Subscription/SubscriptionSchedule.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
namespace BitPaySDK\Model\Subscription;
1313

1414
/**
15-
* Schedule of repeat bill due dates. Can be `weekly`, `monthly`, `quarterly`, `yearly`, or a simple cron expression specifying seconds, minutes, hours, day of month, month, and day of week. BitPay maintains the difference between the due date and the delivery date in all subsequent, automatically-generated bills.
15+
* Schedule of repeat bill due dates. Can be `weekly`, `monthly`, `quarterly`, `yearly`, or a simple cron expression
16+
* specifying seconds, minutes, hours, day of month, month, and day of week. BitPay maintains the difference between
17+
* the due date and the delivery date in all subsequent, automatically-generated bills.
1618
*
1719
* +-------------- second (0 - 59)
1820
*

0 commit comments

Comments
 (0)