Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public static function onPostHandleRequestWithCollection(Collection $oldCollection, Collection $newCollection, ObjectManager $manager) { |
||
35 | foreach ($oldCollection as $current) { |
||
36 | if (true === $newCollection->contains($current)) { |
||
37 | continue; |
||
38 | } |
||
39 | $manager->remove($current); |
||
40 | } |
||
41 | } |
||
42 | |||
58 |