(array $responseData)
| 291 | } |
| 292 | |
| 293 | private function getGithubErrorMessage(array $responseData): string { |
| 294 | if (isset($responseData['message']) && is_string($responseData['message'])) { |
| 295 | return $responseData['message']; |
| 296 | } |
| 297 | |
| 298 | return ''; |
| 299 | } |
| 300 | |
| 301 | private function buildPackageUrl(array $option): string { |
| 302 | return 'https://api.github.com/orgs/' . rawurlencode($option['user']) . '/packages/container/' . rawurlencode($option['repository']); |