Skip to content

Commit 45b7bce

Browse files
author
olaru
committed
cs fix:
1 parent 331eeb1 commit 45b7bce

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/Blog/src/Handler/GetCategoryResourceHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public function __construct(
2121

2222
public function handle(ServerRequestInterface $request): ResponseInterface
2323
{
24-
$categorySlug = $request->getAttribute('slug');
25-
$category = $this->categoryRepository->getCategoryResource($categorySlug);
26-
if (!$category) {
24+
$categorySlug = $request->getAttribute('slug');
25+
$category = $this->categoryRepository->getCategoryResource($categorySlug);
26+
if (! $category) {
2727
return new HtmlResponse('Category not found', 404);
2828
}
2929
$categories = $this->categoryRepository->getCategories();

src/Blog/src/Repository/CategoryRepository.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Light\Blog\Repository;
66

7-
use Laminas\Diactoros\Response\EmptyResponse;
87
use Light\App\Repository\AbstractRepository;
98
use Light\Blog\Entity\Article;
109
use Light\Blog\Entity\Category;

0 commit comments

Comments
 (0)