@@ -90,7 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | $operationDefinition = [ |
| 92 | 92 | 'parameters' => (object)[ |
| 93 | - (object) [ |
|
| 93 | + (object)[ |
|
| 94 | 94 | 'name' => 'myContent', |
| 95 | 95 | 'in' => 'body' |
| 96 | 96 | ] |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | /** |
| 35 | 35 | * @param string $string |
| 36 | 36 | * |
| 37 | - * @return object |
|
| 37 | + * @return \stdClass|null |
|
| 38 | 38 | */ |
| 39 | 39 | public function parse($string) |
| 40 | 40 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
| 42 | 42 | * |
| 43 | - * @param mixed $resource |
|
| 43 | + * @param string $resource |
|
| 44 | 44 | * @param null $type |
| 45 | 45 | * |
| 46 | 46 | * @return RouteCollection |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | /** |
| 126 | 126 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
| 127 | 127 | * |
| 128 | - * @param mixed $resource |
|
| 128 | + * @param string $resource |
|
| 129 | 129 | * @param string $type |
| 130 | 130 | * |
| 131 | 131 | * @return bool |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use Symfony\Component\Config\Loader\Loader; |
| 13 | 13 | use Symfony\Component\Routing\Route; |
| 14 | 14 | use Symfony\Component\Routing\RouteCollection; |
| 15 | -use Symfony\Component\Yaml\Yaml; |
|
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * @author John Kleijn <[email protected]> |
@@ -10,9 +10,6 @@ |
||
| 10 | 10 | |
| 11 | 11 | use KleijnWeb\SwaggerBundle\Document\DocumentRepository; |
| 12 | 12 | use KleijnWeb\SwaggerBundle\Document\SwaggerDocument; |
| 13 | -use org\bovigo\vfs\vfsStream; |
|
| 14 | -use org\bovigo\vfs\vfsStreamDirectory; |
|
| 15 | -use org\bovigo\vfs\vfsStreamWrapper; |
|
| 16 | 13 | |
| 17 | 14 | /** |
| 18 | 15 | * @author John Kleijn <[email protected]> |
@@ -203,7 +203,7 @@ |
||
| 203 | 203 | $logger |
| 204 | 204 | ->expects($this->once()) |
| 205 | 205 | ->method('log') |
| 206 | - ->with($this->anything(), $this->callback(function ($message) use (&$logref) { |
|
| 206 | + ->with($this->anything(), $this->callback(function($message) use (&$logref) { |
|
| 207 | 207 | $matches = []; |
| 208 | 208 | if (preg_match('/logref ([a-z0-9]*)/', $message, $matches)) { |
| 209 | 209 | $logref = $matches[1]; |