Apply fixes from StyleCI

This commit is contained in:
Daan Geurts
2019-10-16 12:56:53 +00:00
committed by StyleCI Bot
parent d3ed07c4a2
commit 4712ae7094
6 changed files with 6 additions and 13 deletions
+1 -2
View File
@@ -8,12 +8,11 @@ class AppleNotification extends Model
{
public $guarded = [];
public static function storeNotification(String $notificationType, NotificationPayload $notificationPayload)
public static function storeNotification(string $notificationType, NotificationPayload $notificationPayload)
{
return self::create([
'type' => $notificationType,
'payload' => serialize($notificationPayload),
]);
}
}
-4
View File
@@ -2,8 +2,6 @@
namespace Appvise\AppStoreNotifications\Model;
class Receipt
{
private $originalTransactionId;
@@ -37,7 +35,6 @@ class Receipt
public function __construct()
{
}
public static function createFromArray(array $receiptInfo)
@@ -75,7 +72,6 @@ class Receipt
return $instance;
}
/**
* Get the value of bid.
*/
+2 -2
View File
@@ -2,7 +2,6 @@
namespace Appvise\AppStoreNotifications\Model;
class RenewalInfo
{
private $autoRenewProductId;
@@ -16,7 +15,6 @@ class RenewalInfo
private $gracePeriodExpiresDateMs;
private $gracePeriodExpiresDatePst;
public function __construct()
{
}
@@ -33,8 +31,10 @@ class RenewalInfo
$instance->priceConsentStatus = $pendingRenewalInfo['price_consent_status'] ?? null;
$instance->gracePeriodExpiresDate = $pendingRenewalInfo['grace_period_expires_date'] ?? null;
$instance->gracePeriodExpiresDatePst = $pendingRenewalInfo['grace_period_expires_date_pst'] ?? null;
return $instance;
}
/**
* Get the value of autoRenewProductId.
*/