@@ -40,6 +40,9 @@ |
||
40 | 40 | ; |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param \Doctrine\ORM\QueryBuilder $queryBuilder |
|
45 | + */ |
|
43 | 46 | public function applyCustomCriteria($queryBuilder, $criteria): void |
44 | 47 | { |
45 | 48 | foreach ((array) $criteria as $key => $criterion) { |
@@ -114,7 +114,7 @@ |
||
114 | 114 | return null; |
115 | 115 | } |
116 | 116 | |
117 | - $payment = $this->payments->filter(function (PaymentInterface $payment) use ($state) { |
|
117 | + $payment = $this->payments->filter(function(PaymentInterface $payment) use ($state) { |
|
118 | 118 | return null === $state || $payment->getState() === $state; |
119 | 119 | })->last(); |
120 | 120 |