Completed
Push — master ( f0fa18...b24fdb )
by John
20:29
created
src/Tests/Functional/ApiTestCaseTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 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
  *
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public static function setUpBeforeClass()
30 30
     {
31
-        static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml');
31
+        static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml');
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
src/Tests/Functional/BasicPetStoreApiTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 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
  *
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public static function setUpBeforeClass()
29 29
     {
30
-        static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml');
30
+        static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml');
31 31
     }
32 32
 
33 33
     /**
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $id = rand();
65 65
 
66
-        $responseData = $this->get('/v2/pet/' . $id);
66
+        $responseData = $this->get('/v2/pet/'.$id);
67 67
 
68 68
         $this->assertSame($id, $responseData->id);
69 69
     }
Please login to merge, or discard this patch.
src/Tests/Functional/GenericDataApiTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 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
  *
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public static function setUpBeforeClass()
29 29
     {
30
-        static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/data.yml');
30
+        static::initSchemaManager(__DIR__.'/PetStore/app/swagger/data.yml');
31 31
     }
32 32
 
33 33
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function canFindByCriteria()
67 67
     {
68
-        $criteria     = [
68
+        $criteria = [
69 69
             (object)[
70 70
                 'fieldName' => 'x',
71 71
                 'operator'  => 'eq',
Please login to merge, or discard this patch.
src/Tests/Functional/JsonDataApiTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 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
  *
@@ -30,6 +30,6 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function canInitSchemaManager()
32 32
     {
33
-        static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/data.json');
33
+        static::initSchemaManager(__DIR__.'/PetStore/app/swagger/data.json');
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/Tests/Functional/SerializationPetStoreApiTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 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
  *
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public static function setUpBeforeClass()
32 32
     {
33
-        static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml');
33
+        static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml');
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
src/Tests/Functional/VndParameterValidationErrorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 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
  *
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public static function setUpBeforeClass()
32 32
     {
33
-        static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml');
33
+        static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml');
34 34
     }
35 35
 
36 36
     /**
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         } catch (ApiResponseErrorException $e) {
82 82
             $error    = Hal::fromJson($e->getJson(), 10);
83 83
             $resource = $error->getFirstResource('errors');
84
-            $specLink = $url . '#/paths/~1pet~1findByStatus/get/parameters/0/body/properties/quantity';
84
+            $specLink = $url.'#/paths/~1pet~1findByStatus/get/parameters/0/body/properties/quantity';
85 85
             $this->assertSame($specLink, $resource->getUri());
86 86
 
87 87
             return;
Please login to merge, or discard this patch.
src/Response/ResponseFactory.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/Response/VndErrorResponse.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/DependencyInjection/KleijnWebSwaggerExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 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
  *
@@ -25,14 +25,14 @@  discard block
 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']);
32 32
         $container->setParameter('swagger.serializer.namespace', $config['serializer']['namespace']);
33 33
 
34 34
         $serializerType = $config['serializer']['type'];
35
-        $container->setAlias('swagger.serializer.target', 'swagger.serializer.' . $serializerType);
35
+        $container->setAlias('swagger.serializer.target', 'swagger.serializer.'.$serializerType);
36 36
 
37 37
         if ($serializerType !== 'array') {
38 38
             $resolverDefinition = $container->getDefinition('swagger.request.processor.content_decoder');
Please login to merge, or discard this patch.