|
@@ -15,7 +15,7 @@ discard block |
|
|
block discarded – undo |
|
15
|
15
|
$outcomes = new ArrayCollection(); |
|
16
|
16
|
|
|
17
|
17
|
/** @var Activity $activity */ |
|
18
|
|
- foreach($activities as $activity) { |
|
|
18
|
+ foreach ($activities as $activity) { |
|
19
|
19
|
if (false === $outcomes->contains($activity->getLearningOutcome())) { |
|
20
|
20
|
$outcomes->add($activity->getLearningOutcome()); |
|
21
|
21
|
} |
|
@@ -30,7 +30,7 @@ discard block |
|
|
block discarded – undo |
|
30
|
30
|
$learningOutcomes = $this->getFromAgreement($agreement); |
|
31
|
31
|
$result = []; |
|
32
|
32
|
|
|
33
|
|
- foreach($learningOutcomes as $learningOutcome) { |
|
|
33
|
+ foreach ($learningOutcomes as $learningOutcome) { |
|
34
|
34
|
$item = []; |
|
35
|
35
|
$item['learning_outcome'] = $learningOutcome; |
|
36
|
36
|
$item['activities'] = $this->getEntityManager()->getRepository('AppBundle:Activity')->getFromAgreementAndLearningOutcome($agreement, $learningOutcome); |
Please login to merge, or discard this patch.