style: Pint 포맷팅 적용

This commit is contained in:
김보곤
2026-02-25 11:45:01 +09:00
parent 68b1622a4e
commit 9a7c548246
199 changed files with 1420 additions and 1083 deletions

View File

@@ -51,14 +51,18 @@ class SalesCommission extends Model
* 상태 상수
*/
const STATUS_PENDING = 'pending';
const STATUS_APPROVED = 'approved';
const STATUS_PAID = 'paid';
const STATUS_CANCELLED = 'cancelled';
/**
* 입금 구분 상수
*/
const PAYMENT_DEPOSIT = 'deposit';
const PAYMENT_BALANCE = 'balance';
/**
@@ -361,7 +365,7 @@ public function recordFirstPayment(?Carbon $paymentDate = null): bool
*/
public function recordFirstPartnerPaid(?Carbon $paidDate = null): bool
{
if (!$this->first_payment_at) {
if (! $this->first_payment_at) {
return false; // 1차 납입이 먼저 완료되어야 함
}
@@ -385,7 +389,7 @@ public function recordSecondPayment(?Carbon $paymentDate = null): bool
*/
public function recordSecondPartnerPaid(?Carbon $paidDate = null): bool
{
if (!$this->second_payment_at) {
if (! $this->second_payment_at) {
return false; // 2차 납입이 먼저 완료되어야 함
}
@@ -409,7 +413,7 @@ public function recordFirstSubscription(?Carbon $subscriptionDate = null): bool
*/
public function recordManagerPaid(?Carbon $paidDate = null): bool
{
if (!$this->first_subscription_at) {
if (! $this->first_subscription_at) {
return false; // 첫 구독료 입금이 먼저 완료되어야 함
}
@@ -423,9 +427,10 @@ public function recordManagerPaid(?Carbon $paidDate = null): bool
*/
public function getFirstPartnerScheduledDateAttribute(): ?Carbon
{
if (!$this->first_payment_at) {
if (! $this->first_payment_at) {
return null;
}
return Carbon::parse($this->first_payment_at)->addMonth()->day(10);
}
@@ -434,9 +439,10 @@ public function getFirstPartnerScheduledDateAttribute(): ?Carbon
*/
public function getSecondPartnerScheduledDateAttribute(): ?Carbon
{
if (!$this->second_payment_at) {
if (! $this->second_payment_at) {
return null;
}
return Carbon::parse($this->second_payment_at)->addMonth()->day(10);
}
@@ -445,9 +451,10 @@ public function getSecondPartnerScheduledDateAttribute(): ?Carbon
*/
public function getManagerScheduledDateAttribute(): ?Carbon
{
if (!$this->first_subscription_at) {
if (! $this->first_subscription_at) {
return null;
}
return Carbon::parse($this->first_subscription_at)->addMonth()->day(10);
}
@@ -480,7 +487,7 @@ public function isManagerPaid(): bool
*/
public function recordFirstReferrerPaid(?Carbon $paidDate = null): bool
{
if (!$this->referrer_partner_id) {
if (! $this->referrer_partner_id) {
return false;
}
@@ -494,7 +501,7 @@ public function recordFirstReferrerPaid(?Carbon $paidDate = null): bool
*/
public function recordSecondReferrerPaid(?Carbon $paidDate = null): bool
{
if (!$this->referrer_partner_id) {
if (! $this->referrer_partner_id) {
return false;
}