Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dev-dependencies and CI environment #570

Merged
merged 4 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
matrix:
php: ['8.2']
php: ['8.3']
wordpress: ['nightly', 'latest']
include:
- php: '8.2'
Expand Down Expand Up @@ -81,16 +81,16 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
php-version: '8.2'
extensions: mbstring, intl
ini-values: post_max_size=256M, short_open_tag=On
tools: phpunit, composer
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '20'
- name: Run code style checks for CSS, JavaScript and PHP
run: |
composer install
composer install --ignore-platform-req=php
npm install
composer lint-all
composer cs
8 changes: 3 additions & 5 deletions antispam_bee.php
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ public static function show_spam_chart() {
$items = (array) self::get_option( 'daily_stats' );

if ( empty( $items ) ) {
echo sprintf(
printf(
'<div id="ab_chart"><p>%s</p></div>',
esc_html__( 'No data available.', 'antispam-bee' )
);
Expand Down Expand Up @@ -2736,7 +2736,7 @@ private static function _update_daily_stats() {

// Count up.
if ( array_key_exists( $today, $stats ) ) {
$stats[ $today ] ++;
$stats[ $today ]++;
} else {
$stats[ $today ] = 1;
}
Expand Down Expand Up @@ -2778,7 +2778,6 @@ public static function get_secret_name_for_post( $post_id ) {
(int) $post_id,
(bool) self::get_option( 'always_allowed' )
);

}

/**
Expand Down Expand Up @@ -2915,10 +2914,9 @@ public static function update_database() {
* @return bool
*/
private static function db_version_is_current() {

$current_version = floatval( get_option( 'antispambee_db_version', 0 ) );
return $current_version === self::$db_version;

return $current_version === self::$db_version;
}

/**
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
"license": "GPL-v2",
"require-dev": {
"behat/mink": "1.7.1",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-goutte-driver": "^1.3",
"brain/monkey": "^1.5",
"composer/package-versions-deprecated": "^1.11",
"dmore/behat-chrome-extension": "^1.3",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"dmore/behat-chrome-extension": "^1.4",
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0",
"friends-of-behat/mink-extension": "^2.5",
"matthiasmullie/minify": "^1.3",
"paulgibbs/behat-wordpress-extension": "^3.3",
"paulgibbs/behat-wordpress-extension": "^v3.3",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpunit/phpunit": "^4",
"wp-cli/wp-cli-bundle": "@stable",
"wp-coding-standards/wpcs": "^2.3"
"wp-coding-standards/wpcs": "^3.0"
},
"autoload-dev": {
"classmap": [
Expand Down
Loading
Loading