Conditions | 5 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | private function checkTicketStatusUpdate(UnitOfWork $uow) |
||
40 | { |
||
41 | if (!$uow->getScheduledEntityUpdates()) { |
||
42 | return false; |
||
43 | } |
||
44 | |||
45 | foreach ($uow->getScheduledEntityUpdates() as $entity) { |
||
46 | if (!$entity instanceof Ticket && !key_exists('status', $uow->getEntityChangeSet($entity))) { |
||
47 | return false; |
||
48 | } |
||
49 | return $entity; |
||
50 | } |
||
51 | } |
||
52 | } |
||
53 |