Completed
Push — development ( c75413...9871ce )
by Thomas
01:19 queued 12s
created
htdocs_symfony/src/Repository/NodesRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             $databaseArray
145 145
         );
146 146
 
147
-        $entity->id = (int) $this->connection->lastInsertId();
147
+        $entity->id = (int)$this->connection->lastInsertId();
148 148
 
149 149
         return $entity;
150 150
     }
@@ -220,10 +220,10 @@  discard block
 block discarded – undo
220 220
     public function getEntityFromDatabaseArray(array $data) : NodesEntity
221 221
     {
222 222
         $entity = new NodesEntity();
223
-        $entity->id = (int) $data['id'];
224
-        $entity->name = (string) $data['name'];
225
-        $entity->url = (string) $data['url'];
226
-        $entity->waypointPrefix = (string) $data['waypoint_prefix'];
223
+        $entity->id = (int)$data['id'];
224
+        $entity->name = (string)$data['name'];
225
+        $entity->url = (string)$data['url'];
226
+        $entity->waypointPrefix = (string)$data['waypoint_prefix'];
227 227
 
228 228
         return $entity;
229 229
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/SupportListingInfosRepository.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             $databaseArray
153 153
         );
154 154
 
155
-        $entity->id = (int) $this->connection->lastInsertId();
155
+        $entity->id = (int)$this->connection->lastInsertId();
156 156
 
157 157
         return $entity;
158 158
     }
@@ -241,22 +241,22 @@  discard block
 block discarded – undo
241 241
     public function getEntityFromDatabaseArray(array $data)
242 242
     : SupportListingInfosEntity {
243 243
         $entity = new SupportListingInfosEntity();
244
-        $entity->id = ((int) $data['id']) ?? NULL;
245
-        $entity->wpOc = (string) $data['wp_oc'];
246
-        $entity->nodeId = (int) $data['node_id'];
247
-        $entity->nodeOwnerId = (string) $data['node_owner_id'];
248
-        $entity->nodeListingId = (string) $data['node_listing_id'];
249
-        $entity->nodeListingWp = (string) $data['node_listing_wp'];
250
-        $entity->nodeListingName = (string) $data['node_listing_name'];
251
-        $entity->nodeListingSize = (int) $data['node_listing_size'];
252
-        $entity->nodeListingDifficulty = (int) $data['node_listing_difficulty'];
253
-        $entity->nodeListingTerrain = (int) $data['node_listing_terrain'];
254
-        $entity->nodeListingCoordinatesLon = (double) $data['node_listing_coordinates_lon'];
255
-        $entity->nodeListingCoordinatesLat = (double) $data['node_listing_coordinates_lat'];
256
-        $entity->nodeListingAvailable = (bool) $data['node_listing_available'];
257
-        $entity->nodeListingArchived = (bool) $data['node_listing_archived'];
244
+        $entity->id = ((int)$data['id']) ?? NULL;
245
+        $entity->wpOc = (string)$data['wp_oc'];
246
+        $entity->nodeId = (int)$data['node_id'];
247
+        $entity->nodeOwnerId = (string)$data['node_owner_id'];
248
+        $entity->nodeListingId = (string)$data['node_listing_id'];
249
+        $entity->nodeListingWp = (string)$data['node_listing_wp'];
250
+        $entity->nodeListingName = (string)$data['node_listing_name'];
251
+        $entity->nodeListingSize = (int)$data['node_listing_size'];
252
+        $entity->nodeListingDifficulty = (int)$data['node_listing_difficulty'];
253
+        $entity->nodeListingTerrain = (int)$data['node_listing_terrain'];
254
+        $entity->nodeListingCoordinatesLon = (double)$data['node_listing_coordinates_lon'];
255
+        $entity->nodeListingCoordinatesLat = (double)$data['node_listing_coordinates_lat'];
256
+        $entity->nodeListingAvailable = (bool)$data['node_listing_available'];
257
+        $entity->nodeListingArchived = (bool)$data['node_listing_archived'];
258 258
         $entity->lastModified = date('Y-m-d H:i:s');
259
-        $entity->importStatus = (int) $data['importstatus'];
259
+        $entity->importStatus = (int)$data['importstatus'];
260 260
         $entity->node = $this->nodesRepository->fetchOneBy(['id' => $entity->nodeId]);
261 261
 
262 262
         return $entity;
Please login to merge, or discard this patch.