Skip to content

Commit

Permalink
chore: add missing declare(strict_types=1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sectsect committed Dec 2, 2024
1 parent f260496 commit 90134d0
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 10 deletions.
2 changes: 2 additions & 0 deletions admin/class-recursivetable.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @subpackage Google_Spreadsheet_to_DB/admin
*/

declare(strict_types=1);

/**
* The core plugin class.
*
Expand Down
2 changes: 2 additions & 0 deletions functions/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* @subpackage Google_Spreadsheet_to_DB/functions
*/

declare(strict_types=1);

if ( file_exists( plugin_dir_path( __FILE__ ) . 'composer/vendor/autoload.php' ) ) {
require_once plugin_dir_path( __FILE__ ) . 'composer/vendor/autoload.php';
}
Expand Down
2 changes: 2 additions & 0 deletions google-spreadsheet-to-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* @package Google_Spreadsheet_to_DB
*/

declare(strict_types=1);

$google_ss2db_minimalrequiredphpversion = '8.0';

global $wpdb;
Expand Down
2 changes: 2 additions & 0 deletions includes/class-google-spreadsheet-to-db-activator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @subpackage Google_Spreadsheet_to_DB/functions
*/

declare(strict_types=1);

/**
* Fired during plugin activation.
*
Expand Down
22 changes: 12 additions & 10 deletions includes/class-google-spreadsheet-to-db-query.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<?php
/**
* This file contains the Google_Spreadsheet_To_DB_Query class which handles SQL queries for the Google Spreadsheet to DB plugin.
*
* The class is designed to construct and execute SQL queries with support for filtering, sorting, and pagination.
* It is initialized with customizable parameters to tailor the query operations.
*
* @package Google_Spreadsheet_to_DB
* @subpackage Google_Spreadsheet_to_DB/includes
* @since 1.0.2
*/
/**
* This file contains the Google_Spreadsheet_To_DB_Query class which handles SQL queries for the Google Spreadsheet to DB plugin.
*
* The class is designed to construct and execute SQL queries with support for filtering, sorting, and pagination.
* It is initialized with customizable parameters to tailor the query operations.
*
* @package Google_Spreadsheet_to_DB
* @subpackage Google_Spreadsheet_to_DB/includes
* @since 1.0.2
*/

declare(strict_types=1);

/**
* Handles database queries for the Google Spreadsheet to DB plugin.
Expand Down
2 changes: 2 additions & 0 deletions includes/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @subpackage Google_Spreadsheet_to_DB/includes
*/

declare(strict_types=1);

/**
* The core plugin class.
*
Expand Down
2 changes: 2 additions & 0 deletions includes/save.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @subpackage Google_Spreadsheet_to_DB/includes
*/

declare(strict_types=1);

/**
* The core plugin class.
*
Expand Down

0 comments on commit 90134d0

Please sign in to comment.