Skip to content

Commit

Permalink
style: pint
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Sep 14, 2024
1 parent c93116a commit d28b8bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/Enum/UploadType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Enum;

enum UploadType : string
enum UploadType: string
{
case ATTACHMENT = 'attachment';
case HEADER = 'header';
case CONTENT = 'content';
}
}
3 changes: 1 addition & 2 deletions app/Http/Controllers/NewsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Routing\Controllers\HasMiddleware;
use Illuminate\Routing\Controllers\Middleware;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Validator;
Expand Down Expand Up @@ -233,7 +232,7 @@ public function listAttachments(Request $request, $id)
$news = $this->find($id, allowGuest: true);

$query = collect(Validator::make($request->query(), [
'type' => 'nullable|string|in:content,header,attachment'
'type' => 'nullable|string|in:content,header,attachment',
])->validated());

return AttachmentResource::collection($news->attachments);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/StorageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class StorageController extends Controller
public function __invoke(Request $request, string $path)
{
$disk = Storage::disk('public');
if (!$disk->exists($path)) {
if (! $disk->exists($path)) {
abort(404);
}

Expand Down
3 changes: 2 additions & 1 deletion database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Database\Seeders;

use Illuminate\Database\Seeder;

use function Laravel\Prompts\confirm;

class DatabaseSeeder extends Seeder
Expand All @@ -20,7 +21,7 @@ class: [
],
);

if (confirm("Run News seeder?", true)) {
if (confirm('Run News seeder?', true)) {
$this->call(NewsSeeder::class);
}
}
Expand Down

0 comments on commit d28b8bb

Please sign in to comment.