Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon authored and github-actions[bot] committed May 7, 2024
1 parent 74c8ef6 commit 9e7f1eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Property/Controller/Element/PutController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public function updateProperties(
string $elementType,
int $id,
#[MapRequestPayload] UpdateElementProperties $items
): JsonResponse
{
): JsonResponse {
$this->propertyService->updateElementProperties($elementType, $id, $items);

return $this->jsonResponse($this->hydratorService->getHydratedPropertyForElement($elementType, $id));
}
}
6 changes: 3 additions & 3 deletions src/Property/Request/UpdateElementProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

namespace Pimcore\Bundle\StudioBackendBundle\Property\Request;


use Pimcore\Bundle\StudioBackendBundle\Property\Schema\UpdateElementProperty;

/**
Expand All @@ -25,10 +24,11 @@
final readonly class UpdateElementProperties
{
private array $properties;

public function __construct(
array $items
array $items
) {
$this->properties = array_map(static function(array $propertyData) {
$this->properties = array_map(static function (array $propertyData) {
return new UpdateElementProperty(
$propertyData['key'],
$propertyData['data'],
Expand Down
4 changes: 1 addition & 3 deletions src/Property/Service/PropertyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
public function __construct(
private RepositoryInterface $repository,
private ServiceResolver $serviceResolver,
){
) {
}

/**
Expand Down Expand Up @@ -69,6 +69,4 @@ public function deletePredefinedProperty(string $id): void
{
$this->repository->deletePredefinedProperty($id);
}


}

0 comments on commit 9e7f1eb

Please sign in to comment.