Completed
Push — development ( 59cb16...c9645b )
by Thomas
30s queued 12s
created
htdocs_symfony/src/Controller/Backend/SupportController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     /**
74 74
      * @param string $repID
75 75
      *
76
-     * @return array
76
+     * @return Response
77 77
      * @Route("/repCaches/{repID}", name="support_reported_cache")
78 78
      */
79 79
     public function search_by_report_id(string $repID)
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheReportsRepository.php 3 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             $databaseArray
175 175
         );
176 176
 
177
-        $entity->id = (int) $this->connection->lastInsertId();
177
+        $entity->id = (int)$this->connection->lastInsertId();
178 178
 
179 179
         return $entity;
180 180
     }
@@ -258,16 +258,16 @@  discard block
 block discarded – undo
258 258
     public function getEntityFromDatabaseArray(array $data)
259 259
     {
260 260
         $entity = new GeoCacheReportsEntity();
261
-        $entity->id = (int) $data['id'];
261
+        $entity->id = (int)$data['id'];
262 262
         $entity->dateCreated = new DateTime($data['date_created']);
263
-        $entity->cacheid = (int) $data['cacheid'];
264
-        $entity->userid = (int) $data['userid'];
265
-        $entity->reason = (int) $data['reason'];
266
-        $entity->note = (string) $data['note'];
267
-        $entity->status = (int) $data['status'];
268
-        $entity->adminid = (int) $data['adminid'];
269
-        $entity->lastmodified = (string) $data['lastmodified'];
270
-        $entity->comment = (string) $data['comment'];
263
+        $entity->cacheid = (int)$data['cacheid'];
264
+        $entity->userid = (int)$data['userid'];
265
+        $entity->reason = (int)$data['reason'];
266
+        $entity->note = (string)$data['note'];
267
+        $entity->status = (int)$data['status'];
268
+        $entity->adminid = (int)$data['adminid'];
269
+        $entity->lastmodified = (string)$data['lastmodified'];
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 273
         if ($entity->adminid) $entity->admin = $this->userRepository->fetchOneById($entity->adminid);
Please login to merge, or discard this 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/CacheReportStatusRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             $databaseArray
122 122
         );
123 123
 
124
-        $entity->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
     public function getEntityFromDatabaseArray(array $data)
188 188
     {
189 189
         $entity = new GeoCacheReportStatusEntity();
190
-        $entity->id = (int) $data['id'];
191
-        $entity->name = (string) $data['name'];
192
-        $entity->transId = (int) $data['trans_id'];
190
+        $entity->id = (int)$data['id'];
191
+        $entity->name = (string)$data['name'];
192
+        $entity->transId = (int)$data['trans_id'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheStatusModifiedRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             $databaseArray
154 154
         );
155 155
 
156
-        $entity->cacheId = (int) $this->connection->lastInsertId();
156
+        $entity->cacheId = (int)$this->connection->lastInsertId();
157 157
 
158 158
         return $entity;
159 159
     }
@@ -230,11 +230,11 @@  discard block
 block discarded – undo
230 230
     public function getEntityFromDatabaseArray(array $data)
231 231
     {
232 232
         $entity = new GeoCacheStatusModifiedEntity();
233
-        $entity->cacheId = (int) $data['cache_id'];
233
+        $entity->cacheId = (int)$data['cache_id'];
234 234
         $entity->dateModified = new DateTime($data['date_modified']);
235
-        $entity->oldState = (int) $data['old_state'];
236
-        $entity->newState = (int) $data['new_state'];
237
-        $entity->userId = (int) $data['user_id'];
235
+        $entity->oldState = (int)$data['old_state'];
236
+        $entity->newState = (int)$data['new_state'];
237
+        $entity->userId = (int)$data['user_id'];
238 238
         $entity->user = $this->userRepository->fetchOneById($entity->userId);
239 239
         $entity->statusOld = $this->cacheReportStatusRepository->fetchOneBy(['id' => $entity->oldState]);
240 240
         $entity->statusNew = $this->cacheReportStatusRepository->fetchOneBy(['id' => $entity->newState]);
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheReportReasonsRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             $databaseArray
122 122
         );
123 123
 
124
-        $entity->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
     public function getEntityFromDatabaseArray(array $data)
189 189
     {
190 190
         $entity = new GeoCacheReportReasonsEntity();
191
-        $entity->id = (int) $data['id'];
192
-        $entity->name = (string) $data['name'];
193
-        $entity->transId = (int) $data['trans_id'];
194
-        $entity->order = (int) $data['order'];
191
+        $entity->id = (int)$data['id'];
192
+        $entity->name = (string)$data['name'];
193
+        $entity->transId = (int)$data['trans_id'];
194
+        $entity->order = (int)$data['order'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.