Run `php-cs-fixer`
authorCyperghost <olaf_schmitz_1@t-online.de>
Tue, 22 Oct 2024 07:05:26 +0000 (09:05 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Tue, 22 Oct 2024 07:05:26 +0000 (09:05 +0200)
wcfsetup/install/files/lib/data/DatabaseObject.class.php
wcfsetup/install/files/lib/system/database/Database.class.php
wcfsetup/install/files/lib/system/event/listener/AbstractUserMergeListener.class.php

index b7d7c6e3ec83d3ea0d6bbf7681ae017b00a7476e..705d71d8fe7b7d7aab12b8eb46358b38dae23abf 100644 (file)
@@ -141,16 +141,16 @@ abstract class DatabaseObject implements IIDObject, IStorableObject
         static $databaseTableNames = [];
         if (!isset($databaseTableNames[$className])) {
             $databaseTableNames[$className] = $classParts[0] . '1_' . \strtolower(
-                    \implode(
-                        '_',
-                        \preg_split(
-                            '~(?=[A-Z](?=[a-z]))~',
-                            \array_pop($classParts),
-                            -1,
-                            \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY
-                        )
+                \implode(
+                    '_',
+                    \preg_split(
+                        '~(?=[A-Z](?=[a-z]))~',
+                        \array_pop($classParts),
+                        -1,
+                        \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY
                     )
-                );
+                )
+            );
         }
 
         return $databaseTableNames[$className];
index 49d3c607e5fcd7e35d5eb3e02980df8663699b6d..3e5de41bf828c1831830a54f269a2c7eb5a538d1 100644 (file)
@@ -334,7 +334,6 @@ abstract class Database
         }
     }
 
-
     /**
      * Prepares a statement for execution and returns a statement object.
      *
index d44d2208a7df1ee30c8c262122e24faaae510f96..93aa8484425f7bdcd241ada81a67cc72dac91490 100644 (file)
@@ -60,7 +60,7 @@ abstract class AbstractUserMergeListener implements IParameterizedEventListener
 
             $sql = "UPDATE" . (!empty($databaseTable['ignore']) ? " IGNORE" : "") . " " . \str_replace(
                 '{WCF_N}',
-                    1,
+                1,
                 $databaseTable['name']
             ) . "
                     SET " . $databaseTable['userID'] . " = ?