We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 77-84 (lines=8) @@ | ||
| 74 | * |
|
| 75 | * @return string|null |
|
| 76 | */ |
|
| 77 | protected static function getGraphQLAlias($annotation) |
|
| 78 | { |
|
| 79 | if (array_key_exists('GraphQLAlias', $annotation) && !empty($annotation['GraphQLAlias']['name'])) { |
|
| 80 | return $annotation['GraphQLAlias']['name']; |
|
| 81 | } |
|
| 82 | ||
| 83 | return null; |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * Get the graphQL type |
|
| @@ 93-100 (lines=8) @@ | ||
| 90 | * |
|
| 91 | * @return string |
|
| 92 | */ |
|
| 93 | protected static function getGraphQLType($annotation) |
|
| 94 | { |
|
| 95 | if (array_key_exists('GraphQLType', $annotation) && !empty($annotation['GraphQLType']['type'])) { |
|
| 96 | return $annotation['GraphQLType']['type']; |
|
| 97 | } |
|
| 98 | ||
| 99 | return 'object'; |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * Format enum type |
|