Skip to content

Commit

Permalink
Fix cs (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx authored Nov 8, 2023
1 parent 27fa8f9 commit f8d3c7e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
4 changes: 1 addition & 3 deletions src/Bridge/Symfony/ElasticallyBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@

use Symfony\Component\HttpKernel\Bundle\Bundle;

class ElasticallyBundle extends Bundle
{
}
class ElasticallyBundle extends Bundle {}
4 changes: 1 addition & 3 deletions src/Messenger/IndexationRequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@

namespace JoliCode\Elastically\Messenger;

interface IndexationRequestInterface
{
}
interface IndexationRequestInterface {}
2 changes: 1 addition & 1 deletion src/Model/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Document extends ElasticaDocument
{
private ?object $model;

public function __construct(?string $id, object $model = null, string|array $data = [], Index|string $index = '')
public function __construct(?string $id, object $model = null, array|string $data = [], Index|string $index = '')
{
parent::__construct($id, $data, $index);

Expand Down
16 changes: 4 additions & 12 deletions tests/SearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,21 +127,13 @@ public function testMyOwnSerializer(): void

class SearchTestDummySerializer implements SerializerInterface, DenormalizerInterface
{
public function denormalize($data, $class, $format = null, array $context = []): mixed
{
}
public function denormalize($data, $class, $format = null, array $context = []): mixed {}

public function supportsDenormalization($data, $type, $format = null, array $context = []): bool
{
}
public function supportsDenormalization($data, $type, $format = null, array $context = []): bool {}

public function serialize(mixed $data, string $format, array $context = []): string
{
}
public function serialize(mixed $data, string $format, array $context = []): string {}

public function deserialize(mixed $data, string $type, string $format, array $context = []): mixed
{
}
public function deserialize(mixed $data, string $type, string $format, array $context = []): mixed {}
}

class SearchTestDto
Expand Down

0 comments on commit f8d3c7e

Please sign in to comment.