| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function __invoke(RecogniseImage $recogniseImage): void |
||
| 34 | { |
||
| 35 | $this->logger->debug('RecogniseImageHandler invoked'); |
||
| 36 | $image = $this->imageRepository->find($recogniseImage->getImageId()); |
||
| 37 | $this->logger->debug("RecogniseImageHandler found image with id " . $image->getId()); |
||
| 38 | if ($image !== null) { |
||
| 39 | $this->logger->debug("RecogniseImageHandler calling image tagger"); |
||
| 40 | $this->imageTaggingService->tagImage($image, $recogniseImage->getOverwrite()); |
||
| 41 | } |
||
| 43 | } |