44 * The SQLite driver uses PDO. Enable PDO function calls:
55 * phpcs:disable WordPress.DB.RestrictedClasses.mysql__PDO
66 *
7+ * PDO uses camel case naming, enable non-snake case:
8+ * phpcs:disable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
9+ *
10+ * PDO uses $string as a parameter name, enable it:
11+ * phpcs:disable Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound
12+ *
713 * We conditionally define a trait for PHP-version-specific PDO methods:
814 * phpcs:disable Generic.Files.OneObjectStructurePerFile.MultipleFound
915 */
@@ -1130,7 +1136,6 @@ public function exec( $query ) {
11301136 * @return string|false The last insert ID, or false on failure.
11311137 */
11321138 #[ReturnTypeWillChange]
1133- // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
11341139 public function lastInsertId ( $ name = null ) {
11351140 return $ this ->last_insert_id ;
11361141 }
@@ -1140,7 +1145,6 @@ public function lastInsertId( $name = null ) {
11401145 *
11411146 * @return string|null The SQLSTATE error code, or null when unavailable.
11421147 */
1143- // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
11441148 public function errorCode (): ?string {
11451149 return $ this ->error_code ;
11461150 }
@@ -1150,7 +1154,6 @@ public function errorCode(): ?string {
11501154 *
11511155 * @return array Error information from the last PDO operation.
11521156 */
1153- // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
11541157 public function errorInfo (): array {
11551158 return $ this ->error_info ;
11561159 }
@@ -1163,7 +1166,6 @@ public function errorInfo(): array {
11631166 * @return string The quoted string.
11641167 */
11651168 #[ReturnTypeWillChange]
1166- // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound
11671169 public function quote ( $ string , $ type = PDO ::PARAM_STR ) {
11681170 // Mirror PDO\MySQL::quote() value validation.
11691171 if (
@@ -1229,7 +1231,6 @@ public function quote( $string, $type = PDO::PARAM_STR ) {
12291231 *
12301232 * @return bool True on success, false on failure.
12311233 */
1232- // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
12331234 public function beginTransaction (): bool {
12341235 if ( $ this ->inTransaction () ) {
12351236 throw $ this ->new_driver_exception ( 'There is already an active transaction ' );
@@ -1256,7 +1257,6 @@ public function commit(): bool {
12561257 *
12571258 * @return bool True on success, false on failure.
12581259 */
1259- // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
12601260 public function rollBack (): bool {
12611261 if ( ! $ this ->inTransaction () ) {
12621262 throw $ this ->new_driver_exception ( 'There is no active transaction ' );
@@ -1270,7 +1270,6 @@ public function rollBack(): bool {
12701270 *
12711271 * @return bool True if a transaction is active, false otherwise.
12721272 */
1273- // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
12741273 public function inTransaction (): bool {
12751274 if ( PHP_VERSION_ID < 80400 ) {
12761275 /*
0 commit comments