Skip to content

Commit

Permalink
Fixes in code style
Browse files Browse the repository at this point in the history
  • Loading branch information
subiabre committed Dec 19, 2024
1 parent ae098d7 commit cf9d051
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions src/Entity/Matchfunding/MatchSubmissionStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
4 changes: 2 additions & 2 deletions src/EventListener/MatchfundingTransactionsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/Matchfunding/MatchStrategy/MatchStrategyInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Matchfunding/MatchStrategy/MatchStrategyLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MatchStrategyLocator
private array $strategiesByName;

public function __construct(
iterable $strategies
iterable $strategies,
) {
$strategies = \iterator_to_array($strategies);

Expand Down
46 changes: 23 additions & 23 deletions src/Repository/Matchfunding/MatchCallRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
// ;
// }
}

0 comments on commit cf9d051

Please sign in to comment.