Completed
Pull Request — development (#891)
by
unknown
42s
created
htdocs_symfony/src/Controller/Backend/RolesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
             $inputData = $form->getData();
152 152
             $userId = $inputData['content_user_searchfield'];
153 153
 
154
-            $fetchedUser = $this->userRepository->fetchOneById((int) $userId);
154
+            $fetchedUser = $this->userRepository->fetchOneById((int)$userId);
155 155
         }
156 156
 
157 157
         return $this->render(
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/UserRolesRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             $databaseArray
157 157
         );
158 158
 
159
-        $entity->id = (int) $this->connection->lastInsertId();
159
+        $entity->id = (int)$this->connection->lastInsertId();
160 160
 
161 161
         return $entity;
162 162
     }
@@ -272,9 +272,9 @@  discard block
 block discarded – undo
272 272
     public function getEntityFromDatabaseArray(array $data)
273 273
     : UserRolesEntity {
274 274
         $entity = new UserRolesEntity();
275
-        $entity->id = (int) $data['id'];
276
-        $entity->userId = (string) $data['user_id'];
277
-        $entity->roleId = (string) $data['role_id'];
275
+        $entity->id = (int)$data['id'];
276
+        $entity->userId = (string)$data['user_id'];
277
+        $entity->roleId = (string)$data['role_id'];
278 278
 
279 279
         return $entity;
280 280
     }
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
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
             $databaseArray
168 168
         );
169 169
 
170
-        $entity->cacheId = (int) $this->connection->lastInsertId();
170
+        $entity->cacheId = (int)$this->connection->lastInsertId();
171 171
 
172 172
         return $entity;
173 173
     }
@@ -246,11 +246,11 @@  discard block
 block discarded – undo
246 246
     public function getEntityFromDatabaseArray(array $data)
247 247
     : GeoCacheStatusModifiedEntity {
248 248
         $entity = new GeoCacheStatusModifiedEntity();
249
-        $entity->cacheId = (int) $data['cache_id'];
249
+        $entity->cacheId = (int)$data['cache_id'];
250 250
         $entity->dateModified = new DateTime($data['date_modified']);
251
-        $entity->oldState = (int) $data['old_state'];
252
-        $entity->newState = (int) $data['new_state'];
253
-        $entity->userId = (int) $data['user_id'];
251
+        $entity->oldState = (int)$data['old_state'];
252
+        $entity->newState = (int)$data['new_state'];
253
+        $entity->userId = (int)$data['user_id'];
254 254
         $entity->user = $this->userRepository->fetchOneById($entity->userId);
255 255
         $entity->cacheStatusOld = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->oldState]);
256 256
         $entity->cacheStatusNew = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->newState]);
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheStatusRepository.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $databaseArray
147 147
         );
148 148
 
149
-        $entity->id = (int) $this->connection->lastInsertId();
149
+        $entity->id = (int)$this->connection->lastInsertId();
150 150
 
151 151
         return $entity;
152 152
     }
@@ -226,14 +226,14 @@  discard block
 block discarded – undo
226 226
     public function getEntityFromDatabaseArray(array $data)
227 227
     : GeoCacheStatusEntity {
228 228
         $entity = new GeoCacheStatusEntity();
229
-        $entity->id = (int) $data['id'];
230
-        $entity->name = (string) $data['name'];
231
-        $entity->transId = (int) $data['trans_id'];
232
-        $entity->de = (string) $data['de'];
233
-        $entity->en = (string) $data['en'];
234
-        $entity->allowUserView = (int) $data['allow_user_view'];
235
-        $entity->allowOwnerEditStatus = (int) $data['allow_owner_edit_status'];
236
-        $entity->allowUserLog = (int) $data['allow_user_log'];
229
+        $entity->id = (int)$data['id'];
230
+        $entity->name = (string)$data['name'];
231
+        $entity->transId = (int)$data['trans_id'];
232
+        $entity->de = (string)$data['de'];
233
+        $entity->en = (string)$data['en'];
234
+        $entity->allowUserView = (int)$data['allow_user_view'];
235
+        $entity->allowOwnerEditStatus = (int)$data['allow_owner_edit_status'];
236
+        $entity->allowUserLog = (int)$data['allow_user_log'];
237 237
 
238 238
         return $entity;
239 239
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheLogsArchivedRepository.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             $databaseArray
156 156
         );
157 157
 
158
-        $entity->id = (int) $this->connection->lastInsertId();
158
+        $entity->id = (int)$this->connection->lastInsertId();
159 159
 
160 160
         return $entity;
161 161
     }
@@ -252,30 +252,30 @@  discard block
 block discarded – undo
252 252
     public function getEntityFromDatabaseArray(array $data)
