Completed
Branch master (7de1a3)
by John
12:44
created
src/Dev/Command/GenerateResourceClassesCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/Dev/Test/ApiTestCase.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @codeCoverageIgnore
48 48
      *
49
-     * @param $swaggerPath
49
+     * @param string $swaggerPath
50 50
      *
51 51
      * @throws \InvalidArgumentException
52 52
      * @throws \org\bovigo\vfs\vfsStreamException
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
     /**
155 155
      * @param string     $path
156
-     * @param array      $method
156
+     * @param string      $method
157 157
      * @param array      $params
158 158
      * @param array|null $content
159 159
      *
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use org\bovigo\vfs\vfsStream;
16 16
 use org\bovigo\vfs\vfsStreamDirectory;
17 17
 use org\bovigo\vfs\vfsStreamWrapper;
18
-use Symfony\Component\HttpFoundation\Request;
19 18
 use Symfony\Component\HttpFoundation\Response;
20 19
 use Symfony\Component\Yaml\Yaml;
21 20
 
Please login to merge, or discard this patch.
src/Document/SwaggerDocument.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     }
47 47
 
48 48
     /**
49
-     * @return array
49
+     * @return \ArrayObject
50 50
      */
51 51
     public function getDefinition()
52 52
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/Serializer/SerializerAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     /**
70 70
      * Deserializes data into the given type.
71 71
      *
72
-     * @param mixed                      $data
72
+     * @param string                      $data
73 73
      * @param string                     $type
74 74
      * @param string                     $format
75 75
      * @param SerializationContext|array $context
Please login to merge, or discard this patch.
src/Tests/Functional/PetStore/PetStoreBundle.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 class PetStoreBundle extends Bundle
21 21
 {
22 22
     /**
23
-     * @return ExtensionInterface
23
+     * @return boolean
24 24
      */
25 25
     public function getContainerExtension()
26 26
     {
Please login to merge, or discard this patch.
Request/ContentDecoder/ContentDecoderJmsSerializerCompatibilityTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 namespace KleijnWeb\SwaggerBundle\Tests\Request\ContentDecoder;
10 10
 
11 11
 use JMS\Serializer\Serializer;
12
-use JMS\Serializer\SerializerBuilder;
13 12
 use KleijnWeb\SwaggerBundle\Request\ContentDecoder;
14 13
 use KleijnWeb\SwaggerBundle\Serializer\JmsSerializerFactory;
15 14
 use KleijnWeb\SwaggerBundle\Serializer\SerializationTypeResolver;
Please login to merge, or discard this patch.
src/Tests/EventListener/ExceptionListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
             $logger
186 186
                 ->expects($this->once())
187 187
                 ->method($this->anything())
188
-                ->with($this->callback(function ($message) use (&$logref) {
188
+                ->with($this->callback(function($message) use (&$logref) {
189 189
                     $matches = [];
190 190
                     if (preg_match('/logref ([a-z0-9]*)/', $message, $matches)) {
191 191
                         $logref = $matches[1];
Please login to merge, or discard this patch.
src/Tests/Routing/SwaggerRouteLoaderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
 
244 244
         $definitionPaths = array_keys($pathDefinitions);
245 245
         sort($definitionPaths);
246
-        $routePaths = array_map(function ($route) {
246
+        $routePaths = array_map(function($route) {
247 247
             return $route->getPath();
248 248
         }, $routes->getIterator()->getArrayCopy());
249 249
         sort($routePaths);
Please login to merge, or discard this patch.
src/Tests/Request/RequestCoercerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $this->contentDecoderMock
33 33
             ->expects($this->any())
34 34
             ->method('decodeContent')
35
-            ->willReturnCallback(function (Request $request) {
35
+            ->willReturnCallback(function(Request $request) {
36 36
                 return json_decode($request->getContent());
37 37
             });
38 38
     }
Please login to merge, or discard this patch.