From cf9d051e168fad95fba9efef4143b62658786467 Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Thu, 19 Dec 2024 10:07:44 +0100 Subject: [PATCH] Fixes in code style --- .../Matchfunding/MatchSubmissionStatus.php | 4 +- .../MatchfundingTransactionsListener.php | 4 +- .../MatchStrategy/MatchStrategyInterface.php | 6 +-- .../MatchStrategy/MatchStrategyLocator.php | 2 +- .../Matchfunding/MatchCallRepository.php | 46 +++++++++---------- 5 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/Entity/Matchfunding/MatchSubmissionStatus.php b/src/Entity/Matchfunding/MatchSubmissionStatus.php index 73dc03b..b26e245 100644 --- a/src/Entity/Matchfunding/MatchSubmissionStatus.php +++ b/src/Entity/Matchfunding/MatchSubmissionStatus.php @@ -10,12 +10,12 @@ enum MatchSubmissionStatus: string case InReview = 'in_review'; /** - * The MatchSubmission was accepted into the MatchCall + * The MatchSubmission was accepted into the MatchCall. */ case Accepted = 'accepted'; /** - * The MatchSubmission was rejected out of the MatchCall + * The MatchSubmission was rejected out of the MatchCall. */ case Rejected = 'rejected'; } diff --git a/src/EventListener/MatchfundingTransactionsListener.php b/src/EventListener/MatchfundingTransactionsListener.php index 0334119..a9c2570 100644 --- a/src/EventListener/MatchfundingTransactionsListener.php +++ b/src/EventListener/MatchfundingTransactionsListener.php @@ -18,11 +18,11 @@ final class MatchfundingTransactionsListener { public function __construct( - private MatchStrategyLocator $matchStrategyLocator + private MatchStrategyLocator $matchStrategyLocator, ) {} /** - * Generates an income statement for User-received Transactions. + * Generates matched Transactions for Transactions inside a MatchCall. */ public function processTransaction( Transaction $transaction, diff --git a/src/Matchfunding/MatchStrategy/MatchStrategyInterface.php b/src/Matchfunding/MatchStrategy/MatchStrategyInterface.php index b08cda7..f373224 100644 --- a/src/Matchfunding/MatchStrategy/MatchStrategyInterface.php +++ b/src/Matchfunding/MatchStrategy/MatchStrategyInterface.php @@ -12,10 +12,10 @@ interface MatchStrategyInterface public static function getName(): string; /** - * Process a Transaction targeting a Matchfunding that uses this strategy - * + * Process a Transaction targeting a Matchfunding that uses this strategy. + * * @param Transaction $transaction The input Transaction that is eligible for matching - * + * * @return Transaction A new output Transaction for the matching */ public function match(Transaction $transaction): Transaction; diff --git a/src/Matchfunding/MatchStrategy/MatchStrategyLocator.php b/src/Matchfunding/MatchStrategy/MatchStrategyLocator.php index 71ae51b..d353e0c 100644 --- a/src/Matchfunding/MatchStrategy/MatchStrategyLocator.php +++ b/src/Matchfunding/MatchStrategy/MatchStrategyLocator.php @@ -10,7 +10,7 @@ class MatchStrategyLocator private array $strategiesByName; public function __construct( - iterable $strategies + iterable $strategies, ) { $strategies = \iterator_to_array($strategies); diff --git a/src/Repository/Matchfunding/MatchCallRepository.php b/src/Repository/Matchfunding/MatchCallRepository.php index 15534cf..a7fb3cd 100644 --- a/src/Repository/Matchfunding/MatchCallRepository.php +++ b/src/Repository/Matchfunding/MatchCallRepository.php @@ -16,28 +16,28 @@ public function __construct(ManagerRegistry $registry) parent::__construct($registry, MatchCall::class); } -// /** -// * @return MatchCall[] Returns an array of MatchCall objects -// */ -// public function findByExampleField($value): array -// { -// return $this->createQueryBuilder('m') -// ->andWhere('m.exampleField = :val') -// ->setParameter('val', $value) -// ->orderBy('m.id', 'ASC') -// ->setMaxResults(10) -// ->getQuery() -// ->getResult() -// ; -// } + // /** + // * @return MatchCall[] Returns an array of MatchCall objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('m') + // ->andWhere('m.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('m.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } -// public function findOneBySomeField($value): ?MatchCall -// { -// return $this->createQueryBuilder('m') -// ->andWhere('m.exampleField = :val') -// ->setParameter('val', $value) -// ->getQuery() -// ->getOneOrNullResult() -// ; -// } + // public function findOneBySomeField($value): ?MatchCall + // { + // return $this->createQueryBuilder('m') + // ->andWhere('m.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } }