Skip to content

Commit

Permalink
Merge pull request #63 from sectsect/feature/stricttypes
Browse files Browse the repository at this point in the history
chore: add missing declare(strict_types=1)
  • Loading branch information
sectsect authored Dec 13, 2024
2 parents f260496 + e14f7f5 commit 0568925
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
- name: Check PHP Version
run: php -v

- name: Install SVN
run: sudo apt-get update && sudo apt-get install -y subversion

- name: Composer install
run: composer install --optimize-autoloader --prefer-dist

Expand Down
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 0568925

Please sign in to comment.