PHPCS: fix file docblock format (short description + blank line after)

File-level docblocks lacked a short description and required blank line
between the block and declare(strict_types=1). WP PHPCS file comment
sniff requires both. All 21 PHP files corrected.

Agent-Session: pr-vision rename v0.1.1
This commit is contained in:
peptiderepo
2026-06-13 09:46:19 +00:00
parent 68ae5b9b1a
commit 7d254019c6
21 changed files with 132 additions and 27 deletions

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* Plugin activation handler.
*
* @package PrVision
*/
declare(strict_types=1);
/**

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* PR Vision top-level admin page.
*
* @package PrVision
*/
declare(strict_types=1);
/**

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* Class and interface autoloader for the PR Vision plugin.
*
* @package PrVision
*/
declare(strict_types=1);
/**

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* Registry for PR Vision data collectors and dashboard panels.
*
* @package PrVision
*/
declare(strict_types=1);
/**

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* Configuration getters and default-seeding for PR Vision.
*
* @package PrVision
*/
declare(strict_types=1);
/**

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* Month-to-date cost tracking and budget-cap enforcement.
*
* @package PrVision
*/
declare(strict_types=1);
/**

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* WP-Cron management for the weekly AI-visibility probe.
*
* @package PrVision
*/
declare(strict_types=1);
/**

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* Plugin deactivation handler.
*
* @package PrVision
*/
declare(strict_types=1);
/**

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* Main orchestrator for the PR Vision plugin.
*
* @package PrVision
*/
declare(strict_types=1);
/**

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* Immutable value object returned by every probe provider.
*
* @package PrVision
*/
declare(strict_types=1);
/**

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* Orchestrates a full probe run across peptides, intents, and models.
*
* @package PrVision
*/
declare(strict_types=1);
/**
@@ -86,7 +91,7 @@ class PRV_Probe_Runner {
$result = $provider->probe( $query );
} catch ( \Exception $e ) {
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
error_log( sprintf( 'PRV: probe failed [%s / %s]: %s', $model, $peptide['slug'], $e->getMessage() ) );
error_log( sprintf( 'PRV: probe failed [%s / %s]: %s', $model, $peptide['slug'], $e->getMessage() ) );
++$counts['skipped_error'];
continue;
}
@@ -107,11 +112,11 @@ class PRV_Probe_Runner {
/**
* Persist a single probe result to the database.
*
* @param string $run_id UUID for this run.
* @param array<string,string> $peptide Peptide config with slug and label.
* @param string $model Model identifier.
* @param string $intent_tpl Raw intent template string.
* @param PRV_Probe_Result $result Probe result.
* @param string $run_id UUID for this run.
* @param array<string,string> $peptide Peptide config with slug and label.
* @param string $model Model identifier.
* @param string $intent_tpl Raw intent template string.
* @param PRV_Probe_Result $result Probe result.
*
* @return int Inserted row ID, or 0 on failure.
*/

View File

@@ -1,5 +1,10 @@
<?php
/** @package PrVision */
/**
* Database table creation and schema versioning for PR Vision.
*
* @package PrVision
*/
declare(strict_types=1);
/**