Completed
Pull Request — development (#840)
by
unknown
01:00
created
htdocs_symfony/src/Repository/CacheReportsRepository.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -270,7 +270,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheCoordinatesRepository.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,9 @@
 block discarded – undo
230 230
         $entity->longitude = $data['longitude'];
231 231
         $entity->latitude = $data['latitude'];
232 232
         $entity->restoredBy = (int) $data['restored_by'];
233
-        if ($entity->restoredBy != 0) $entity->user = $this->userRepository->fetchOneById($entity->restoredBy);
233
+        if ($entity->restoredBy != 0) {
234
+            $entity->user = $this->userRepository->fetchOneById($entity->restoredBy);
235
+        }
234 236
 
235 237
         return $entity;
236 238
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Controller/Backend/SupportController.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -860,7 +860,9 @@
 block discarded – undo
860 860
             if ((($fetchedListingInfo->nodeListingAvailable == true) && ($fetchedOCCache->status != 1)) ||
861 861
                 (($fetchedListingInfo->nodeListingAvailable == false) && ($fetchedOCCache->status == 1))) {
862 862
                 array_push($tempArray, 'OC status != import status');
863
-            } else array_push($tempArray, '');
863
+            } else {
864
+                array_push($tempArray, '');
865
+            }
864 866
 
865 867
             if ((($fetchedListingInfo->nodeListingArchived == true) && ($fetchedOCCache->status != 3)) ||
866 868
                 (($fetchedListingInfo->nodeListingAvailable == false) && ($fetchedOCCache->status == 3))) {
Please login to merge, or discard this patch.