style: auto-fix PHPCS violations via phpcbf

This commit is contained in:
peptiderepo
2026-06-16 15:26:16 +00:00
parent 08d7696444
commit b9158d7dca
45 changed files with 1018 additions and 658 deletions

View File

@@ -67,7 +67,7 @@ class PR_Core_Schema_Sanitizers {
return '';
}
// 3. Extract the maximal leading run of valid element tokens and separators.
// A valid run must start with an element token ([A-Z][a-z]?\d*), not a separator.
// A valid run must start with an element token ([A-Z][a-z]?\d*), not a separator.
$pattern = '/^((?:' . self::FORMULA_TOKEN . '|' . self::FORMULA_SEP . ')+)/u';
if ( preg_match( $pattern, $value, $m ) ) {
return $m[1];
@@ -132,7 +132,7 @@ class PR_Core_Schema_Sanitizers {
return '[]';
}
$clean = [];
$clean = array();
foreach ( $value as $item ) {
if ( ! is_array( $item ) ) {
continue;
@@ -140,10 +140,10 @@ class PR_Core_Schema_Sanitizers {
$question = sanitize_text_field( (string) ( $item['question'] ?? '' ) );
$answer = sanitize_textarea_field( (string) ( $item['answer'] ?? '' ) );
if ( '' !== $question && '' !== $answer ) {
$clean[] = [
$clean[] = array(
'question' => $question,
'answer' => $answer,
];
);
}
}