@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Symfony\Component\Console\Input\InputOption; |
| 15 | 15 | use Symfony\Component\Console\Input\InputInterface; |
| 16 | 16 | use Symfony\Component\Console\Output\OutputInterface; |
| 17 | -use Symfony\Component\Finder\Finder; |
|
| 18 | 17 | use Symfony\Component\HttpKernel\KernelInterface; |
| 19 | 18 | |
| 20 | 19 | /** |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * @return array |
|
| 49 | + * @return \ArrayObject |
|
| 50 | 50 | */ |
| 51 | 51 | public function getDefinition() |
| 52 | 52 | { |
@@ -8,8 +8,6 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace KleijnWeb\SwaggerBundle\Document; |
| 10 | 10 | |
| 11 | -use JsonSchema\RefResolver; |
|
| 12 | -use JsonSchema\Uri\UriRetriever; |
|
| 13 | 11 | use Symfony\Component\Yaml\Yaml; |
| 14 | 12 | |
| 15 | 13 | /** |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function retrieve($uri) |
| 30 | 30 | { |
| 31 | - set_error_handler(function () use ($uri) { |
|
| 31 | + set_error_handler(function() use ($uri) { |
|
| 32 | 32 | throw new ResourceNotFoundException('Schema not found at ' . $uri); |
| 33 | 33 | }); |
| 34 | 34 | $response = file_get_contents($uri); |