Public Access
Merge pull request 'fix: PHPStan level 3 - 12 return type errors fixed' (#123) from dev into main
Generic: Repo Health / Site Health (push) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Universal: Cascade Main → Dev / Cascade main → branches (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 5: Template Integrity (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Has been cancelled
Platform: moko-platform CI / Gate 4: Governance (push) Has been cancelled
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Has been cancelled
Platform: moko-platform CI / CI Summary (push) Has been cancelled
Generic: Repo Health / Site Health (push) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Universal: Cascade Main → Dev / Cascade main → branches (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 5: Template Integrity (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Has been cancelled
Platform: moko-platform CI / Gate 4: Governance (push) Has been cancelled
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Has been cancelled
Platform: moko-platform CI / CI Summary (push) Has been cancelled
This commit was merged in pull request #123.
This commit is contained in:
@@ -405,7 +405,7 @@ class GitHubAdapter implements GitPlatformAdapter
|
|||||||
$page++;
|
$page++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $all;
|
return array_values($all);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ──────────────────────────────────────────────
|
// ──────────────────────────────────────────────
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ interface GitPlatformAdapter
|
|||||||
/**
|
/**
|
||||||
* List all branches in a repository.
|
* List all branches in a repository.
|
||||||
*
|
*
|
||||||
* @return array<int, array<string, mixed>>
|
* @return array<mixed>
|
||||||
*/
|
*/
|
||||||
public function listBranches(string $org, string $repo): array;
|
public function listBranches(string $org, string $repo): array;
|
||||||
|
|
||||||
@@ -258,7 +258,7 @@ interface GitPlatformAdapter
|
|||||||
* @param string $org Organization name
|
* @param string $org Organization name
|
||||||
* @param string $repo Repository name
|
* @param string $repo Repository name
|
||||||
* @param array<string, mixed> $filters Filters (state, head, base, sort, direction)
|
* @param array<string, mixed> $filters Filters (state, head, base, sort, direction)
|
||||||
* @return array<int, array<string, mixed>> Pull request list
|
* @return array<mixed> Pull request list
|
||||||
*/
|
*/
|
||||||
public function listPullRequests(string $org, string $repo, array $filters = []): array;
|
public function listPullRequests(string $org, string $repo, array $filters = []): array;
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ interface GitPlatformAdapter
|
|||||||
* @param string $org Organization name
|
* @param string $org Organization name
|
||||||
* @param string $repo Repository name
|
* @param string $repo Repository name
|
||||||
* @param array<string, mixed> $filters Filters (state, labels, assignee, etc.)
|
* @param array<string, mixed> $filters Filters (state, labels, assignee, etc.)
|
||||||
* @return array<int, array<string, mixed>> Issue list
|
* @return array<mixed> Issue list
|
||||||
*/
|
*/
|
||||||
public function listIssues(string $org, string $repo, array $filters = []): array;
|
public function listIssues(string $org, string $repo, array $filters = []): array;
|
||||||
|
|
||||||
@@ -357,7 +357,7 @@ interface GitPlatformAdapter
|
|||||||
*
|
*
|
||||||
* @param string $org Organization name
|
* @param string $org Organization name
|
||||||
* @param string $repo Repository name
|
* @param string $repo Repository name
|
||||||
* @return array<int, array{name: string, color: string, description: string}> Label list
|
* @return array<mixed> Label list
|
||||||
*/
|
*/
|
||||||
public function listLabels(string $org, string $repo): array;
|
public function listLabels(string $org, string $repo): array;
|
||||||
|
|
||||||
@@ -406,7 +406,7 @@ interface GitPlatformAdapter
|
|||||||
*
|
*
|
||||||
* @param string $org Organization name
|
* @param string $org Organization name
|
||||||
* @param string $repo Repository name
|
* @param string $repo Repository name
|
||||||
* @return array<int, array<string, mixed>> Protection rules
|
* @return array<mixed> Protection rules
|
||||||
*/
|
*/
|
||||||
public function listBranchProtections(string $org, string $repo): array;
|
public function listBranchProtections(string $org, string $repo): array;
|
||||||
|
|
||||||
@@ -445,7 +445,7 @@ interface GitPlatformAdapter
|
|||||||
* @param string $endpoint API endpoint path
|
* @param string $endpoint API endpoint path
|
||||||
* @param array<string, mixed> $params Query parameters
|
* @param array<string, mixed> $params Query parameters
|
||||||
* @param int $perPage Items per page (platform default if 0)
|
* @param int $perPage Items per page (platform default if 0)
|
||||||
* @return array<int, array<string, mixed>> All items across all pages
|
* @return array<mixed> All items across all pages
|
||||||
*/
|
*/
|
||||||
public function paginateAll(string $endpoint, array $params = [], int $perPage = 100): array;
|
public function paginateAll(string $endpoint, array $params = [], int $perPage = 100): array;
|
||||||
|
|
||||||
|
|||||||
@@ -468,7 +468,7 @@ class MokoGiteaAdapter implements GitPlatformAdapter
|
|||||||
$page++;
|
$page++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $all;
|
return array_values($all);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ──────────────────────────────────────────────
|
// ──────────────────────────────────────────────
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
# PHPStan configuration for moko-platform projects
|
# PHPStan configuration for moko-platform projects
|
||||||
parameters:
|
parameters:
|
||||||
level: 2
|
level: 3
|
||||||
paths:
|
paths:
|
||||||
- lib
|
- lib
|
||||||
- validate
|
- validate
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ final class CheckFileIntegrity
|
|||||||
private bool $verbose = false;
|
private bool $verbose = false;
|
||||||
private bool $jsonOutput = false;
|
private bool $jsonOutput = false;
|
||||||
|
|
||||||
/** @var array{host: string, port: int, user: string, identity: string} */
|
/** @var array<string, mixed> */
|
||||||
private array $sftpConfig = [];
|
private array $sftpConfig = [];
|
||||||
|
|
||||||
public function run(): int
|
public function run(): int
|
||||||
|
|||||||
Reference in New Issue
Block a user