Completed
Push — master ( aa6f89...863f7f )
by John
08:07
created
src/DependencyInjection/KleijnWebSwaggerExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function load(array $configs, ContainerBuilder $container)
26 26
     {
27 27
         $config = $this->processConfiguration(new Configuration(), $configs);
28
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
28
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
29 29
         $loader->load('services.yml');
30 30
 
31 31
         $container->setParameter('swagger.document.base_path', $config['document']['base_path']);
Please login to merge, or discard this patch.
src/Routing/OpenApiRouteLoader.php 2 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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                     $router,
91 91
                     $routerController
92 92
                 );
93
-                $defaults      = [
93
+                $defaults = [
94 94
                     '_controller'               => $controllerKey,
95 95
                     RequestMeta::ATTRIBUTE_URI  => $resource,
96 96
                     RequestMeta::ATTRIBUTE_PATH => $pathItem->getPath()
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                         if ($pattern = $schema->getPattern()) {
129 129
                             $requirements[$parameter->getName()] = $pattern;
130 130
                         } elseif ($enum = $schema->getEnum()) {
131
-                            $requirements[$parameter->getName()] = '(' . implode('|', $enum) . ')';
131
+                            $requirements[$parameter->getName()] = '('.implode('|', $enum).')';
132 132
                         }
133 133
                         break;
134 134
                     default:
Please login to merge, or discard this patch.
src/Test/ApiTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $this->assertSame(
165 165
                 JSON_ERROR_NONE,
166 166
                 json_last_error(),
167
-                "Not valid JSON: " . json_last_error_msg() . "(" . var_export($content, true) . ")"
167
+                "Not valid JSON: ".json_last_error_msg()."(".var_export($content, true).")"
168 168
             );
169 169
         }
170 170
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     {
200 200
         $uri = $path;
201 201
         if (count($params)) {
202
-            $uri = $path . '?' . http_build_query($params);
202
+            $uri = $path.'?'.http_build_query($params);
203 203
         }
204 204
 
205 205
         return $uri;
Please login to merge, or discard this patch.
src/Test/ApiTestClient.php 1 patch
Doc Comments   +7 added lines, -7 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
      */
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      * The origin response is the response instance that is returned
261 261
      * by the code that handles requests.
262 262
      *
263
-     * @return object|null A response instance
263
+     * @return Response|null A response instance
264 264
      *
265 265
      * @see doRequest()
266 266
      *
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
      * The origin request is the request instance that is sent
290 290
      * to the code that handles requests.
291 291
      *
292
-     * @return object|null A Request instance
292
+     * @return \Symfony\Component\HttpFoundation\Request|null A Request instance
293 293
      *
294 294
      * @see doRequest()
295 295
      *
@@ -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.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             ->arrayNode('namespaces')->isRequired()
34 34
             ->beforeNormalization()
35 35
             ->ifString()
36
-            ->then(function ($v) {
36
+            ->then(function($v) {
37 37
                 return [$v];
38 38
             })
39 39
             ->end()
Please login to merge, or discard this patch.
tests/unit/EventListener/Request/RequestProcessorTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -303,7 +303,7 @@
 block discarded – undo
303 303
         {
304 304
             /**
305 305
              * @param array $attributes
306
-             * @param array $content
306
+             * @param string $content
307 307
              */
308 308
             public function __construct(array $attributes, $content)
309 309
             {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         $this->parametersAssemblerMock
159 159
             ->expects($this->once())
160 160
             ->method('assemble')
161
-            ->willReturnCallback(function (
161
+            ->willReturnCallback(function(
162 162
                 Operation $operation,
163 163
                 array $query,
164 164
                 array $attributes,
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $this->parametersAssemblerMock
197 197
             ->expects($this->once())
198 198
             ->method('assemble')
199
-            ->willReturnCallback(function (
199
+            ->willReturnCallback(function(
200 200
                 Operation $operation,
201 201
                 array $query,
202 202
                 array $attributes,
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             ->expects($this->once())
213 213
             ->method('hydrate')
214 214
             ->with($body, $this->isInstanceOf(Schema::class))
215
-            ->willReturnCallback(function () use ($dto) {
215
+            ->willReturnCallback(function() use ($dto) {
216 216
                 return $dto;
217 217
             });
218 218
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      */
297 297
     private function createProcessor(bool $useHydrator = false, $forcedValidationResult = true): RequestProcessor
298 298
     {
299
-        if(null !== $forcedValidationResult){
299
+        if (null !== $forcedValidationResult) {
300 300
             $this->validatorMock
301 301
                 ->expects($this->any())
302 302
                 ->method('validate')
Please login to merge, or discard this patch.
tests/functional/PetStore/app/TestKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
      */
26 26
     public function registerContainerConfiguration(LoaderInterface $loader)
27 27
     {
28
-        $loader->load(__DIR__ . '/config_' . $this->getEnvironment() . '.yml');
28
+        $loader->load(__DIR__.'/config_'.$this->getEnvironment().'.yml');
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
tests/functional/BasicPetStoreApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     {
60 60
         $id = rand();
61 61
 
62
-        $responseData = $this->get('/v2/pet/' . $id);
62
+        $responseData = $this->get('/v2/pet/'.$id);
63 63
 
64 64
         $this->assertSame($id, $responseData->id);
65 65
     }
Please login to merge, or discard this patch.
tests/functional/GenericDataApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      */
62 62
     public function canFindByCriteria()
63 63
     {
64
-        $criteria     = [
64
+        $criteria = [
65 65
             (object)[
66 66
                 'fieldName' => 'x',
67 67
                 'operator'  => 'eq',
Please login to merge, or discard this patch.