diff --git a/automation/bulk_sync.php b/automation/bulk_sync.php index 32f08bc..3e4e4e4 100755 --- a/automation/bulk_sync.php +++ b/automation/bulk_sync.php @@ -282,7 +282,7 @@ class BulkSync extends CliFramework } } - return array_values(array_merge($priority, $rest)); + return array_merge($priority, $rest); } /** diff --git a/lib/Enterprise/RepositorySynchronizer.php b/lib/Enterprise/RepositorySynchronizer.php index 8fdcf7f..195fe21 100644 --- a/lib/Enterprise/RepositorySynchronizer.php +++ b/lib/Enterprise/RepositorySynchronizer.php @@ -1508,16 +1508,16 @@ HCL; if ($updated) { $results['success']++; - $this->metrics->increment('repos_updated_total', ['status' => 'success']); + $this->metrics->increment('repos_updated_total', 1, ['status' => 'success']); $results['repositories'][$repoName] = 'updated'; } else { $results['skipped']++; - $this->metrics->increment('repos_updated_total', ['status' => 'skipped']); + $this->metrics->increment('repos_updated_total', 1, ['status' => 'skipped']); $results['repositories'][$repoName] = 'skipped'; } } catch (Exception $e) { $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(); } diff --git a/phpstan.neon b/phpstan.neon index 89aa56d..deb4e38 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,7 +6,7 @@ # PHPStan configuration for moko-platform projects parameters: - level: 4 + level: 5 paths: - lib - validate