Completed
Push — next ( d88af1...6a4fb5 )
by Thomas
21s queued 12s
created
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
                 }
@@ -411,18 +411,18 @@  discard block
 block discarded – undo
411 411
             $inputData = $form->getData();
412 412
 
413 413
             if ($inputData['hidden_sender'] == 'textfield_cache_comment') {
414
-                $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string) $inputData['hidden_ID2']]);
414
+                $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string)$inputData['hidden_ID2']]);
415 415
                 $entity->comment = $inputData['content_comment_field'];
416 416
                 $this->supportListingCommentsRepository->update($entity);
417 417
             } elseif ($inputData['hidden_sender'] == 'textfield_user_comment') {
418
-                $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int) $inputData['hidden_ID1']]);
418
+                $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int)$inputData['hidden_ID1']]);
419 419
                 $entity->comment = $inputData['content_comment_field'];
420 420
                 $this->supportUserCommentsRepository->update($entity);
421 421
             }
422 422
 
423 423
             return $this->redirectToRoute('backend_support_occ', [
424
-                'userID' => (string) $inputData['hidden_ID1'],
425
-                'wpID' => (string) $inputData['hidden_ID2']
424
+                'userID' => (string)$inputData['hidden_ID1'],
425
+                'wpID' => (string)$inputData['hidden_ID2']
426 426
             ]);
427 427
         }
428 428
 
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
         if ($form->isSubmitted() && $form->isValid()) {
446 446
             $inputData = $form->getData();
447 447
 
448
-            $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int) $inputData['hidden_ID1']]);
448
+            $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int)$inputData['hidden_ID1']]);
449 449
             $entity->comment = $inputData['content_comment_field'];
450 450
 
451 451
             $this->cacheReportsRepository->update($entity);
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/UserRepository.php 1 patch
Spacing   +9 added lines, -9 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
     }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             ['user_id' => $entity->id]
173 173
         );
174 174
 
175
-        $entity->id = (int) $this->connection->lastInsertId();
175
+        $entity->id = (int)$this->connection->lastInsertId();
176 176
 
177 177
         return $entity;
178 178
     }
@@ -249,16 +249,16 @@  discard block
 block discarded – undo
249 249
     public function getEntityFromDatabaseArray(array $data): UserEntity
250 250
     {
251 251
         $entity = new UserEntity();
252
-        $entity->id = (int) $data['user_id'];
253
-        $entity->dateCreated = (string) $data['date_created'];
254
-        $entity->lastModified = (string) $data['last_modified'];
252
+        $entity->id = (int)$data['user_id'];
253
+        $entity->dateCreated = (string)$data['date_created'];
254
+        $entity->lastModified = (string)$data['last_modified'];
255 255
         $entity->username = $data['username'];
256 256
         $entity->password = $data['password'];
257 257
         $entity->email = $data['email'];
258
-        $entity->emailProblems = (bool) $data['email_problems'];
259
-        $entity->latitude = (double) $data['latitude'];
260
-        $entity->longitude = (double) $data['longitude'];
261
-        $entity->isActive = (bool) $data['is_active_flag'];
258
+        $entity->emailProblems = (bool)$data['email_problems'];
259
+        $entity->latitude = (double)$data['latitude'];
260
+        $entity->longitude = (double)$data['longitude'];
261
+        $entity->isActive = (bool)$data['is_active_flag'];
262 262
         $entity->firstname = $data['first_name'];
263 263
         $entity->lastname = $data['last_name'];
264 264
         $entity->country = $data['country'];
Please login to merge, or discard this patch.