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 | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function create($queryAlias = null, $mutationAlias = null, $subscriptionAlias = null) |
||
| 30 | { |
||
| 31 | $query = $this->typeResolver->resolve($queryAlias); |
||
| 32 | $mutation = $this->typeResolver->resolve($mutationAlias); |
||
| 33 | $subscription = $this->typeResolver->resolve($subscriptionAlias); |
||
| 34 | |||
| 35 | $schema = new Schema([ |
||
| 36 | 'query' => $query, |
||
| 37 | 'mutation' => $mutation, |
||
| 38 | 'subscription' => $subscription, |
||
| 39 | 'typeLoader' => [$this->typeResolver, 'resolve'], |
||
| 40 | 'types' => [$this->typeResolver, 'getSolutions'], |
||
| 41 | ]); |
||
| 42 | if ($this->enableValidation) { |
||
| 43 | $schema->assertValid(); |
||
| 44 | } |
||
| 45 | |||
| 46 | return $schema; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |