| Conditions | 4 |
| Paths | 5 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 28 | public function prePersist($entity) |
||
| 29 | { |
||
| 30 | if ($this->user) { |
||
| 31 | if ($entity->getCreatedBy() === null) { |
||
| 32 | $entity->setCreatedAt(new \DateTime()); |
||
| 33 | $entity->setCreatedBy($this->user); |
||
| 34 | } |
||
| 35 | if ($entity->getUpdatedBy() === null) { |
||
| 36 | $entity->setUpdatedAt(new \DateTime()); |
||
| 37 | $entity->setUpdatedBy($this->user); |
||
| 38 | } |
||
| 50 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.