Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcop1 authored and github-actions[bot] committed Jan 9, 2025
1 parent cd3ff74 commit 7715574
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/CustomReport/Controller/Config/TreeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
use Symfony\Component\Serializer\SerializerInterface;
use function count;

/**
* @internal
Expand Down Expand Up @@ -73,6 +74,7 @@ public function __construct(
public function getCustomReports(): JsonResponse
{
$items = $this->customReportService->getCustomReportConfigTree();

return $this->getPaginatedCollection($this->serializer, $items, count($items));
}
}
2 changes: 2 additions & 0 deletions src/CustomReport/Controller/TreeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
use Symfony\Component\Serializer\SerializerInterface;
use function count;

/**
* @internal
Expand Down Expand Up @@ -73,6 +74,7 @@ public function __construct(
public function getCustomReports(): JsonResponse
{
$items = $this->customReportService->getCustomReportTree();

return $this->getPaginatedCollection($this->serializer, $items, count($items));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
interface CustomReportHydratorInterface
{
public function hydrateCustomReportTree(array $reports): array;

public function hydrateCustomReportConfigTree(array $reports): array;
}
1 change: 0 additions & 1 deletion src/CustomReport/Schema/CustomReportConfigTreeNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,4 @@ public function getWriteable(): string
{
return $this->writeable;
}

}
1 change: 1 addition & 0 deletions src/CustomReport/Service/CustomReportServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
interface CustomReportServiceInterface
{
public function getCustomReportTree(): array;

public function getCustomReportConfigTree(): array;
}

0 comments on commit 7715574

Please sign in to comment.