@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use DateTime; |
| 6 | 6 | use Doctrine\DBAL\Connection; |
| 7 | -Use Oc\Entity\GeoCacheReportsEntity; |
|
| 7 | +use Oc\Entity\GeoCacheReportsEntity; |
|
| 8 | 8 | use Oc\Repository\Exception\RecordAlreadyExistsException; |
| 9 | 9 | use Oc\Repository\Exception\RecordNotFoundException; |
| 10 | 10 | use Oc\Repository\Exception\RecordNotPersistedException; |
@@ -270,7 +270,9 @@ |
||
| 270 | 270 | $entity->comment = (string) $data['comment']; |
| 271 | 271 | $entity->cache = $this->cachesRepository->fetchOneBy(['cache_id' => $entity->cacheid]); |
| 272 | 272 | $entity->user = $this->userRepository->fetchOneById($entity->userid); |
| 273 | - if ($entity->adminid) $entity->admin = $this->userRepository->fetchOneById($entity->adminid); |
|
| 273 | + if ($entity->adminid) { |
|
| 274 | + $entity->admin = $this->userRepository->fetchOneById($entity->adminid); |
|
| 275 | + } |
|
| 274 | 276 | $entity->reportReason = $this->cacheReportReasonsRepository->fetchOneBy(['id' => $entity->reason]); |
| 275 | 277 | $entity->reportStatus = $this->cacheReportStatusRepository->fetchOneBy(['id' => $entity->status]); |
| 276 | 278 | |