Skip to content

Commit e8d3865

Browse files
committed
Code style
1 parent 27368b6 commit e8d3865

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

app/Http/Controllers/CustomerSubLicenseController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public function suspend(string $licenseKey, SubLicense $subLicense): RedirectRes
104104
->with('success', 'Sub-license suspended successfully!');
105105
}
106106

107-
108107
public function sendEmail(string $licenseKey, SubLicense $subLicense): RedirectResponse
109108
{
110109
$user = Auth::user();
@@ -123,10 +122,10 @@ public function sendEmail(string $licenseKey, SubLicense $subLicense): RedirectR
123122

124123
// Rate limiting: max 1 email per minute per sub-license
125124
$rateLimiterKey = "send-license-email.{$subLicense->id}";
126-
125+
127126
if (RateLimiter::tooManyAttempts($rateLimiterKey, 1)) {
128127
$secondsUntilAvailable = RateLimiter::availableIn($rateLimiterKey);
129-
128+
130129
return redirect()->route('customer.licenses.show', $licenseKey)
131130
->withErrors(['rate_limit' => "Please wait {$secondsUntilAvailable} seconds before sending another email for this license."]);
132131
}

app/Models/License.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ public function canCreateSubLicense(): bool
115115
return $remaining === null || $remaining > 0;
116116
}
117117

118-
119118
public function suspendAllSubLicenses(): int
120119
{
121120
return $this->subLicenses()->update(['is_suspended' => true]);

app/Models/SubLicense.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,4 @@ public function suspend(): bool
104104
{
105105
return $this->update(['is_suspended' => true]);
106106
}
107-
108107
}

0 commit comments

Comments
 (0)