| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 5 | public function preUpdate(PreUpdateEventArgs $args) |
|
| 36 | { |
||
| 37 | 5 | $object = $args->getObject(); |
|
| 38 | |||
| 39 | 5 | if ($object instanceof Image) { |
|
| 40 | if ($object->getFile()) { |
||
|
|
|||
| 41 | if ($object->getOldS3key()) { |
||
| 42 | $this->s3->removeImage($object->getOldS3key()); |
||
| 43 | } |
||
| 44 | $this->s3->upload($object); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | 5 | } |
|
| 48 | |||
| 73 |
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.