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