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 14, 2025
1 parent 0e0b11a commit bcb23b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/CustomReport/Repository/CustomReportRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

namespace Pimcore\Bundle\StudioBackendBundle\CustomReport\Repository;

use Exception;
use Pimcore\Bundle\CustomReportsBundle\Tool\Config;
use Pimcore\Bundle\CustomReportsBundle\Tool\Config\Listing;
use Pimcore\Bundle\CustomReportsBundle\Tool\Config\Listing\Dao;
use Pimcore\Bundle\StaticResolverBundle\Models\Tool\CustomReportResolverInterface;
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\NotFoundException;
use Pimcore\Bundle\StudioBackendBundle\Security\Service\SecurityServiceInterface;
Expand Down Expand Up @@ -59,12 +59,11 @@ public function loadByName(string $name): ?Config

try {
$report = $this->customReportResolver->getByName($name);
}
catch(\Exception $e){
} catch (Exception $e) {
$exception = $e;
}

if(!$report || $exception) {
if (!$report || $exception) {
throw new NotFoundException(
'Report',
$name,
Expand Down
2 changes: 0 additions & 2 deletions src/CustomReport/Service/CustomReportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
use Pimcore\Bundle\StudioBackendBundle\CustomReport\Extractor\DataExtractorInterface;
use Pimcore\Bundle\StudioBackendBundle\CustomReport\MappedParameter\ChartDataParameter;
use Pimcore\Bundle\StudioBackendBundle\CustomReport\Repository\CustomReportRepositoryInterface;
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\NotFoundException;
use Pimcore\Model\User;
use Exception;

/**
* @internal
Expand Down

0 comments on commit bcb23b9

Please sign in to comment.