Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig authored and github-actions[bot] committed Nov 28, 2024
1 parent b15d62d commit 634f93d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/Document/Attribute/Response/AvailableSitesJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use OpenApi\Attributes\Items;
use OpenApi\Attributes\JsonContent;
use OpenApi\Attributes\Property;
use Pimcore\Bundle\StudioBackendBundle\Class\Schema\QuantityValueUnit;
use Pimcore\Bundle\StudioBackendBundle\Document\Schema\Site;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Document/Controller/AvailableSitesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct(
content: new AvailableSitesJson()
)]
#[DefaultResponses([
HttpResponseCodes::UNAUTHORIZED
HttpResponseCodes::UNAUTHORIZED,
])]
public function getAvailableSites(
#[MapQueryString] MappedParameter $parameter
Expand Down
3 changes: 1 addition & 2 deletions src/Document/MappedParameter/ExcludeMainSiteParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
{
public function __construct(
private ?string $excludeMainSite = null
)
{
) {
}

public function getExcludeMainSite(): bool
Expand Down
3 changes: 1 addition & 2 deletions src/Document/Repository/SiteRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ public function listSites(): array
{
return (new Listing())->load();
}

}
}
1 change: 1 addition & 0 deletions src/Document/Repository/SiteRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

namespace Pimcore\Bundle\StudioBackendBundle\Document\Repository;

use Pimcore\Model\Site;

/**
Expand Down
3 changes: 1 addition & 2 deletions src/Document/Schema/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public function __construct(
private readonly array $domains,
#[Property(description: 'Domain', type: 'string', example: 'main_site')]
private readonly string $domain,
)
{
) {
}

public function getId(): int
Expand Down
2 changes: 1 addition & 1 deletion src/Document/Service/SiteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ public function getAvailableSites(ExcludeMainSiteParameter $parameter): array

private function getMainSite(): Site
{
return new Site(0,1,'/',[],'main_site');
return new Site(0, 1, '/', [], 'main_site');
}
}

0 comments on commit 634f93d

Please sign in to comment.