Skip to content

Commit

Permalink
Fixes by PHP CS Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
subiabre committed Dec 16, 2024
1 parent 1707256 commit d82f244
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Mapping/AutoMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function map(array|object $source, string|array|object $target, array $co
{
$context = [
self::SKIP_NULL_VALUES => true,
...$context
...$context,
];

return $this->innerMapper->map($source, $target, $context);
Expand Down
2 changes: 1 addition & 1 deletion src/Mapping/Provider/EntityMapProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class EntityMapProvider implements ProviderInterface
{
public function __construct(
private EntityManagerInterface $entityManager
private EntityManagerInterface $entityManager,
) {}

public function provide(string $targetType, mixed $source, array $context): object|array|null
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Auth/AuthService.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AuthService
public function __construct(
private string $appSecret,
private Security $security,
private UserRepository $userRepository
private UserRepository $userRepository,
) {}

/**
Expand Down
8 changes: 3 additions & 5 deletions src/Service/Project/RewardService.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
class RewardService
{
/**
* Processes a RewardClaim for the set Reward
*
* @param Reward $reward The Reward being claimed
*
* Processes a RewardClaim for the set Reward.
*
* @return RewardClaim The processed RewardClaim with updated Reward
*/
public function processClaim(RewardClaim $claim): RewardClaim
Expand All @@ -25,7 +23,7 @@ public function processClaim(RewardClaim $claim): RewardClaim
$available = $reward->getUnitsAvailable();

if ($available < 1) {
throw new \Exception("The claimed Reward has no units available");
throw new \Exception('The claimed Reward has no units available');
}

$reward->addClaim($claim);
Expand Down
2 changes: 1 addition & 1 deletion src/State/Project/RewardStateProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(

/**
* @param RewardApiResource $data
*
*
* @return RewardApiResource|null
*/
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
Expand Down

0 comments on commit d82f244

Please sign in to comment.