Fix Pint formatting

This commit is contained in:
root
2026-06-09 01:25:14 -04:00
parent 6be4875c5e
commit 20a0b6c4e5
1485 changed files with 11318 additions and 10273 deletions
@@ -5,7 +5,6 @@ namespace App\Services\ClassProgress;
use App\Models\ClassProgressAttachment;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Storage;
class ClassProgressAttachmentService
{
@@ -17,7 +16,7 @@ class ClassProgressAttachmentService
$stored = [];
foreach ($files as $file) {
if (!$file instanceof UploadedFile || !$file->isValid()) {
if (! $file instanceof UploadedFile || ! $file->isValid()) {
continue;
}
@@ -49,17 +48,17 @@ class ClassProgressAttachmentService
$candidates = [];
if (str_starts_with($path, 'storage/')) {
$relative = ltrim(substr($path, strlen('storage/')), '/');
$candidates[] = storage_path('app/public/' . $relative);
$candidates[] = storage_path('app/public/'.$relative);
}
if (str_starts_with($path, 'writable/uploads/')) {
$relative = ltrim(substr($path, strlen('writable/uploads/')), '/');
$candidates[] = storage_path('app/' . $relative);
$candidates[] = storage_path('app/public/' . $relative);
$candidates[] = storage_path('app/'.$relative);
$candidates[] = storage_path('app/public/'.$relative);
}
$candidates[] = storage_path('app/' . ltrim($path, '/'));
$candidates[] = storage_path('app/public/' . ltrim($path, '/'));
$candidates[] = storage_path('app/'.ltrim($path, '/'));
$candidates[] = storage_path('app/public/'.ltrim($path, '/'));
foreach ($candidates as $candidate) {
if (is_file($candidate)) {
@@ -84,6 +83,6 @@ class ClassProgressAttachmentService
throw $e;
}
return 'storage/' . ltrim($path, '/');
return 'storage/'.ltrim($path, '/');
}
}