Completed
Push — master ( f0fa18...b24fdb )
by John
20:29
created
src/Routing/SwaggerRouteLoader.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
43 43
      *
44
-     * @param mixed  $resource
44
+     * @param string  $resource
45 45
      * @param string $type
46 46
      *
47 47
      * @return bool
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
56 56
      *
57
-     * @param mixed $resource
57
+     * @param string $resource
58 58
      * @param null  $type
59 59
      *
60 60
      * @return RouteCollection
Please login to merge, or discard this 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\Routing;
10 10
 
11 11
 use KleijnWeb\SwaggerBundle\Document\DocumentRepository;
12
-use KleijnWeb\SwaggerBundle\Document\OperationObject;
13 12
 use KleijnWeb\SwaggerBundle\Document\SwaggerDocument;
14 13
 use Symfony\Component\Config\Loader\Loader;
15 14
 use Symfony\Component\Routing\Route;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     $router,
99 99
                     $routerController
100 100
                 );
101
-                $defaults      = [
101
+                $defaults = [
102 102
                     '_controller'   => $controllerKey,
103 103
                     '_definition'   => $resource,
104 104
                     '_swagger_path' => $path
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                             break;
141 141
                         }
142 142
                         if (isset($paramDefinition->enum)) {
143
-                            $requirements[$paramDefinition->name] = '(' .
143
+                            $requirements[$paramDefinition->name] = '('.
144 144
                                 implode('|', $paramDefinition->enum)
145 145
                                 . ')';
146 146
                             break;
Please login to merge, or discard this patch.
src/Test/ApiTestClient.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     /**
210 210
      * Returns the History instance.
211 211
      *
212
-     * @return History A History instance
212
+     * @return \Symfony\Component\BrowserKit\History A History instance
213 213
      *
214 214
      * @api
215 215
      */
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     /**
222 222
      * Returns the CookieJar instance.
223 223
      *
224
-     * @return CookieJar A CookieJar instance
224
+     * @return \Symfony\Component\BrowserKit\CookieJar A CookieJar instance
225 225
      *
226 226
      * @api
227 227
      */
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     /**
246 246
      * Returns the current BrowserKit Response instance.
247 247
      *
248
-     * @return Response|null A BrowserKit Response instance
248
+     * @return \Symfony\Component\BrowserKit\Response|null A BrowserKit Response instance
249 249
      *
250 250
      * @api
251 251
      */
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
      *
371 371
      * @param Request $request The BrowserKit Request to filter
372 372
      *
373
-     * @return object An origin request instance
373
+     * @return \Symfony\Component\HttpFoundation\Request An origin request instance
374 374
      */
375 375
     protected function filterRequest(Request $request)
376 376
     {
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
      *
383 383
      * @param object $response The origin response to filter
384 384
      *
385
-     * @return Response An BrowserKit Response instance
385
+     * @return \Symfony\Component\BrowserKit\Response An BrowserKit Response instance
386 386
      */
387 387
     protected function filterResponse($response)
388 388
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\SwaggerBundle package.
4 4
  *
Please login to merge, or discard this patch.
src/Test/ApiRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\SwaggerBundle package.
4 4
  *
Please login to merge, or discard this patch.
src/Request/RequestValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\SwaggerBundle package.
4 4
  *
Please login to merge, or discard this patch.
src/Request/RequestProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\SwaggerBundle package.
4 4
  *
Please login to merge, or discard this patch.
src/Request/RequestCoercer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\SwaggerBundle package.
4 4
  *
Please login to merge, or discard this patch.
src/Request/ParameterCoercer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\SwaggerBundle package.
4 4
  *
Please login to merge, or discard this patch.
src/Serializer/ArraySerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /*
3 3
  * This file is part of the KleijnWeb\SwaggerBundle package.
4 4
  *
Please login to merge, or discard this patch.
src/Serializer/SerializationTypeResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     protected function qualify(string $resourceNamespace, string $typeName): string
55 55
     {
56
-        return ltrim($resourceNamespace . '\\' . $typeName, '\\');
56
+        return ltrim($resourceNamespace.'\\'.$typeName, '\\');
57 57
     }
58 58
 
59 59
     /**
Please login to merge, or discard this patch.