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