fix: remove all stale api/ path references across PHP codebase

Updated ~60 files: comments, usage docs, SCRIPT_PATH constants,
wrapper paths, require paths, error messages, and help text.
All api/validate/ → validate/, api/automation/ → automation/, etc.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-04-18 19:18:22 -05:00
parent bd53fe834f
commit 7b863f690d
59 changed files with 174 additions and 174 deletions
+6 -6
View File
@@ -15,11 +15,11 @@
* BRIEF: Bulk scaffold and sync Joomla template repositories
*
* USAGE
* php api/automation/bulk_joomla_template.php --scaffold --name=MokoTheme
* php api/automation/bulk_joomla_template.php --scaffold --name=MokoTheme --client=administrator
* php api/automation/bulk_joomla_template.php --sync --repos=MokoTheme,MokoDarkTheme
* php api/automation/bulk_joomla_template.php --sync --all
* php api/automation/bulk_joomla_template.php --list
* php automation/bulk_joomla_template.php --scaffold --name=MokoTheme
* php automation/bulk_joomla_template.php --scaffold --name=MokoTheme --client=administrator
* php automation/bulk_joomla_template.php --sync --repos=MokoTheme,MokoDarkTheme
* php automation/bulk_joomla_template.php --sync --all
* php automation/bulk_joomla_template.php --list
*/
declare(strict_types=1);
@@ -723,7 +723,7 @@ class BulkJoomlaTemplate extends CLIApp
* and pushes the newer one to the stale platform.
*
* Designed to be called from a CI workflow via:
* php api/automation/bulk_joomla_template.php --sync-updates --repos=MokoCassiopeia
* php automation/bulk_joomla_template.php --sync-updates --repos=MokoCassiopeia
*/
private function syncUpdatesBetweenPlatforms(string $org): int
{
+3 -3
View File
@@ -420,7 +420,7 @@ class BulkSync extends CLIApp
$this->log("The bulk repository sync is failing silently because the core", 'ERROR');
$this->log("synchronization logic has not been implemented yet.", 'ERROR');
$this->log("", 'ERROR');
$this->log("Location: api/lib/Enterprise/RepositorySynchronizer.php", 'ERROR');
$this->log("Location: lib/Enterprise/RepositorySynchronizer.php", 'ERROR');
$this->log("Method: processRepository()", 'ERROR');
$this->log("", 'ERROR');
$this->log("Required Implementation:", 'ERROR');
@@ -509,7 +509,7 @@ class BulkSync extends CLIApp
]);
$script = basename(__FILE__);
$this->log("💾 Checkpoint saved. To resume once the issue is resolved, run:", 'INFO');
$this->log(" php api/automation/{$script} --resume [same flags as before]", 'INFO');
$this->log(" php automation/{$script} --resume [same flags as before]", 'INFO');
} catch (\Exception $e) {
$this->log("⚠️ Failed to save interrupt checkpoint: " . $e->getMessage(), 'WARN');
}
@@ -1355,7 +1355,7 @@ class BulkSync extends CLIApp
1. Check the local audit log or re-run with `--repos=<repo>` to see the specific error.
2. Fix the underlying issue (API token, rate limit, branch protection, etc.).
3. Re-run: `php api/automation/bulk_sync.php --org={$org} --repos=<repo> --force --yes`
3. Re-run: `php automation/bulk_sync.php --org={$org} --repos=<repo> --force --yes`
4. Close this issue once all repos are synced successfully.
---
+4 -4
View File
@@ -15,10 +15,10 @@
* BRIEF: Migrate repositories from GitHub to self-hosted Gitea instance
*
* USAGE
* php api/automation/migrate_to_gitea.php --dry-run
* php api/automation/migrate_to_gitea.php --repos MokoCRM MokoDoliMods
* php api/automation/migrate_to_gitea.php --exclude MokoStandards --skip-archived
* php api/automation/migrate_to_gitea.php --resume
* php automation/migrate_to_gitea.php --dry-run
* php automation/migrate_to_gitea.php --repos MokoCRM MokoDoliMods
* php automation/migrate_to_gitea.php --exclude MokoStandards --skip-archived
* php automation/migrate_to_gitea.php --resume
*/
declare(strict_types=1);
+1 -1
View File
@@ -590,7 +590,7 @@ class PushFiles extends CLIApp
1. Check the output above for the specific error per repo.
2. Fix the underlying issue (API token, branch permissions, file path, etc.).
3. Re-run: `php api/automation/push_files.php --org={$org} --repos=<repo> --files=<files> --yes`
3. Re-run: `php automation/push_files.php --org={$org} --repos=<repo> --files=<files> --yes`
4. Close this issue once resolved.
---
+3 -3
View File
@@ -15,9 +15,9 @@
* BRIEF: Gracefully retire a governed repository — archive, close issues/PRs, remove sync def
*
* USAGE
* php api/cli/archive_repo.php --repo MokoOldModule
* php api/cli/archive_repo.php --repo MokoOldModule --dry-run
* php api/cli/archive_repo.php --repo MokoOldModule --skip-close # Archive only, keep issues open
* php cli/archive_repo.php --repo MokoOldModule
* php cli/archive_repo.php --repo MokoOldModule --dry-run
* php cli/archive_repo.php --repo MokoOldModule --skip-close # Archive only, keep issues open
*/
declare(strict_types=1);
+5 -5
View File
@@ -15,10 +15,10 @@
* BRIEF: Create baseline GitHub Projects for repositories with standard fields and views
*
* USAGE
* php api/cli/create_project.php --repo MokoCRM # Auto-detect type, create project
* php api/cli/create_project.php --repo MokoCRM --type dolibarr # Force type
* php api/cli/create_project.php --org mokoconsulting-tech --all # All repos without projects
* php api/cli/create_project.php --repo MokoCRM --dry-run # Preview without changes
* php cli/create_project.php --repo MokoCRM # Auto-detect type, create project
* php cli/create_project.php --repo MokoCRM --type dolibarr # Force type
* php cli/create_project.php --org mokoconsulting-tech --all # All repos without projects
* php cli/create_project.php --repo MokoCRM --dry-run # Preview without changes
*/
declare(strict_types=1);
@@ -385,7 +385,7 @@ function createProject(
updateProjectV2(input: {
projectId: $projectId,
shortDescription: $shortDescription,
readme: "Managed by MokoStandards. Run `php api/cli/create_project.php` to regenerate."
readme: "Managed by MokoStandards. Run `php cli/create_project.php` to regenerate."
}) {
projectV2 { id }
}
+5 -5
View File
@@ -15,9 +15,9 @@
* BRIEF: Scaffold a new governed repository with full MokoStandards baseline
*
* USAGE
* php api/cli/create_repo.php --name MokoNewModule --type dolibarr --description "My new module"
* php api/cli/create_repo.php --name MokoNewModule --type joomla --private
* php api/cli/create_repo.php --name MokoNewModule --type generic --dry-run
* php cli/create_repo.php --name MokoNewModule --type dolibarr --description "My new module"
* php cli/create_repo.php --name MokoNewModule --type joomla --private
* php cli/create_repo.php --name MokoNewModule --type generic --dry-run
*/
declare(strict_types=1);
@@ -229,7 +229,7 @@ if (!$dryRun) {
if (file_exists($syncScript)) {
passthru("php " . escapeshellarg($syncScript) . " --repos " . escapeshellarg($name) . " --force --yes");
} else {
echo " Run manually: php api/automation/bulk_sync.php --repos {$name} --force --yes\n";
echo " Run manually: php automation/bulk_sync.php --repos {$name} --force --yes\n";
}
} else {
echo " (dry-run) would run initial sync\n";
@@ -242,7 +242,7 @@ if (!$dryRun) {
if (file_exists($projectScript)) {
passthru("php " . escapeshellarg($projectScript) . " --repo " . escapeshellarg($name) . " --type " . escapeshellarg($type));
} else {
echo " Run manually: php api/cli/create_project.php --repo {$name} --type {$type}\n";
echo " Run manually: php cli/create_project.php --repo {$name} --type {$type}\n";
}
} else {
echo " (dry-run) would create Project\n";
+4 -4
View File
@@ -15,10 +15,10 @@
* BRIEF: Joomla release pipeline — build ZIP+tar.gz, upload to GitHub Release, update updates.xml
*
* USAGE
* php api/cli/joomla_release.php --repo MokoCassiopeia --stability stable
* php api/cli/joomla_release.php --repo MokoCassiopeia --stability development
* php api/cli/joomla_release.php --repo MokoCassiopeia --stability rc --dry-run
* php api/cli/joomla_release.php --path /local/repo --stability stable
* php cli/joomla_release.php --repo MokoCassiopeia --stability stable
* php cli/joomla_release.php --repo MokoCassiopeia --stability development
* php cli/joomla_release.php --repo MokoCassiopeia --stability rc --dry-run
* php cli/joomla_release.php --path /local/repo --stability stable
*/
declare(strict_types=1);
+5 -5
View File
@@ -13,10 +13,10 @@
* BRIEF: Automate the MokoStandards version branch release flow
*
* USAGE
* php api/cli/release.php # Release current version
* php api/cli/release.php --bump minor # Bump minor, then release
* php api/cli/release.php --bump major # Bump major, then release
* php api/cli/release.php --dry-run # Preview without changes
* php cli/release.php # Release current version
* php cli/release.php --bump minor # Bump minor, then release
* php cli/release.php --bump major # Bump major, then release
* php cli/release.php --dry-run # Preview without changes
*/
declare(strict_types=1);
@@ -30,7 +30,7 @@ foreach ($argv as $i => $arg) {
}
$repoRoot = dirname(__DIR__, 2);
$syncFile = "{$repoRoot}/api/lib/Enterprise/RepositorySynchronizer.php";
$syncFile = "{$repoRoot}/lib/Enterprise/RepositorySynchronizer.php";
// Check both workflow directories for the bulk-repo-sync workflow
$bulkSyncFile = file_exists("{$repoRoot}/.gitea/workflows/bulk-repo-sync.yml")
? "{$repoRoot}/.gitea/workflows/bulk-repo-sync.yml"
+4 -4
View File
@@ -15,10 +15,10 @@
* BRIEF: Apply branch protection rules to all repos via platform adapter
*
* USAGE
* php api/cli/sync_rulesets.php # Apply to all repos
* php api/cli/sync_rulesets.php --repo MokoCRM # Single repo
* php api/cli/sync_rulesets.php --dry-run # Preview only
* php api/cli/sync_rulesets.php --delete # Remove then re-apply
* php cli/sync_rulesets.php # Apply to all repos
* php cli/sync_rulesets.php --repo MokoCRM # Single repo
* php cli/sync_rulesets.php --dry-run # Preview only
* php cli/sync_rulesets.php --delete # Remove then re-apply
*
* NOTE: On GitHub, this creates rulesets via the rulesets API.
* On Gitea, this creates branch_protections via the branch protection API.
+3 -3
View File
@@ -20,9 +20,9 @@
* changes — only XML manifest changes require a Joomla reinstall.
*
* USAGE
* php api/deploy/deploy-joomla.php --path . --config /tmp/sftp-config.json
* php api/deploy/deploy-joomla.php --path . --config /tmp/sftp-config.json --dry-run
* php api/deploy/deploy-joomla.php --path . --env dev
* php deploy/deploy-joomla.php --path . --config /tmp/sftp-config.json
* php deploy/deploy-joomla.php --path . --config /tmp/sftp-config.json --dry-run
* php deploy/deploy-joomla.php --path . --env dev
*/
declare(strict_types=1);
+6 -6
View File
@@ -96,25 +96,25 @@ CONFIG FORMAT
EXAMPLES
# Dry-run preview of dev deployment
php api/deploy/deploy-sftp.php --env dev --dry-run --verbose
php deploy/deploy-sftp.php --env dev --dry-run --verbose
# Deploy to dev server
php api/deploy/deploy-sftp.php --path /repos/mymodule --env dev
php deploy/deploy-sftp.php --path /repos/mymodule --env dev
# Deploy to release/production server
php api/deploy/deploy-sftp.php --path /repos/mymodule --env rs
php deploy/deploy-sftp.php --path /repos/mymodule --env rs
# Use a different source directory
php api/deploy/deploy-sftp.php --env dev --src-dir htdocs
php deploy/deploy-sftp.php --env dev --src-dir htdocs
# Explicit config with encrypted key
php api/deploy/deploy-sftp.php \
php deploy/deploy-sftp.php \
--path /repos/mymodule \
--env rs \
--key-passphrase "my passphrase"
# Quiet mode (errors only)
php api/deploy/deploy-sftp.php --env dev --quiet
php deploy/deploy-sftp.php --env dev --quiet
EXIT CODES
0 All files uploaded successfully
+1 -1
View File
@@ -11,7 +11,7 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /lib/CliBase.php
* VERSION: 04.06.00
* BRIEF: Standalone base CLI class for api/ scripts that do not use CliFramework
* BRIEF: Standalone base CLI class for scripts that do not use CliFramework
*/
declare(strict_types=1);
+1 -1
View File
@@ -11,7 +11,7 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /lib/Common.php
* VERSION: 04.06.00
* BRIEF: Common utility functions for api/ scripts
* BRIEF: Common utility functions for scripts
* NOTE: Version format used throughout is zero-padded semver: XX.YY.ZZ (e.g. 04.00.04).
* All version regex patterns enforce exactly two digits per component by design.
*/
@@ -92,7 +92,7 @@ class EnterpriseReadinessValidator
];
foreach ($required as $library) {
$phpFile = "{$path}/api/lib/Enterprise/{$library}.php";
$phpFile = "{$path}/lib/Enterprise/{$library}.php";
$this->addResult(
"Enterprise library: {$library}",
file_exists($phpFile),
+1 -1
View File
@@ -166,7 +166,7 @@ class RepositorySynchronizer
{
$this->logger->logInfo("Starting synchronization for {$org}/{$repo}");
// Resolve repo root (two levels up from this file: Enterprise/ → lib/ → api/ → root)
// Resolve repo root (three levels up from this file: Enterprise/ → lib/ → root)
// API repo root (definitions, sync code)
$repoRoot = dirname(dirname(__DIR__));
// MokoStandards repo root (templates, configs)
+4 -4
View File
@@ -34,7 +34,7 @@ use MokoEnterprise\PlatformAdapterFactory;
* pinned commit SHA. Already-pinned references (40-char hex SHA) are left untouched.
*
* Usage:
* php api/maintenance/pin_action_shas.php [--dry-run] [--verbose] [--help]
* php maintenance/pin_action_shas.php [--dry-run] [--verbose] [--help]
*
* Environment:
* GH_TOKEN Personal access token for GitHub API calls.
@@ -90,7 +90,7 @@ class ActionShaPinner
private function showHelp(): void
{
echo <<<'HELP'
Usage: php api/maintenance/pin_action_shas.php [OPTIONS]
Usage: php maintenance/pin_action_shas.php [OPTIONS]
Pins GitHub Actions to immutable commit SHAs in all .github/workflows/*.yml
files. Already-pinned references (40-character commit SHA) are skipped.
@@ -106,10 +106,10 @@ Environment:
Examples:
# Preview all changes
GH_TOKEN=ghp_xxx php api/maintenance/pin_action_shas.php --dry-run --verbose
GH_TOKEN=ghp_xxx php maintenance/pin_action_shas.php --dry-run --verbose
# Apply changes
GH_TOKEN=ghp_xxx php api/maintenance/pin_action_shas.php
GH_TOKEN=ghp_xxx php maintenance/pin_action_shas.php
HELP;
}
+3 -3
View File
@@ -15,9 +15,9 @@
* BRIEF: Generate a live inventory dashboard of all governed repos as a GitHub issue
*
* USAGE
* php api/maintenance/repo_inventory.php # Generate and post dashboard
* php api/maintenance/repo_inventory.php --dry-run # Preview only
* php api/maintenance/repo_inventory.php --json # JSON output to stdout
* php maintenance/repo_inventory.php # Generate and post dashboard
* php maintenance/repo_inventory.php --dry-run # Preview only
* php maintenance/repo_inventory.php --json # JSON output to stdout
*/
declare(strict_types=1);
+4 -4
View File
@@ -15,10 +15,10 @@
* BRIEF: Audit FTP secrets and variables across all governed repos — report missing or stale
*
* USAGE
* php api/maintenance/rotate_secrets.php --all # Audit all repos
* php api/maintenance/rotate_secrets.php --repo MokoCRM # Single repo
* php api/maintenance/rotate_secrets.php --all --json # JSON output
* php api/maintenance/rotate_secrets.php --all --create-issue # Post results as issue
* php maintenance/rotate_secrets.php --all # Audit all repos
* php maintenance/rotate_secrets.php --repo MokoCRM # Single repo
* php maintenance/rotate_secrets.php --all --json # JSON output
* php maintenance/rotate_secrets.php --all --create-issue # Post results as issue
*/
declare(strict_types=1);
+1 -1
View File
@@ -25,7 +25,7 @@ declare(strict_types=1);
*/
class ScriptRegistryUpdater
{
private const REGISTRY_PATH = 'api/.script-registry.json';
private const REGISTRY_PATH = '.script-registry.json';
private bool $dryRun = false;
private bool $verbose = false;
+3 -3
View File
@@ -435,15 +435,15 @@ class UpdateVersionFromReadme extends CliFramework
"",
"1. Run the sync script locally:",
" ```bash",
" php api/maintenance/update_version_from_readme.php --path . --dry-run",
" php api/maintenance/update_version_from_readme.php --path .",
" php maintenance/update_version_from_readme.php --path . --dry-run",
" php maintenance/update_version_from_readme.php --path .",
" ```",
"2. Inspect any files still flagged — they may use a non-standard VERSION format.",
"3. Update them manually to match `VERSION: {$version}`.",
"4. Commit and push — this issue will be closed automatically on the next successful sync.",
"",
"---",
"*Automatically created by [update_version_from_readme.php](api/maintenance/update_version_from_readme.php)*",
"*Automatically created by [update_version_from_readme.php](maintenance/update_version_from_readme.php)*",
]);
try {
+1 -1
View File
@@ -64,7 +64,7 @@ class AutoDetectPlatform extends CLIApp
{
return [
'repo-path:' => 'Path to repository to analyze (default: current directory)',
'schema-dir:' => 'Path to schema definitions directory (default: api/definitions/default)',
'schema-dir:' => 'Path to schema definitions directory (default: definitions/default)',
'output-dir:' => 'Directory for output reports (default: var/logs/validation)',
];
}
+3 -3
View File
@@ -15,9 +15,9 @@
* BRIEF: Validate composer.json enterprise dependency across all governed repos
*
* USAGE
* php api/validate/check_composer_deps.php --repo MokoCRM # Single repo
* php api/validate/check_composer_deps.php --all # All repos
* php api/validate/check_composer_deps.php --all --json # JSON output
* php validate/check_composer_deps.php --repo MokoCRM # Single repo
* php validate/check_composer_deps.php --all # All repos
* php validate/check_composer_deps.php --all --json # JSON output
*/
declare(strict_types=1);
+3 -3
View File
@@ -139,18 +139,18 @@ class EnterpriseReadinessChecker extends CliFramework
{
$required = ['ApiClient', 'AuditLogger', 'Config', 'ErrorRecovery', 'MetricsCollector'];
// Enterprise libs may live in vendor/ (Composer install) or api/lib/Enterprise/ (MokoStandards itself).
// Enterprise libs may live in vendor/ (Composer install) or lib/Enterprise/ (MokoStandards itself).
// A single vendor/ directory confirms the whole package is present — no need to check per-file.
$vendorPkg = "{$path}/vendor/mokoconsulting-tech/enterprise";
$inVendor = is_dir($vendorPkg);
foreach ($required as $library) {
$localFile = "{$path}/api/lib/Enterprise/{$library}.php";
$localFile = "{$path}/lib/Enterprise/{$library}.php";
$found = $inVendor || file_exists($localFile);
$this->addResult(
"Enterprise library: {$library}",
$found,
"Missing enterprise library (not in vendor/mokoconsulting-tech/enterprise or api/lib/Enterprise/)"
"Missing enterprise library (not in vendor/mokoconsulting-tech/enterprise or lib/Enterprise/)"
);
}
}
+1 -1
View File
@@ -144,7 +144,7 @@ class CheckVersionConsistency extends CliFramework
// ── Check PHP Enterprise library files ────────────────────────────────
$this->section('Checking PHP source files');
$phpFiles = $this->findPhpFiles($path . '/api/lib/Enterprise');
$phpFiles = $this->findPhpFiles($path . '/lib/Enterprise');
$phpTotal = count($phpFiles);
foreach ($phpFiles as $i => $file) {
+1 -1
View File
@@ -529,7 +529,7 @@ class DriftScanner extends CliFramework
$body .= "1. **Option 1:** Run bulk sync to update all files automatically\n";
$body .= " ```bash\n";
$body .= " # From MokoStandards repository\n";
$body .= " php api/automation/bulk_sync.php --repos=\"{$repo}\"\n";
$body .= " php automation/bulk_sync.php --repos=\"{$repo}\"\n";
$body .= " ```\n\n";
$body .= "2. **Option 2:** If changes are intentional, update `.github/override.tf` to exclude files\n\n";
$body .= "3. **Option 3:** Manually update files to match templates\n\n";
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/auto_detect_platform.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/auto_detect_platform.php
* BRIEF: PHP wrapper for validate/auto_detect_platform.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'auto_detect_platform';
const SCRIPT_PATH = 'api/validate/auto_detect_platform.php';
const SCRIPT_PATH = 'validate/auto_detect_platform.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/bulk_sync.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/automation/bulk_sync.php
* BRIEF: PHP wrapper for automation/bulk_sync.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'bulk_sync';
const SCRIPT_PATH = 'api/automation/bulk_sync.php';
const SCRIPT_PATH = 'automation/bulk_sync.php';
const SCRIPT_CATEGORY = 'automation';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_changelog.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_changelog.php
* BRIEF: PHP wrapper for validate/check_changelog.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_changelog';
const SCRIPT_PATH = 'api/validate/check_changelog.php';
const SCRIPT_PATH = 'validate/check_changelog.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_dolibarr_module.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_dolibarr_module.php
* BRIEF: PHP wrapper for validate/check_dolibarr_module.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_dolibarr_module';
const SCRIPT_PATH = 'api/validate/check_dolibarr_module.php';
const SCRIPT_PATH = 'validate/check_dolibarr_module.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_enterprise_readiness.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_enterprise_readiness.php
* BRIEF: PHP wrapper for validate/check_enterprise_readiness.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_enterprise_readiness';
const SCRIPT_PATH = 'api/validate/check_enterprise_readiness.php';
const SCRIPT_PATH = 'validate/check_enterprise_readiness.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_joomla_manifest.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_joomla_manifest.php
* BRIEF: PHP wrapper for validate/check_joomla_manifest.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_joomla_manifest';
const SCRIPT_PATH = 'api/validate/check_joomla_manifest.php';
const SCRIPT_PATH = 'validate/check_joomla_manifest.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_language_structure.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_language_structure.php
* BRIEF: PHP wrapper for validate/check_language_structure.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_language_structure';
const SCRIPT_PATH = 'api/validate/check_language_structure.php';
const SCRIPT_PATH = 'validate/check_language_structure.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_license_headers.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_license_headers.php
* BRIEF: PHP wrapper for validate/check_license_headers.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_license_headers';
const SCRIPT_PATH = 'api/validate/check_license_headers.php';
const SCRIPT_PATH = 'validate/check_license_headers.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_no_secrets.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_no_secrets.php
* BRIEF: PHP wrapper for validate/check_no_secrets.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_no_secrets';
const SCRIPT_PATH = 'api/validate/check_no_secrets.php';
const SCRIPT_PATH = 'validate/check_no_secrets.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_paths.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_paths.php
* BRIEF: PHP wrapper for validate/check_paths.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_paths';
const SCRIPT_PATH = 'api/validate/check_paths.php';
const SCRIPT_PATH = 'validate/check_paths.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_php_syntax.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_php_syntax.php
* BRIEF: PHP wrapper for validate/check_php_syntax.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_php_syntax';
const SCRIPT_PATH = 'api/validate/check_php_syntax.php';
const SCRIPT_PATH = 'validate/check_php_syntax.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_repo_health.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_repo_health.php
* BRIEF: PHP wrapper for validate/check_repo_health.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_repo_health';
const SCRIPT_PATH = 'api/validate/check_repo_health.php';
const SCRIPT_PATH = 'validate/check_repo_health.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_structure.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_structure.php
* BRIEF: PHP wrapper for validate/check_structure.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_structure';
const SCRIPT_PATH = 'api/validate/check_structure.php';
const SCRIPT_PATH = 'validate/check_structure.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_tabs.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_tabs.php
* BRIEF: PHP wrapper for validate/check_tabs.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_tabs';
const SCRIPT_PATH = 'api/validate/check_tabs.php';
const SCRIPT_PATH = 'validate/check_tabs.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_version_consistency.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_version_consistency.php
* BRIEF: PHP wrapper for validate/check_version_consistency.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_version_consistency';
const SCRIPT_PATH = 'api/validate/check_version_consistency.php';
const SCRIPT_PATH = 'validate/check_version_consistency.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/check_xml_wellformed.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/check_xml_wellformed.php
* BRIEF: PHP wrapper for validate/check_xml_wellformed.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'check_xml_wellformed';
const SCRIPT_PATH = 'api/validate/check_xml_wellformed.php';
const SCRIPT_PATH = 'validate/check_xml_wellformed.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/deploy_sftp.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/deploy/deploy-sftp.php
* BRIEF: PHP wrapper for deploy/deploy-sftp.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'deploy_sftp';
const SCRIPT_PATH = 'api/deploy/deploy-sftp.php';
const SCRIPT_PATH = 'deploy/deploy-sftp.php';
const SCRIPT_CATEGORY = 'deploy';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/fix_line_endings.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/fix/fix_line_endings.php
* BRIEF: PHP wrapper for fix/fix_line_endings.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'fix_line_endings';
const SCRIPT_PATH = 'api/fix/fix_line_endings.php';
const SCRIPT_PATH = 'fix/fix_line_endings.php';
const SCRIPT_CATEGORY = 'fix';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/fix_permissions.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/fix/fix_permissions.php
* BRIEF: PHP wrapper for fix/fix_permissions.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'fix_permissions';
const SCRIPT_PATH = 'api/fix/fix_permissions.php';
const SCRIPT_PATH = 'fix/fix_permissions.php';
const SCRIPT_CATEGORY = 'fix';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/fix_tabs.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/fix/fix_tabs.php
* BRIEF: PHP wrapper for fix/fix_tabs.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'fix_tabs';
const SCRIPT_PATH = 'api/fix/fix_tabs.php';
const SCRIPT_PATH = 'fix/fix_tabs.php';
const SCRIPT_CATEGORY = 'fix';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/fix_trailing_spaces.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/fix/fix_trailing_spaces.php
* BRIEF: PHP wrapper for fix/fix_trailing_spaces.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'fix_trailing_spaces';
const SCRIPT_PATH = 'api/fix/fix_trailing_spaces.php';
const SCRIPT_PATH = 'fix/fix_trailing_spaces.php';
const SCRIPT_CATEGORY = 'fix';
/**
+33 -33
View File
@@ -12,7 +12,7 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/gen_wrappers.php
* VERSION: 04.06.00
* BRIEF: Generate PHP CLI wrapper scripts for every PHP script in api/
* BRIEF: Generate PHP CLI wrapper scripts for every PHP script in the repo
*/
declare(strict_types=1);
@@ -24,43 +24,43 @@ declare(strict_types=1);
*/
const SCRIPTS = [
// validate
'auto_detect_platform' => ['api/validate/auto_detect_platform.php', 'validate'],
'check_changelog' => ['api/validate/check_changelog.php', 'validate'],
'check_dolibarr_module' => ['api/validate/check_dolibarr_module.php', 'validate'],
'check_enterprise_readiness' => ['api/validate/check_enterprise_readiness.php', 'validate'],
'check_joomla_manifest' => ['api/validate/check_joomla_manifest.php', 'validate'],
'check_language_structure' => ['api/validate/check_language_structure.php', 'validate'],
'check_license_headers' => ['api/validate/check_license_headers.php', 'validate'],
'check_no_secrets' => ['api/validate/check_no_secrets.php', 'validate'],
'check_paths' => ['api/validate/check_paths.php', 'validate'],
'check_php_syntax' => ['api/validate/check_php_syntax.php', 'validate'],
'check_repo_health' => ['api/validate/check_repo_health.php', 'validate'],
'check_structure' => ['api/validate/check_structure.php', 'validate'],
'check_tabs' => ['api/validate/check_tabs.php', 'validate'],
'check_version_consistency' => ['api/validate/check_version_consistency.php', 'validate'],
'check_xml_wellformed' => ['api/validate/check_xml_wellformed.php', 'validate'],
'scan_drift' => ['api/validate/scan_drift.php', 'validate'],
'auto_detect_platform' => ['validate/auto_detect_platform.php', 'validate'],
'check_changelog' => ['validate/check_changelog.php', 'validate'],
'check_dolibarr_module' => ['validate/check_dolibarr_module.php', 'validate'],
'check_enterprise_readiness' => ['validate/check_enterprise_readiness.php', 'validate'],
'check_joomla_manifest' => ['validate/check_joomla_manifest.php', 'validate'],
'check_language_structure' => ['validate/check_language_structure.php', 'validate'],
'check_license_headers' => ['validate/check_license_headers.php', 'validate'],
'check_no_secrets' => ['validate/check_no_secrets.php', 'validate'],
'check_paths' => ['validate/check_paths.php', 'validate'],
'check_php_syntax' => ['validate/check_php_syntax.php', 'validate'],
'check_repo_health' => ['validate/check_repo_health.php', 'validate'],
'check_structure' => ['validate/check_structure.php', 'validate'],
'check_tabs' => ['validate/check_tabs.php', 'validate'],
'check_version_consistency' => ['validate/check_version_consistency.php', 'validate'],
'check_xml_wellformed' => ['validate/check_xml_wellformed.php', 'validate'],
'scan_drift' => ['validate/scan_drift.php', 'validate'],
// automation
'bulk_sync' => ['api/automation/bulk_sync.php', 'automation'],
'bulk_sync' => ['automation/bulk_sync.php', 'automation'],
// deploy
'deploy_sftp' => ['api/deploy/deploy-sftp.php', 'deploy'],
'deploy_sftp' => ['deploy/deploy-sftp.php', 'deploy'],
// fix
'fix_line_endings' => ['api/fix/fix_line_endings.php', 'fix'],
'fix_permissions' => ['api/fix/fix_permissions.php', 'fix'],
'fix_tabs' => ['api/fix/fix_tabs.php', 'fix'],
'fix_trailing_spaces' => ['api/fix/fix_trailing_spaces.php', 'fix'],
'fix_line_endings' => ['fix/fix_line_endings.php', 'fix'],
'fix_permissions' => ['fix/fix_permissions.php', 'fix'],
'fix_tabs' => ['fix/fix_tabs.php', 'fix'],
'fix_trailing_spaces' => ['fix/fix_trailing_spaces.php', 'fix'],
// maintenance
'pin_action_shas' => ['api/maintenance/pin_action_shas.php', 'maintenance'],
'setup_labels' => ['api/maintenance/setup_labels.php', 'maintenance'],
'sync_dolibarr_readmes' => ['api/maintenance/sync_dolibarr_readmes.php', 'maintenance'],
'update_sha_hashes' => ['api/maintenance/update_sha_hashes.php', 'maintenance'],
'update_version_from_readme' => ['api/maintenance/update_version_from_readme.php', 'maintenance'],
'pin_action_shas' => ['maintenance/pin_action_shas.php', 'maintenance'],
'setup_labels' => ['maintenance/setup_labels.php', 'maintenance'],
'sync_dolibarr_readmes' => ['maintenance/sync_dolibarr_readmes.php', 'maintenance'],
'update_sha_hashes' => ['maintenance/update_sha_hashes.php', 'maintenance'],
'update_version_from_readme' => ['maintenance/update_version_from_readme.php', 'maintenance'],
// plugin
'plugin_health_check' => ['api/plugin_health_check.php', 'plugin'],
'plugin_list' => ['api/plugin_list.php', 'plugin'],
'plugin_metrics' => ['api/plugin_metrics.php', 'plugin'],
'plugin_readiness' => ['api/plugin_readiness.php', 'plugin'],
'plugin_validate' => ['api/plugin_validate.php', 'plugin'],
'plugin_health_check' => ['plugin_health_check.php', 'plugin'],
'plugin_list' => ['plugin_list.php', 'plugin'],
'plugin_metrics' => ['plugin_metrics.php', 'plugin'],
'plugin_readiness' => ['plugin_readiness.php', 'plugin'],
'plugin_validate' => ['plugin_validate.php', 'plugin'],
];
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/pin_action_shas.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/maintenance/pin_action_shas.php
* BRIEF: PHP wrapper for maintenance/pin_action_shas.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'pin_action_shas';
const SCRIPT_PATH = 'api/maintenance/pin_action_shas.php';
const SCRIPT_PATH = 'maintenance/pin_action_shas.php';
const SCRIPT_CATEGORY = 'maintenance';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/plugin_health_check.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/plugin_health_check.php
* BRIEF: PHP wrapper for plugin_health_check.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'plugin_health_check';
const SCRIPT_PATH = 'api/plugin_health_check.php';
const SCRIPT_PATH = 'plugin_health_check.php';
const SCRIPT_CATEGORY = 'plugin';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/plugin_list.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/plugin_list.php
* BRIEF: PHP wrapper for plugin_list.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'plugin_list';
const SCRIPT_PATH = 'api/plugin_list.php';
const SCRIPT_PATH = 'plugin_list.php';
const SCRIPT_CATEGORY = 'plugin';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/plugin_metrics.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/plugin_metrics.php
* BRIEF: PHP wrapper for plugin_metrics.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'plugin_metrics';
const SCRIPT_PATH = 'api/plugin_metrics.php';
const SCRIPT_PATH = 'plugin_metrics.php';
const SCRIPT_CATEGORY = 'plugin';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/plugin_readiness.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/plugin_readiness.php
* BRIEF: PHP wrapper for plugin_readiness.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'plugin_readiness';
const SCRIPT_PATH = 'api/plugin_readiness.php';
const SCRIPT_PATH = 'plugin_readiness.php';
const SCRIPT_CATEGORY = 'plugin';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/plugin_validate.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/plugin_validate.php
* BRIEF: PHP wrapper for plugin_validate.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'plugin_validate';
const SCRIPT_PATH = 'api/plugin_validate.php';
const SCRIPT_PATH = 'plugin_validate.php';
const SCRIPT_CATEGORY = 'plugin';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/scan_drift.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/validate/scan_drift.php
* BRIEF: PHP wrapper for validate/scan_drift.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'scan_drift';
const SCRIPT_PATH = 'api/validate/scan_drift.php';
const SCRIPT_PATH = 'validate/scan_drift.php';
const SCRIPT_CATEGORY = 'validate';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/setup_labels.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/maintenance/setup_labels.php
* BRIEF: PHP wrapper for maintenance/setup_labels.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'setup_labels';
const SCRIPT_PATH = 'api/maintenance/setup_labels.php';
const SCRIPT_PATH = 'maintenance/setup_labels.php';
const SCRIPT_CATEGORY = 'maintenance';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/sync_dolibarr_readmes.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/maintenance/sync_dolibarr_readmes.php
* BRIEF: PHP wrapper for maintenance/sync_dolibarr_readmes.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'sync_dolibarr_readmes';
const SCRIPT_PATH = 'api/maintenance/sync_dolibarr_readmes.php';
const SCRIPT_PATH = 'maintenance/sync_dolibarr_readmes.php';
const SCRIPT_CATEGORY = 'maintenance';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/update_sha_hashes.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/maintenance/update_sha_hashes.php
* BRIEF: PHP wrapper for maintenance/update_sha_hashes.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'update_sha_hashes';
const SCRIPT_PATH = 'api/maintenance/update_sha_hashes.php';
const SCRIPT_PATH = 'maintenance/update_sha_hashes.php';
const SCRIPT_CATEGORY = 'maintenance';
/**
+2 -2
View File
@@ -12,13 +12,13 @@
* REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API
* PATH: /wrappers/update_version_from_readme.php
* VERSION: 04.06.00
* BRIEF: PHP wrapper for api/maintenance/update_version_from_readme.php
* BRIEF: PHP wrapper for maintenance/update_version_from_readme.php
*/
declare(strict_types=1);
const SCRIPT_NAME = 'update_version_from_readme';
const SCRIPT_PATH = 'api/maintenance/update_version_from_readme.php';
const SCRIPT_PATH = 'maintenance/update_version_from_readme.php';
const SCRIPT_CATEGORY = 'maintenance';
/**