253 253
     : GeoCacheLogsArchivedEntity {
254 254
         $entity = new GeoCacheLogsArchivedEntity();
255
-        $entity->id = (int) $data['id'];
256
-        $entity->uuid = (string) $data['uuid'];
257
-        $entity->node = (int) $data['node'];
255
+        $entity->id = (int)$data['id'];
256
+        $entity->uuid = (string)$data['uuid'];
257
+        $entity->node = (int)$data['node'];
258 258
         $entity->dateCreated = new DateTime($data['date_created']);
259 259
         $entity->entryLastModified = new DateTime($data['entry_last_modified']);
260 260
         $entity->lastModified = date('Y-m-d H:i:s');
261
-        $entity->okapiSyncbase = (string) $data['okapi_syncbase'];
261
+        $entity->okapiSyncbase = (string)$data['okapi_syncbase'];
262 262
         $entity->logLastModified = new DateTime($data['log_last_modified']);
263
-        $entity->cacheId = (int) $data['cache_id'];
264
-        $entity->userId = (int) $data['user_id'];
265
-        $entity->type = (int) $data['type'];
266
-        $entity->ocTeamComment = (int) $data['oc_team_comment'];
263
+        $entity->cacheId = (int)$data['cache_id'];
264
+        $entity->userId = (int)$data['user_id'];
265
+        $entity->type = (int)$data['type'];
266
+        $entity->ocTeamComment = (int)$data['oc_team_comment'];
267 267
         $entity->date = new DateTime($data['date']);
268 268
         $entity->orderDate = new DateTime($data['order_date']);
269
-        $entity->needsMaintenance = (int) $data['needs_maintenance'];
270
-        $entity->listingOutdated = (int) $data['listing_outdated'];
271
-        $entity->text = (string) $data['text'];
272
-        $entity->textHtml = (int) $data['text_html'];
273
-        $entity->textHtmledit = (int) $data['text_htmledit'];
274
-        $entity->ownerNotified = (int) $data['owner_notified'];
269
+        $entity->needsMaintenance = (int)$data['needs_maintenance'];
270
+        $entity->listingOutdated = (int)$data['listing_outdated'];
271
+        $entity->text = (string)$data['text'];
272
+        $entity->textHtml = (int)$data['text_html'];
273
+        $entity->textHtmledit = (int)$data['text_htmledit'];
274
+        $entity->ownerNotified = (int)$data['owner_notified'];
275 275
         $entity->picture = $data['picture'];
276 276
         $entity->deletionDate = new DateTime($data['deletion_date']);
277
-        $entity->deletedBy = (int) $data['deleted_by'];
278
-        $entity->restoredBy = (int) $data['restored_by'];
277
+        $entity->deletedBy = (int)$data['deleted_by'];
278
+        $entity->restoredBy = (int)$data['restored_by'];
279 279
 
280 280
         return $entity;
281 281
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheSizeRepository.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $databaseArray
147 147
         );
148 148
 
149
-        $entity->id = (int) $this->connection->lastInsertId();
149
+        $entity->id = (int)$this->connection->lastInsertId();
150 150
 
151 151
         return $entity;
152 152
     }
@@ -224,12 +224,12 @@  discard block
 block discarded – undo
224 224
     public function getEntityFromDatabaseArray(array $data)
225 225
     : GeoCacheSizeEntity {
226 226
         $entity = new GeoCacheSizeEntity();
227
-        $entity->id = (int) $data['id'];
228
-        $entity->name = (string) $data['name'];
229
-        $entity->transId = (int) $data['trans_id'];
230
-        $entity->ordinal = (int) $data['ordinal'];
231
-        $entity->de = (string) $data['de'];
232
-        $entity->en = (string) $data['en'];
227
+        $entity->id = (int)$data['id'];
228
+        $entity->name = (string)$data['name'];
229
+        $entity->transId = (int)$data['trans_id'];
230
+        $entity->ordinal = (int)$data['ordinal'];
231
+        $entity->de = (string)$data['de'];
232
+        $entity->en = (string)$data['en'];
233 233
 
234 234
         return $entity;
235 235
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/SecurityRoleHierarchyRepository.php 1 patch
Spacing   +3 added lines, -3 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->roleId = (int) $this->connection->lastInsertId();
148
+        $entity->roleId = (int)$this->connection->lastInsertId();
149 149
 
150 150
         return $entity;
151 151
     }
@@ -218,8 +218,8 @@  discard block
 block discarded – undo
218 218
     public function getEntityFromDatabaseArray(array $data)
219 219
     : SecurityRoleHierarchyEntity {
220 220
         $entity = new SecurityRoleHierarchyEntity();
221
-        $entity->roleId = (int) $data['role_id'];
222
-        $entity->subRoleId = (int) $data['sub_role_id'];
221
+        $entity->roleId = (int)$data['role_id'];
222
+        $entity->subRoleId = (int)$data['sub_role_id'];
223 223
 
224 224
         return $entity;
225 225
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheTypeRepository.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $databaseArray
147 147
         );
148 148
 
149
-        $entity->id = (int) $this->connection->lastInsertId();
149
+        $entity->id = (int)$this->connection->lastInsertId();
150 150
 
