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