Completed
Push — development ( 236eef...a332b5 )
by Thomas
01:06 queued 11s
created
htdocs_symfony/src/Repository/SupportUserCommentsRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             $databaseArray
146 146
         );
147 147
 
148
-        $entity->id = (int) $this->connection->lastInsertId();
148
+        $entity->id = (int)$this->connection->lastInsertId();
149 149
 
150 150
         return $entity;
151 151
     }
@@ -223,12 +223,12 @@  discard block
 block discarded – undo
223 223
     public function getEntityFromDatabaseArray(array $data)
224 224
     : SupportUserCommentsEntity {
225 225
         $entity = new SupportUserCommentsEntity(0);
226
-        $entity->id = (int) $data['id'];
227
-        $entity->ocUserId = (int) $data['oc_user_id'];
226
+        $entity->id = (int)$data['id'];
227
+        $entity->ocUserId = (int)$data['oc_user_id'];
228 228
         $entity->user = $this->userRepository->fetchOneById($entity->ocUserId);
229
-        $entity->comment = (string) $data['comment'];
230
-        $entity->commentCreated = (string) $data['comment_created'];
231
-        $entity->commentLastModified = (string) $data['comment_last_modified'];
229
+        $entity->comment = (string)$data['comment'];
230
+        $entity->commentCreated = (string)$data['comment_created'];
231
+        $entity->commentLastModified = (string)$data['comment_last_modified'];
232 232
 
233 233
         return $entity;
234 234
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/SupportListingInfosRepository.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             $databaseArray
150 150
         );
151 151
 
152
-        $entity->id = (int) $this->connection->lastInsertId();
152
+        $entity->id = (int)$this->connection->lastInsertId();
153 153
 
154 154
         return $entity;
155 155
     }
@@ -237,21 +237,21 @@  discard block
 block discarded – undo
237 237
     public function getEntityFromDatabaseArray(array $data)
238 238
     : SupportListingInfosEntity {
239 239
         $entity = new SupportListingInfosEntity();
240
-        $entity->id = (int) $data['id'];
241
-        $entity->wpOc = (string) $data['wp_oc'];
242
-        $entity->nodeId = (int) $data['node_id'];
243
-        $entity->nodeOwnerId = (string) $data['node_owner_id'];
244
-        $entity->nodeListingId = (string) $data['node_listing_id'];
245
-        $entity->nodeListingWP = (string) $data['node_listing_wp'];
246
-        $entity->nodeListingName = (string) $data['node_listing_name'];
247
-        $entity->nodeListingSize = (int) $data['node_listing_size'];
248
-        $entity->nodeListingDifficulty = (int) $data['node_listing_difficulty'];
249
-        $entity->nodeListingTerrain = (int) $data['node_listing_terrain'];
250
-        $entity->nodeListingCoordinatesLon = (double) $data['node_listing_coordinates_lon'];
251
-        $entity->nodeListingCoordinatesLat = (double) $data['node_listing_coordinates_lat'];
252
-        $entity->nodeListingArchived = (bool) $data['node_listing_archived'];
240
+        $entity->id = (int)$data['id'];
241
+        $entity->wpOc = (string)$data['wp_oc'];
242
+        $entity->nodeId = (int)$data['node_id'];
243
+        $entity->nodeOwnerId = (string)$data['node_owner_id'];
244
+        $entity->nodeListingId = (string)$data['node_listing_id'];
245
+        $entity->nodeListingWP = (string)$data['node_listing_wp'];
246
+        $entity->nodeListingName = (string)$data['node_listing_name'];
247
+        $entity->nodeListingSize = (int)$data['node_listing_size'];
248
+        $entity->nodeListingDifficulty = (int)$data['node_listing_difficulty'];
249
+        $entity->nodeListingTerrain = (int)$data['node_listing_terrain'];
250
+        $entity->nodeListingCoordinatesLon = (double)$data['node_listing_coordinates_lon'];
251
+        $entity->nodeListingCoordinatesLat = (double)$data['node_listing_coordinates_lat'];
252
+        $entity->nodeListingArchived = (bool)$data['node_listing_archived'];
253 253
         $entity->lastModified = new DateTime($data['last_modified']);
254
-        $entity->importStatus = (int) $data['importstatus'];
254
+        $entity->importStatus = (int)$data['importstatus'];
255 255
         $entity->node = $this->nodesRepository->fetchOneBy(['id' => $entity->nodeId]);
256 256
 
257 257
         return $entity;
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/SupportUserRelationsRepository.php 1 patch
Spacing   +6 added lines, -6 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->id = (int) $this->connection->lastInsertId();
156
+        $entity->id = (int)$this->connection->lastInsertId();
157 157
 
158 158
         return $entity;
159 159
     }
@@ -231,11 +231,11 @@  discard block
 block discarded – undo
231 231
     public function getEntityFromDatabaseArray(array $data)
