Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 15, 2023
1 parent 0fdfedd commit d718e30
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@

final class SetLocationContentTypesListener implements EventSubscriberInterface
{
public function __construct(private ConfigResolverInterface $configResolver)
{
}
public function __construct(private ConfigResolverInterface $configResolver) {}

public static function getSubscribedEvents(): array
{
Expand Down
4 changes: 1 addition & 3 deletions bundle/EventListener/Ibexa/SetSectionsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@

final class SetSectionsListener implements EventSubscriberInterface
{
public function __construct(private ConfigResolverInterface $configResolver)
{
}
public function __construct(private ConfigResolverInterface $configResolver) {}

public static function getSubscribedEvents(): array
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Backend/IbexaBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public function __construct(
private SearchService $searchService,
private LocationService $locationService,
private Configuration $config,
) {
}
) {}

public function getSections(): iterable
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Backend/NetgenTagsBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public function __construct(
private TagsService $tagsService,
private TranslationHelper $translationHelper,
private ConfigResolverInterface $configResolver,
) {
}
) {}

public function getSections(): iterable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

final class Modified implements ColumnValueProviderInterface
{
public function __construct(private string $dateFormat)
{
}
public function __construct(private string $dateFormat) {}

public function getValue(ItemInterface $item): ?string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@

final class ObjectState implements ColumnValueProviderInterface
{
public function __construct(private Repository $repository)
{
}
public function __construct(private Repository $repository) {}

public function getValue(ItemInterface $item): ?string
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Item/ColumnProvider/ColumnValueProvider/Ibexa/Owner.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

final class Owner implements ColumnValueProviderInterface
{
public function __construct(private Repository $repository)
{
}
public function __construct(private Repository $repository) {}

public function getValue(ItemInterface $item): ?string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

final class Published implements ColumnValueProviderInterface
{
public function __construct(private string $dateFormat)
{
}
public function __construct(private string $dateFormat) {}

public function getValue(ItemInterface $item): ?string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

final class Section implements ColumnValueProviderInterface
{
public function __construct(private Repository $repository)
{
}
public function __construct(private Repository $repository) {}

public function getValue(ItemInterface $item): ?string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

final class Modified implements ColumnValueProviderInterface
{
public function __construct(private string $dateFormat)
{
}
public function __construct(private string $dateFormat) {}

public function getValue(ItemInterface $item): ?string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

final class ParentTag implements ColumnValueProviderInterface
{
public function __construct(private TagsService $tagsService, private TranslationHelper $translationHelper)
{
}
public function __construct(private TagsService $tagsService, private TranslationHelper $translationHelper) {}

public function getValue(ItemInterface $item): ?string
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Item/NetgenTags/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

final class Item implements ItemInterface, LocationInterface, NetgenTagsInterface
{
public function __construct(private Tag $tag, private string $name)
{
}
public function __construct(private Tag $tag, private string $name) {}

public function getLocationId(): int
{
Expand Down
4 changes: 1 addition & 3 deletions tests/lib/Stubs/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

final class Item implements ItemInterface
{
public function __construct(private int $value)
{
}
public function __construct(private int $value) {}

public function getValue(): int
{
Expand Down
4 changes: 1 addition & 3 deletions tests/lib/Stubs/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

final class Location implements LocationInterface
{
public function __construct(private int $id, private ?int $parentId = null)
{
}
public function __construct(private int $id, private ?int $parentId = null) {}

public function getLocationId(): int
{
Expand Down

0 comments on commit d718e30

Please sign in to comment.