Skip to content

Commit

Permalink
Run CS fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy Čupić committed Nov 28, 2024
1 parent 0e49581 commit 25c5acf
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 18 deletions.
8 changes: 4 additions & 4 deletions bundle/Command/RefreshStoredResourcesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class RefreshStoredResourcesCommand extends Command

private int $batchSize = 500;

/** @var \Netgen\RemoteMedia\API\Values\RemoteResource[] */
/** @var RemoteResource[] */
private array $resourcesToDelete;

public function __construct(
Expand Down Expand Up @@ -97,15 +97,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

/**
* @return \Netgen\RemoteMedia\API\Values\RemoteResource[]
* @return RemoteResource[]
*/
private function getBatch(int $limit, int $offset): array
{
return $this->resourceRepository->findBy([], null, $limit, $offset);
}

/**
* @param \Netgen\RemoteMedia\API\Values\RemoteResource[] $resources
* @param RemoteResource[] $resources
*/
private function refreshResources(array $resources): void
{
Expand Down Expand Up @@ -135,7 +135,7 @@ private function refreshResources(array $resources): void
/**
* @param string[] $remoteIds
*
* @return array<string, \Netgen\RemoteMedia\API\Values\RemoteResource>
* @return array<string, RemoteResource>
*/
private function getRemoteBatch(array $remoteIds): array
{
Expand Down
2 changes: 1 addition & 1 deletion bundle/Controller/Resource/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function formatResource(RemoteResource $resource): array
}

/**
* @param \Netgen\RemoteMedia\API\Values\RemoteResource[] $resources
* @param RemoteResource[] $resources
*/
protected function formatResources(array $resources): array
{
Expand Down
4 changes: 2 additions & 2 deletions bundle/Templating/Twig/Extension/RemoteMediaExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
final class RemoteMediaExtension extends AbstractExtension
{
/**
* @return \Twig\TwigFunction[]
* @return TwigFunction[]
*/
public function getFunctions(): array
{
Expand Down Expand Up @@ -97,7 +97,7 @@ public function getFunctions(): array
}

/**
* @return \Twig\TwigFilter[]
* @return TwigFilter[]
*/
public function getFilters(): array
{
Expand Down
4 changes: 3 additions & 1 deletion lib/API/Search/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace Netgen\RemoteMedia\API\Search;

use Netgen\RemoteMedia\API\Values\Folder;

use function get_object_vars;
use function http_build_query;
use function implode;
Expand All @@ -13,7 +15,7 @@ final class Query
{
/**
* @param string[] $types
* @param \Netgen\RemoteMedia\API\Values\Folder[] $folders
* @param Folder[] $folders
* @param string[] $visibilities
* @param string[] $tags
* @param string[] $remoteIds
Expand Down
6 changes: 4 additions & 2 deletions lib/API/Search/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

namespace Netgen\RemoteMedia\API\Search;

use Netgen\RemoteMedia\API\Values\RemoteResource;

final class Result
{
/**
* @param \Netgen\RemoteMedia\API\Values\RemoteResource[] $resources
* @param RemoteResource[] $resources
*/
public function __construct(
private int $totalCount,
Expand All @@ -26,7 +28,7 @@ public function getNextCursor(): ?string
}

/**
* @return \Netgen\RemoteMedia\API\Values\RemoteResource[]
* @return RemoteResource[]
*/
public function getResources(): array
{
Expand Down
4 changes: 2 additions & 2 deletions lib/API/Values/RemoteResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class RemoteResource
* @param string[] $tags
* @param array<string,mixed> $metadata
* @param array<string,mixed> $context
* @param Collection|\Netgen\RemoteMedia\API\Values\RemoteResourceLocation[] $locations
* @param Collection|RemoteResourceLocation[] $locations
*/
public function __construct(
private string $remoteId,
Expand Down Expand Up @@ -343,7 +343,7 @@ public function removeContextProperty(string $name): self
}

/**
* @return Collection|\Netgen\RemoteMedia\API\Values\RemoteResourceLocation[]
* @return Collection|RemoteResourceLocation[]
*/
public function getLocations(): array|Collection
{
Expand Down
4 changes: 2 additions & 2 deletions lib/API/Values/RemoteResourceLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ public function setSource(?string $source): self
}

/**
* @return \Netgen\RemoteMedia\API\Values\CropSettings[]
* @return CropSettings[]
*/
public function getCropSettings(): array
{
return $this->cropSettings;
}

/**
* @param \Netgen\RemoteMedia\API\Values\CropSettings[] $cropSettings
* @param CropSettings[] $cropSettings
*/
public function setCropSettings(array $cropSettings): self
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Core/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(
}

/**
* @return \Netgen\RemoteMedia\API\Values\Folder[]
* @return Folder[]
*
* @throws NotSupportedException
*/
Expand Down Expand Up @@ -356,7 +356,7 @@ public function generateRawVariationHtmlTag(
}

/**
* @return \Netgen\RemoteMedia\API\Values\Folder[]
* @return Folder[]
*/
abstract protected function internalListFolders(?Folder $parent = null): array;

Expand Down
2 changes: 1 addition & 1 deletion lib/Core/Transformation/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

final class Registry
{
/** @var \Netgen\RemoteMedia\Core\Transformation\HandlerInterface[] */
/** @var HandlerInterface[] */
private array $transformationHandlers = [];

public function addHandler(string $provider, string $identifier, HandlerInterface $transformationHandler): void
Expand Down
2 changes: 1 addition & 1 deletion lib/Form/DataTransformer/RemoteMediaTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private function resolveCropSettingsString(RemoteResourceLocation $location): st
}

/**
* @return \Netgen\RemoteMedia\API\Values\CropSettings[]
* @return CropSettings[]
*/
private function resolveCropSettings(array $data): array
{
Expand Down

0 comments on commit 25c5acf

Please sign in to comment.