232 232
     : SupportUserRelationsEntity {
233 233
         $entity = new SupportUserRelationsEntity();
234
-        $entity->id = (int) $data['id'];
235
-        $entity->ocUserId = (int) $data['oc_user_id'];
236
-        $entity->nodeId = (int) $data['node_id'];
237
-        $entity->nodeUserId = (string) $data['node_user_id'];
238
-        $entity->nodeUsername = (string) $data['node_username'];
234
+        $entity->id = (int)$data['id'];
235
+        $entity->ocUserId = (int)$data['oc_user_id'];
236
+        $entity->nodeId = (int)$data['node_id'];
237
+        $entity->nodeUserId = (string)$data['node_user_id'];
238
+        $entity->nodeUsername = (string)$data['node_username'];
239 239
         $entity->node = $this->nodesRepository->fetchOneBy(['id' => $entity->nodeId]);
240 240
         $entity->user = $this->userRepository->fetchOneById($entity->ocUserId);
241 241
 
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/SupportListingCommentsRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             $databaseArray
142 142
         );
143 143
 
144
-        $entity->id = (int) $this->connection->lastInsertId();
144
+        $entity->id = (int)$this->connection->lastInsertId();
145 145
 
146 146
         return $entity;
147 147
     }
@@ -219,11 +219,11 @@  discard block
 block discarded – undo
219 219
     public function getEntityFromDatabaseArray(array $data)
220 220
     : SupportListingCommentsEntity {
221 221
         $entity = new SupportListingCommentsEntity('');
222
-        $entity->id = (int) $data['id'];
223
-        $entity->wpOc = (string) $data['wp_oc'];
224
-        $entity->comment = (string) $data['comment'];
225
-        $entity->commentCreated = (string) $data['comment_created'];
226
-        $entity->commentLastModified = (string) $data['comment_last_modified'];
222
+        $entity->id = (int)$data['id'];
223
+        $entity->wpOc = (string)$data['wp_oc'];
224
+        $entity->comment = (string)$data['comment'];
225
+        $entity->commentCreated = (string)$data['comment_created'];
226
+        $entity->commentLastModified = (string)$data['comment_last_modified'];
227 227
 
228 228
         return $entity;
229 229
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/NodesRepository.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 NodesEntity();
191
-        $entity->id = (int) $data['id'];
192
-        $entity->name = (string) $data['name'];
193
-        $entity->url = (string) $data['url'];
194
-        $entity->waypointPrefix = (string) $data['waypoint_prefix'];
191
+        $entity->id = (int)$data['id'];
192
+        $entity->name = (string)$data['name'];
193
+        $entity->url = (string)$data['url'];
194
+        $entity->waypointPrefix = (string)$data['waypoint_prefix'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Controller/Backend/SupportController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             $fetchedInformation = $this->executeSQL_flexible($inputData['content_WHAT'], $inputData['content_TABLE']);
236 236
 
237 237
             $countFetched = count($fetchedInformation);
238
-            for ($i = 0; $i < $countFetched; $i ++) {
238
+            for ($i = 0; $i < $countFetched; $i++) {
239 239
                 if (array_key_exists('password', $fetchedInformation[$i])) {
240 240
                     $fetchedInformation[$i]['password'] = '-';
241 241
                 }
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         if ($form->isSubmitted() && $form->isValid()) {
304 304
             $inputData = $form->getData();
305 305
 
306
-            $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int) $inputData['hidden_ID1']]);
306
+            $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int)$inputData['hidden_ID1']]);
307 307
             $entity->comment = $inputData['content_comment_field'];
308 308
 
309 309
             $this->cacheReportsRepository->update($entity);
@@ -331,18 +331,18 @@  discard block
 block discarded – undo
331 331
             $inputData = $form->getData();
332 332
 
333 333
             if ($inputData['hidden_sender'] == 'textfield_cache_comment') {
334
-                $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string) $inputData['hidden_ID2']]);
334
+                $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string)$inputData['hidden_ID2']]);
335 335
                 $entity->comment = $inputData['content_comment_field'];
336 336
                 $this->supportListingCommentsRepository->update($entity);
337 337
             } elseif ($inputData['hidden_sender'] == 'textfield_user_comment') {
338
-                $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int) $inputData['hidden_ID1']]);
338
+                $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int)$inputData['hidden_ID1']]);
339 339
                 $entity->comment = $inputData['content_comment_field'];
340 340
                 $this->supportUserCommentsRepository->update($entity);
341 341
             }
342 342
 
343 343
             return $this->redirectToRoute('backend_support_occ', [
344
-                'userID' => (string) $inputData['hidden_ID1'],
345
-                'wpID' => (string) $inputData['hidden_ID2']
344
+                'userID' => (string)$inputData['hidden_ID1'],
345
+                'wpID' => (string)$inputData['hidden_ID2']
346 346
             ]);
347 347
         }
348 348
 
Please login to merge, or discard this patch.