Skip to content

Add SQLite compatibility to wp db commands #322

Add SQLite compatibility to wp db commands

Add SQLite compatibility to wp db commands #322

Re-run triggered November 20, 2025 17:27
Status Failure
Total duration 42s
Artifacts

code-quality.yml

on: pull_request
code-quality  /  Lint GitHub Actions workflows
9s
code-quality / Lint GitHub Actions workflows
code-quality  /  Lint PHP files
18s
code-quality / Lint PHP files
code-quality  /  Lint Gherkin Feature files
14s
code-quality / Lint Gherkin Feature files
code-quality  /  Spell check
5s
code-quality / Spell check
code-quality  /  PHPCS
22s
code-quality / PHPCS
code-quality  /  PHPStan
23s
code-quality / PHPStan
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 9 warnings
code-quality / PHPCS: src/DB_Command_SQLite.php#L183
Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.
code-quality / PHPCS: src/DB_Command_SQLite.php#L183
Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.
code-quality / PHPCS: src/DB_Command_SQLite.php#L182
Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.
code-quality / PHPCS: src/DB_Command_SQLite.php#L127
Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.
code-quality / PHPCS: src/DB_Command_SQLite.php#L127
Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.
code-quality / PHPCS: src/DB_Command_SQLite.php#L126
Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.
code-quality / PHPCS: src/DB_Command_SQLite.php#L95
Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.
code-quality / PHPCS: src/DB_Command_SQLite.php#L95
Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.
code-quality / PHPCS: src/DB_Command_SQLite.php#L94
Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.
code-quality / PHPCS: src/DB_Command_SQLite.php#L9
Traits declared by a theme/plugin should start with the theme/plugin prefix. Found: "DB_Command_SQLite".
code-quality / PHPCS
Process completed with exit code 2.
code-quality / PHPStan: src/DB_Command_SQLite.php (in context of class DB_Command)#L288
Parameter #1 $filename of function file_exists expects string, string|false given.
code-quality / PHPStan: src/DB_Command_SQLite.php (in context of class DB_Command)#L219
Cannot call method fetchAll() on PDOStatement|false.
code-quality / PHPStan: src/DB_Command_SQLite.php (in context of class DB_Command)#L173
Parameter #1 $path of function dirname expects string, string|false given.
code-quality / PHPStan: src/DB_Command_SQLite.php (in context of class DB_Command)#L167
Parameter #1 $filename of function unlink expects string, string|false given.
code-quality / PHPStan: src/DB_Command_SQLite.php (in context of class DB_Command)#L166
Parameter #1 $filename of function file_exists expects string, string|false given.
code-quality / PHPStan: src/DB_Command_SQLite.php (in context of class DB_Command)#L150
Parameter #1 $filename of function unlink expects string, string|false given.
code-quality / PHPStan: src/DB_Command_SQLite.php (in context of class DB_Command)#L146
Parameter #1 $filename of function file_exists expects string, string|false given.
code-quality / PHPStan: src/DB_Command_SQLite.php (in context of class DB_Command)#L120
Parameter #1 $filename of function file_exists expects string, string|false given.
code-quality / PHPStan: src/DB_Command_SQLite.php (in context of class DB_Command)#L110
Parameter #1 $path of function dirname expects string, string|false given.
code-quality / PHPStan: src/DB_Command.php#L1205
Parameter #1 $path of function basename expects string, string|false given.
code-quality / PHPCS: src/DB_Command.php#L1213
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
code-quality / PHPCS: src/DB_Command_SQLite.php#L363
The method parameter $assoc_args is never used
code-quality / PHPCS: src/DB_Command_SQLite.php#L258
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 2 spaces
code-quality / PHPCS: src/DB_Command_SQLite.php#L255
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
code-quality / PHPCS: src/DB_Command_SQLite.php#L211
Equals sign not aligned correctly; expected 1 space but found 10 spaces
code-quality / PHPCS: src/DB_Command_SQLite.php#L200
The method parameter $assoc_args is never used
code-quality / PHPCS: src/DB_Command_SQLite.php#L162
The method parameter $assoc_args is never used
code-quality / PHPCS: src/DB_Command_SQLite.php#L143
The method parameter $assoc_args is never used
code-quality / PHPCS: src/DB_Command_SQLite.php#L108
The method parameter $assoc_args is never used