Completed
Pull Request — master (#58)
by John
02:57
created
src/Serializer/SerializerAdapter.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /*
4 4
  * This file is part of the KleijnWeb\SwaggerBundle package.
5 5
  *
Please login to merge, or discard this patch.
src/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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /*
4 4
  * This file is part of the KleijnWeb\SwaggerBundle package.
5 5
  *
Please login to merge, or discard this patch.
src/Routing/SwaggerRouteLoader.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /*
4 4
  * This file is part of the KleijnWeb\SwaggerBundle package.
5 5
  *
Please login to merge, or discard this patch.
src/Tests/Functional/PetStore/Controller/UserController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * @param string $username
18 18
      * @param string $password
19 19
      *
20
-     * @return array
20
+     * @return string
21 21
      */
22 22
     public function loginUser($username, $password)
23 23
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /*
4 4
  * This file is part of the KleijnWeb\SwaggerBundle package.
5 5
  *
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
                                 ->scalarNode('base_url')->defaultValue('/')->end()
51 51
                                 ->scalarNode('host')->defaultNull()->end()
52 52
                             ->end()
53
-                         ->end()
53
+                            ->end()
54 54
                     ->end()
55 55
                 ->end()
56 56
             ->end()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /*
4 4
  * This file is part of the KleijnWeb\SwaggerBundle package.
5 5
  *
Please login to merge, or discard this patch.
src/Document/Exception/InvalidReferenceException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /*
4 4
  * This file is part of the KleijnWeb\SwaggerBundle package.
5 5
  *
Please login to merge, or discard this patch.
src/Document/Exception/ResourceNotReadableException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /*
4 4
  * This file is part of the KleijnWeb\SwaggerBundle package.
5 5
  *
Please login to merge, or discard this patch.
src/Document/ParameterRefBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /*
4 4
  * This file is part of the KleijnWeb\SwaggerBundle package.
5 5
  *
Please login to merge, or discard this patch.
src/Document/RefResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /*
4 4
  * This file is part of the KleijnWeb\SwaggerBundle package.
5 5
  *
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     {
202 202
         $exception = new ResourceNotReadableException("Failed reading '$uri'");
203 203
 
204
-        set_error_handler(function () use ($exception) {
204
+        set_error_handler(function() use ($exception) {
205 205
             throw $exception;
206 206
         });
207 207
         $response = file_get_contents($uri);
Please login to merge, or discard this patch.