style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
namespace App\Http\Controllers\Api\V1;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Helpers\ApiResponse;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ClassificationService;
|
||||
use App\Helpers\ApiResponse;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ClassificationController extends Controller
|
||||
{
|
||||
@@ -13,27 +13,26 @@ public function __construct(private ClassificationService $service) {}
|
||||
|
||||
public function index(Request $request)
|
||||
{
|
||||
return ApiResponse::handle(fn() => $this->service->index($request->all()), '분류 목록 조회');
|
||||
return ApiResponse::handle(fn () => $this->service->index($request->all()), '분류 목록 조회');
|
||||
}
|
||||
|
||||
public function show(string $id)
|
||||
{
|
||||
return ApiResponse::handle(fn() => $this->service->show((int)$id), '분류 단건 조회');
|
||||
return ApiResponse::handle(fn () => $this->service->show((int) $id), '분류 단건 조회');
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
{
|
||||
return ApiResponse::handle(fn() => $this->service->store($request->all()), '분류 생성');
|
||||
return ApiResponse::handle(fn () => $this->service->store($request->all()), '분류 생성');
|
||||
}
|
||||
|
||||
public function update(string $id, Request $request)
|
||||
{
|
||||
return ApiResponse::handle(fn() => $this->service->update((int)$id, $request->all()), '분류 수정');
|
||||
return ApiResponse::handle(fn () => $this->service->update((int) $id, $request->all()), '분류 수정');
|
||||
}
|
||||
|
||||
public function destroy(string $id)
|
||||
{
|
||||
return ApiResponse::handle(fn() => $this->service->destroy((int)$id), '분류 삭제');
|
||||
return ApiResponse::handle(fn () => $this->service->destroy((int) $id), '분류 삭제');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user