@@ -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; |
@@ -206,7 +206,7 @@ |
||
206 | 206 | |
207 | 207 | $result->setErrorFormatter([$formatter, 'format']); |
208 | 208 | $result->setErrorsHandler( |
209 | - function ($errors) use ($handler, $formatter, $debugFlags) { |
|
209 | + function($errors) use ($handler, $formatter, $debugFlags) { |
|
210 | 210 | return $handler->handle($errors, $formatter, $debugFlags); |
211 | 211 | } |
212 | 212 | ); |