We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0116 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 59 | public function execute(Schema $schema, $requestString, $rootValue = null, $contextValue = null, $variableValues = null, $operationName = null) |
|
| 18 | { |
||
| 19 | 59 | $args = func_get_args(); |
|
| 20 | |||
| 21 | 59 | if (null === $this->promiseAdapter) { |
|
| 22 | $method = 'executeQuery'; |
||
| 23 | } else { |
||
| 24 | 59 | array_unshift($args, $this->promiseAdapter); |
|
| 25 | 59 | $method = 'promiseToExecute'; |
|
| 26 | } |
||
| 27 | |||
| 28 | 59 | return call_user_func_array(sprintf('\%s::%s', GraphQL::class, $method), $args); |
|
| 29 | } |
||
| 30 | |||
| 47 |