Merge pull request 'fix: PHPStan level 5 - fix metrics increment bug' (#127) from dev into main
Universal: Cascade Main → Dev / Cascade main → branches (push) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Generic: Repo Health / Site Health (push) Has been cancelled
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Platform: moko-platform CI / Gate 1: Code Quality (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Has been cancelled
Platform: moko-platform CI / Gate 5: Template Integrity (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Has been cancelled
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Has been cancelled
Platform: moko-platform CI / Gate 4: Governance (push) Has been cancelled
Platform: moko-platform CI / CI Summary (push) Has been cancelled

This commit was merged in pull request #127.
This commit is contained in:
2026-05-26 03:43:42 +00:00
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ class BulkSync extends CliFramework
} }
} }
return array_values(array_merge($priority, $rest)); return array_merge($priority, $rest);
} }
/** /**
+3 -3
View File
@@ -1508,16 +1508,16 @@ HCL;
if ($updated) { if ($updated) {
$results['success']++; $results['success']++;
$this->metrics->increment('repos_updated_total', ['status' => 'success']); $this->metrics->increment('repos_updated_total', 1, ['status' => 'success']);
$results['repositories'][$repoName] = 'updated'; $results['repositories'][$repoName] = 'updated';
} else { } else {
$results['skipped']++; $results['skipped']++;
$this->metrics->increment('repos_updated_total', ['status' => 'skipped']); $this->metrics->increment('repos_updated_total', 1, ['status' => 'skipped']);
$results['repositories'][$repoName] = 'skipped'; $results['repositories'][$repoName] = 'skipped';
} }
} catch (Exception $e) { } catch (Exception $e) {
$results['failed']++; $results['failed']++;
$this->metrics->increment('repos_updated_total', ['status' => 'failed']); $this->metrics->increment('repos_updated_total', 1, ['status' => 'failed']);
$results['repositories'][$repoName] = 'failed: ' . $e->getMessage(); $results['repositories'][$repoName] = 'failed: ' . $e->getMessage();
} }
+1 -1
View File
@@ -6,7 +6,7 @@
# PHPStan configuration for moko-platform projects # PHPStan configuration for moko-platform projects
parameters: parameters:
level: 4 level: 5
paths: paths:
- lib - lib
- validate - validate