Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
style: code linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloKakazu committed May 28, 2024
1 parent 4e92c94 commit a613f0f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package br.com.fiap.grupo30.fastfood.adapters.in.rest;

import br.com.fiap.grupo30.fastfood.application.dto.CategoryDTO;
import br.com.fiap.grupo30.fastfood.application.useCases.CategoryUseCase;
import br.com.fiap.grupo30.fastfood.domain.usecases.product.ListAllCategoriesInMenuUseCase;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public class CustomerResource {
private final RegisterNewCustomerUseCase registerNewCustomerUseCase;

@Autowired
public CustomerResource(FindCustomerByCpfUseCase findCustomerByCpfUseCase, RegisterNewCustomerUseCase registerNewCustomerUseCase) {
public CustomerResource(
FindCustomerByCpfUseCase findCustomerByCpfUseCase,
RegisterNewCustomerUseCase registerNewCustomerUseCase) {
this.findCustomerByCpfUseCase = findCustomerByCpfUseCase;
this.registerNewCustomerUseCase = registerNewCustomerUseCase;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public class ProductResource {

@Autowired
public ProductResource(
ListProductsByCategoryUseCase listProductsByCategoryUseCase,
GetProductUseCase getProductUseCase) {
ListProductsByCategoryUseCase listProductsByCategoryUseCase,
GetProductUseCase getProductUseCase) {

this.listProductsByCategoryUseCase = listProductsByCategoryUseCase;
this.getProductUseCase = getProductUseCase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package br.com.fiap.grupo30.fastfood.domain.usecases.customer;

import org.springframework.stereotype.Component;

import br.com.fiap.grupo30.fastfood.application.dto.CustomerDTO;
import br.com.fiap.grupo30.fastfood.application.services.CustomerService;
import org.springframework.stereotype.Component;

@Component
public class FindCustomerByCpfUseCase {
Expand All @@ -17,5 +16,4 @@ public FindCustomerByCpfUseCase(CustomerService customerService) {
public CustomerDTO execute(String cpf) {
return customerService.findCustomerByCpf(cpf);
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package br.com.fiap.grupo30.fastfood.domain.usecases.customer;

import org.springframework.stereotype.Component;

import br.com.fiap.grupo30.fastfood.application.dto.CustomerDTO;
import br.com.fiap.grupo30.fastfood.application.services.CustomerService;
import org.springframework.stereotype.Component;

@Component
public class RegisterNewCustomerUseCase {
Expand All @@ -17,5 +16,4 @@ public RegisterNewCustomerUseCase(CustomerService customerService) {
public CustomerDTO execute(CustomerDTO dto) {
return customerService.insert(dto);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ public GetProductUseCase(ProductService productService) {
public ProductDTO findProductById(Long id) {
return productService.findById(id);
}

}
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package br.com.fiap.grupo30.fastfood.domain.usecases.product;

import java.util.List;

import org.springframework.stereotype.Component;

import br.com.fiap.grupo30.fastfood.application.dto.CategoryDTO;
import br.com.fiap.grupo30.fastfood.application.services.CategoryService;
import java.util.List;
import org.springframework.stereotype.Component;

@Component
public class ListAllCategoriesInMenuUseCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package br.com.fiap.grupo30.fastfood.domain.usecases.product;

import java.util.List;

import br.com.fiap.grupo30.fastfood.application.dto.ProductDTO;
import br.com.fiap.grupo30.fastfood.application.services.ProductService;
import java.util.List;

public class ListProductsByCategoryUseCase {

Expand Down

0 comments on commit a613f0f

Please sign in to comment.