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 | 2 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function execute(Schema $schema, $requestString, $rootValue = null, $contextValue = null, $variableValues = null, $operationName = null) |
||
| 29 | { |
||
| 30 | $args = func_get_args(); |
||
| 31 | |||
| 32 | if (null === $this->promiseAdapter) { |
||
| 33 | $method = 'executeQuery'; |
||
| 34 | } else { |
||
| 35 | array_unshift($args, $this->promiseAdapter); |
||
| 36 | $method = 'promiseToExecute'; |
||
| 37 | 59 | } |
|
| 38 | |||
| 39 | 59 | return call_user_func_array(sprintf('\%s::%s', GraphQL::class, $method), $args); |
|
| 40 | } |
||
| 41 | 59 | ||
| 58 |