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 | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | 2 | public function indexAction($schemaName = null) |
|
| 10 | { |
||
| 11 | 2 | if (null === $schemaName) { |
|
| 12 | 1 | $endpoint = $this->generateUrl('overblog_graphql_endpoint'); |
|
| 13 | } else { |
||
| 14 | 1 | $endpoint = $this->generateUrl('overblog_graphql_multiple_endpoint', ['schemaName' => $schemaName]); |
|
| 15 | } |
||
| 16 | |||
| 17 | 2 | return $this->render( |
|
| 18 | 2 | $this->getParameter('overblog_graphql.graphiql_template'), |
|
| 19 | [ |
||
| 20 | 2 | 'endpoint' => $endpoint, |
|
| 21 | 'versions' => [ |
||
| 22 | 2 | 'graphiql' => $this->getParameter('overblog_graphql.versions.graphiql'), |
|
| 23 | 2 | 'react' => $this->getParameter('overblog_graphql.versions.react'), |
|
| 24 | 2 | 'fetch' => $this->getParameter('overblog_graphql.versions.fetch'), |
|
| 25 | ], |
||
| 26 | ] |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |