| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 40 | 5 | public function postRemove(LifecycleEventArgs $args) |
|
| 41 | { |
||
| 42 | 5 | $entity = $args->getEntity(); |
|
| 43 | 5 | if ($entity instanceof EntityInterface) { |
|
| 44 | 4 | if ($entity->getFilename()) { |
|
| 45 | 2 | $this->fs->remove($this->root.$entity->getDownloadPath().'/'.$entity->getFilename()); |
|
| 46 | } |
||
| 47 | 4 | $this->removeOldFiles($entity); |
|
| 48 | } |
||
| 49 | 5 | } |
|
| 50 | |||
| 73 |