Adopt reusable CI standard + PHPUnit conversion (#22)

Squash-merge of PR #22: adopt shared reusable CI workflow, convert PHPUnit to stubs, update branch-protection contexts.

QA-approved at 05d8094a1d. All required CI checks green.

Agent-Session: 2026-06-17-prcore-ci-deploy
This commit is contained in:
peptiderepo
2026-06-17 01:12:00 +07:00
committed by GitHub
parent d0b5875fd8
commit 665d7fa9e1
72 changed files with 4604 additions and 1212 deletions

View File

@@ -1,6 +1,18 @@
<?php
/**
* Verification Sanitizers.
*
* @package Peptide_Repo_Core
*/
declare(strict_types=1);
/**
* Standalone sanitization functions for verification_velocity and verification_status fields
*
* @package Peptide_Repo_Core
*/
/**
* Sanitizers for verification meta fields.
*
@@ -19,7 +31,7 @@ class PR_Core_Verification_Sanitizers {
* @return string Valid enum value (low, medium, high).
*/
public static function sanitize_velocity( string $value ): string {
return in_array( $value, [ 'low', 'medium', 'high' ], true ) ? $value : 'medium';
return in_array( $value, array( 'low', 'medium', 'high' ), true ) ? $value : 'medium';
}
/**
@@ -29,6 +41,6 @@ class PR_Core_Verification_Sanitizers {
* @return string Valid enum value (current, due, overdue).
*/
public static function sanitize_status( string $value ): string {
return in_array( $value, [ 'current', 'due', 'overdue' ], true ) ? $value : 'current';
return in_array( $value, array( 'current', 'due', 'overdue' ), true ) ? $value : 'current';
}
}