151 151
         return $entity;
152 152
     }
@@ -229,17 +229,17 @@  discard block
 block discarded – undo
229 229
     public function getEntityFromDatabaseArray(array $data)
230 230
     : GeoCacheTypeEntity {
231 231
         $entity = new GeoCacheTypeEntity();
232
-        $entity->id = (int) $data['id'];
233
-        $entity->name = (string) $data['name'];
234
-        $entity->transId = (int) $data['trans_id'];
235
-        $entity->ordinal = (int) $data['ordinal'];
236
-        $entity->short = (string) $data['short'];
237
-        $entity->de = (string) $data['de'];
238
-        $entity->en = (string) $data['en'];
239
-        $entity->iconLarge = (string) $data['icon_large'];
240
-        $entity->short2 = (string) $data['short2'];
241
-        $entity->short2TransId = (int) $data['short2_trans_id'];
242
-        $entity->kmlName = (string) $data['kml_name'];
232
+        $entity->id = (int)$data['id'];
233
+        $entity->name = (string)$data['name'];
234
+        $entity->transId = (int)$data['trans_id'];
235
+        $entity->ordinal = (int)$data['ordinal'];
236
+        $entity->short = (string)$data['short'];
237
+        $entity->de = (string)$data['de'];
238
+        $entity->en = (string)$data['en'];
239
+        $entity->iconLarge = (string)$data['icon_large'];
240
+        $entity->short2 = (string)$data['short2'];
241
+        $entity->short2TransId = (int)$data['short2_trans_id'];
242
+        $entity->kmlName = (string)$data['kml_name'];
243 243
 
244 244
         return $entity;
245 245
     }
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
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             $databaseArray
159 159
         );
160 160
 
161
-        $entity->id = (int) $this->connection->lastInsertId();
161
+        $entity->id = (int)$this->connection->lastInsertId();
162 162
 
163 163
         return $entity;
164 164
     }
@@ -249,22 +249,22 @@  discard block
 block discarded – undo
249 249
     public function getEntityFromDatabaseArray(array $data)
250 250
     : SupportListingInfosEntity {
251 251
         $entity = new SupportListingInfosEntity();
252
-        $entity->id = ((int) $data['id']) ?? null;
253
-        $entity->wpOc = (string) $data['wp_oc'];
254
-        $entity->nodeId = (int) $data['node_id'];
255
-        $entity->nodeOwnerId = (string) $data['node_owner_id'];
256
-        $entity->nodeListingId = (string) $data['node_listing_id'];
257
-        $entity->nodeListingWp = (string) $data['node_listing_wp'];
258
-        $entity->nodeListingName = (string) $data['node_listing_name'];
259
-        $entity->nodeListingSize = (int) $data['node_listing_size'];
260
-        $entity->nodeListingDifficulty = (int) $data['node_listing_difficulty'];
261
-        $entity->nodeListingTerrain = (int) $data['node_listing_terrain'];
262
-        $entity->nodeListingCoordinatesLon = (double) $data['node_listing_coordinates_lon'];
263
-        $entity->nodeListingCoordinatesLat = (double) $data['node_listing_coordinates_lat'];
264
-        $entity->nodeListingAvailable = (bool) $data['node_listing_available'];
265
-        $entity->nodeListingArchived = (bool) $data['node_listing_archived'];
252
+        $entity->id = ((int)$data['id']) ?? null;
253
+        $entity->wpOc = (string)$data['wp_oc'];
254
+        $entity->nodeId = (int)$data['node_id'];
255
+        $entity->nodeOwnerId = (string)$data['node_owner_id'];
256
+        $entity->nodeListingId = (string)$data['node_listing_id'];
257
+        $entity->nodeListingWp = (string)$data['node_listing_wp'];
258
+        $entity->nodeListingName = (string)$data['node_listing_name'];
259
+        $entity->nodeListingSize = (int)$data['node_listing_size'];
260
+        $entity->nodeListingDifficulty = (int)$data['node_listing_difficulty'];
261
+        $entity->nodeListingTerrain = (int)$data['node_listing_terrain'];
262
+        $entity->nodeListingCoordinatesLon = (double)$data['node_listing_coordinates_lon'];
263
+        $entity->nodeListingCoordinatesLat = (double)$data['node_listing_coordinates_lat'];
264
+        $entity->nodeListingAvailable = (bool)$data['node_listing_available'];
265
+        $entity->nodeListingArchived = (bool)$data['node_listing_archived'];
266 266
         $entity->lastModified = date('Y-m-d H:i:s');
267
-        $entity->importStatus = (int) $data['importstatus'];
267
+        $entity->importStatus = (int)$data['importstatus'];
268 268
         $entity->node = $this->nodesRepository->fetchOneBy(['id' => $entity->nodeId]);
269 269
 
270 270
         return $entity;
Please login to merge, or discard this patch.