(array $responseData)
| 304 | } |
| 305 | |
| 306 | private function getGithubErrorMessage(array $responseData): string { |
| 307 | if (isset($responseData['message']) && is_string($responseData['message'])) { |
| 308 | return $responseData['message']; |
| 309 | } |
| 310 | |
| 311 | return ''; |
| 312 | } |
| 313 | |
| 314 | private function buildPackageUrl(array $option): string { |
| 315 | return 'https://api.github.com/orgs/' . rawurlencode($option['user']) . '/packages/container/' . rawurlencode($option['repository']); |