@@ -46,9 +46,9 @@ |
||
46 | 46 | |
47 | 47 | $styleGuide = new TableStyle(); |
48 | 48 | $styleGuide->setHorizontalBorderChar('') |
49 | - ->setVerticalBorderChar('|') |
|
50 | - ->setCrossingChar(' ') |
|
51 | - ->setCellHeaderFormat('%s'); |
|
49 | + ->setVerticalBorderChar('|') |
|
50 | + ->setCrossingChar(' ') |
|
51 | + ->setCellHeaderFormat('%s'); |
|
52 | 52 | |
53 | 53 | $table->setStyle($styleGuide); |
54 | 54 | $table->setRows($rows); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | $table = new Table($output); |
37 | 37 | $table->setHeaders(['Code', 'Text', 'Description']) |
38 | - ->setRows($rows); |
|
38 | + ->setRows($rows); |
|
39 | 39 | $table->render(); |
40 | 40 | } |
41 | 41 | } |
@@ -49,9 +49,9 @@ |
||
49 | 49 | protected function configure() |
50 | 50 | { |
51 | 51 | $this->setName('graphql:error:list') |
52 | - ->setDescription('View, export and control your API errors.') |
|
53 | - ->addOption('exporter', 'x', InputOption::VALUE_REQUIRED, 'Exporter to user', 'console') |
|
54 | - ->addOption('output', 'o', InputOption::VALUE_REQUIRED, 'Name of the file to save the error list, e.i. error_codes.md'); |
|
52 | + ->setDescription('View, export and control your API errors.') |
|
53 | + ->addOption('exporter', 'x', InputOption::VALUE_REQUIRED, 'Exporter to user', 'console') |
|
54 | + ->addOption('output', 'o', InputOption::VALUE_REQUIRED, 'Name of the file to save the error list, e.i. error_codes.md'); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | protected function execute(InputInterface $input, OutputInterface $output) |
61 | 61 | { |
62 | - $this->errorManager->clear();//force reload |
|
62 | + $this->errorManager->clear(); //force reload |
|
63 | 63 | $errors = $this->errorManager->all(); |
64 | 64 | |
65 | 65 | $result = $output; |
@@ -183,7 +183,7 @@ |
||
183 | 183 | |
184 | 184 | $result->setErrorFormatter([$formatter, 'format']); |
185 | 185 | $result->setErrorsHandler( |
186 | - function ($errors) use ($handler, $formatter) { |
|
186 | + function($errors) use ($handler, $formatter) { |
|
187 | 187 | return $handler->handle($errors, $formatter, $this->getDebugMode()); |
188 | 188 | } |
189 | 189 | ); |
@@ -84,7 +84,7 @@ |
||
84 | 84 | $resolver->setDefault('alternative_id', null); |
85 | 85 | $resolver->setNormalizer( |
86 | 86 | 'alternative_id', |
87 | - function (Options $options, $value) { |
|
87 | + function(Options $options, $value) { |
|
88 | 88 | if ($value && !$options->offsetGet('class')) { |
89 | 89 | throw new InvalidArgumentException('Can\'t set the option "alternative_id" without define a valid "class"'); |
90 | 90 | } |
@@ -92,21 +92,21 @@ |
||
92 | 92 | if ($config['graphiql']['authentication']['provider']['lexik_jwt']['enabled'] ?? false) { |
93 | 93 | $providerName = sprintf('security.user.provider.concrete.%s', $config['graphiql']['authentication']['provider']['lexik_jwt']['user_provider']); |
94 | 94 | $container->getDefinition(LexikJWTGraphiQLAuthenticator::class) |
95 | - ->setArgument(1, new Reference($providerName)); |
|
95 | + ->setArgument(1, new Reference($providerName)); |
|
96 | 96 | } else { |
97 | 97 | $container->removeDefinition(LexikJWTGraphiQLAuthenticator::class); |
98 | 98 | } |
99 | 99 | |
100 | 100 | //build the ID encoder manager with configured encoder |
101 | 101 | $container->getDefinition(IDEncoderManager::class) |
102 | - ->setPublic(true) |
|
103 | - ->replaceArgument(0, $container->getDefinition($config['id_encoder'])); |
|
102 | + ->setPublic(true) |
|
103 | + ->replaceArgument(0, $container->getDefinition($config['id_encoder'])); |
|
104 | 104 | |
105 | 105 | |
106 | 106 | //endpoint definition |
107 | 107 | $container->getDefinition(GraphQLEndpointController::class) |
108 | - ->addMethodCall('setErrorFormatter', [$container->getDefinition($config['error_handling']['formatter'])]) |
|
109 | - ->addMethodCall('setErrorHandler', [$container->getDefinition($config['error_handling']['handler'])]); |
|
108 | + ->addMethodCall('setErrorFormatter', [$container->getDefinition($config['error_handling']['formatter'])]) |
|
109 | + ->addMethodCall('setErrorHandler', [$container->getDefinition($config['error_handling']['handler'])]); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $container->setParameter('graphql.namespaces', $config['namespaces'] ?? []); |
49 | 49 | $container->setParameter('graphql.cors_config', $config['cors'] ?? []); |
50 | 50 | $container->setParameter('graphql.graphiql', $config['graphiql'] ?? []); |
51 | - $container->setParameter('graphql.graphiql_auth_jwt', $config['graphiql']['authentication']['provider']['jwt'] ?? []);//DEPRECATED |
|
51 | + $container->setParameter('graphql.graphiql_auth_jwt', $config['graphiql']['authentication']['provider']['jwt'] ?? []); //DEPRECATED |
|
52 | 52 | $container->setParameter('graphql.graphiql_auth_lexik_jwt', $config['graphiql']['authentication']['provider']['lexik_jwt'] ?? []); |
53 | 53 | $container->setParameter('graphql.security.validation_rules', $config['security']['validation_rules'] ?? []); |
54 | 54 |
@@ -78,8 +78,8 @@ |
||
78 | 78 | $repo = $this->registry->getRepository($class); |
79 | 79 | $qb = $repo->createQueryBuilder('o', 'o.id'); |
80 | 80 | $entities = $qb->where($qb->expr()->in('o.id', array_values($ids))) |
81 | - ->getQuery() |
|
82 | - ->getResult(); |
|
81 | + ->getQuery() |
|
82 | + ->getResult(); |
|
83 | 83 | foreach ($entities as $entity) { |
84 | 84 | if ($entity instanceof NodeInterface) { |
85 | 85 | self::$deferred[$class][$entity->getId()] = $entity; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function __construct(string $endpoint, array $registeredEndpoints) |
19 | 19 | { |
20 | - $message = sprintf( |
|
20 | + $message = sprintf( |
|
21 | 21 | '"%s" is not a valid configured endpoint, use one of the following endpoints: [%s]', |
22 | 22 | $endpoint, |
23 | 23 | implode($registeredEndpoints, ',') |
@@ -58,7 +58,7 @@ |
||
58 | 58 | |
59 | 59 | $event->setValue( |
60 | 60 | new Deferred( |
61 | - function () use ($value) { |
|
61 | + function() use ($value) { |
|
62 | 62 | $this->deferredBuffer->loadBuffer(); |
63 | 63 | |
64 | 64 | return $this->deferredBuffer->getLoadedEntity($value); |