Skip to content

Commit

Permalink
Run cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyCupic committed Oct 10, 2023
1 parent 6c8b5d5 commit 0f7850a
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 42 deletions.
3 changes: 1 addition & 2 deletions lib/API/Search/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public function __construct(
private int $limit = 25,
private ?string $nextCursor = null,
private array $sortBy = ['created_at' => 'desc']
) {
}
) {}

public function __toString(): string
{
Expand Down
3 changes: 1 addition & 2 deletions lib/API/Search/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public function __construct(
private int $totalCount,
private ?string $nextCursor = null,
private array $resources = []
) {
}
) {}

public function getTotalCount(): int
{
Expand Down
3 changes: 1 addition & 2 deletions lib/API/Upload/FileStruct.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ private function __construct(
private string $uri,
private string $originalFilename,
private string $originalExtension,
) {
}
) {}

public static function fromUri(string $uri): self
{
Expand Down
3 changes: 1 addition & 2 deletions lib/API/Upload/ResourceStruct.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public function __construct(
private ?string $caption = null,
private array $tags = [],
private array $context = []
) {
}
) {}

public function getFileStruct(): FileStruct
{
Expand Down
3 changes: 1 addition & 2 deletions lib/API/Values/AuthToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ private function __construct(
private ?DateTimeImmutable $startsAt = null,
private ?DateTimeImmutable $expiresAt = null,
private ?string $ipAddress = null
) {
}
) {}

public static function fromDuration(int $duration): self
{
Expand Down
3 changes: 1 addition & 2 deletions lib/API/Values/CropSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public function __construct(
private int $y = 0,
private int $width = 0,
private int $height = 0
) {
}
) {}

public static function fromArray(string $transformationName, array $coords): self
{
Expand Down
3 changes: 1 addition & 2 deletions lib/API/Values/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ final class Folder
public function __construct(
private string $name,
private ?self $parent = null
) {
}
) {}

public function __toString(): string
{
Expand Down
3 changes: 1 addition & 2 deletions lib/API/Values/RemoteResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ public function __construct(
private array $metadata = [],
private array $context = [],
private Collection|array $locations = [],
) {
}
) {}

public function getId(): ?int
{
Expand Down
3 changes: 1 addition & 2 deletions lib/API/Values/RemoteResourceLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
private array $cropSettings = [],
private ?string $watermarkText = null,
private ?int $id = null,
) {
}
) {}

public function getId(): ?int
{
Expand Down
3 changes: 1 addition & 2 deletions lib/API/Values/RemoteResourceVariation.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ public function __construct(
private RemoteResource $resource,
private string $url,
private array $transformations = []
) {
}
) {}

public static function fromResource(RemoteResource $resource): self
{
Expand Down
3 changes: 1 addition & 2 deletions lib/API/Values/StatusData.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ final class StatusData
*/
public function __construct(
private array $properties = []
) {
}
) {}

public function has(string $key): bool
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Core/Provider/Cloudinary/CloudinaryRemoteId.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public function __construct(
private string $type,
private string $resourceType,
private string $resourceId
) {
}
) {}

public static function fromCloudinaryData(array $data): self
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Core/Provider/Cloudinary/Factory/CloudinaryInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
private string $apiSecret,
private string $uploadPrefix,
private bool $useSubdomains = false
) {
}
) {}

public function create(): Cloudinary
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Core/Provider/Cloudinary/Factory/SearchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ final class SearchResult implements SearchResultFactoryInterface
{
public function __construct(
private RemoteResourceFactory $remoteResourceFactory,
) {
}
) {}

public function create(mixed $data): Result
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public function __construct(
private GatewayInterface $gateway,
private CacheItemPoolInterface $cache,
private int $ttl = 7200
) {
}
) {}

public function usage(): StatusData
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Core/Provider/Cloudinary/Resolver/AuthToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ final class AuthToken
{
public function __construct(
private ?string $encryptionKey = null
) {
}
) {}

public function resolve(AuthTokenEntity $token): array
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Core/Provider/Cloudinary/Resolver/SearchExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ final class SearchExpression
public function __construct(
private ResourceTypeConverter $resourceTypeConverter,
private VisibilityTypeConverter $visibilityTypeConverter,
) {
}
) {}

public function resolve(Query $query): string
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Event/Cloudinary/NotificationReceivedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ final class NotificationReceivedEvent extends Event

public function __construct(
private Request $request,
) {
}
) {}

public function getRequest(): Request
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Form/DataTransformer/RemoteMediaTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ final class RemoteMediaTransformer implements DataTransformerInterface
{
public function __construct(
private ProviderInterface $provider
) {
}
) {}

public function transform($value)
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Form/Type/RemoteMediaFolderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ final class RemoteMediaFolderType extends AbstractType
{
public function __construct(
private DataTransformerInterface $transformer,
) {
}
) {}

public function configureOptions(OptionsResolver $resolver): void
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Form/Type/RemoteMediaType.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ final class RemoteMediaType extends AbstractType
public function __construct(
private DataTransformerInterface $transformer,
private ProviderInterface $provider,
) {
}
) {}

public function configureOptions(OptionsResolver $resolver): void
{
Expand Down

0 comments on commit 0f7850a

Please sign in to comment.