Completed
Pull Request — master (#79)
by
unknown
03:37
created
src/Tests/Functional/GenericDataApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 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
     /**
Please login to merge, or discard this patch.
src/Tests/Functional/BasicPetStoreApiTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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/Routing/SwaggerRouteLoaderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             ->willReturn([]);
77 77
 
78 78
         $this->loader->load(self::DOCUMENT_PATH);
79
-        $this->loader->load(self::DOCUMENT_PATH . '2');
79
+        $this->loader->load(self::DOCUMENT_PATH.'2');
80 80
     }
81 81
 
82 82
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             ->willReturn($pathDefinitions);
97 97
 
98 98
         $routes1 = $this->loader->load(self::DOCUMENT_PATH);
99
-        $routes2 = $this->loader->load(self::DOCUMENT_PATH . '2');
99
+        $routes2 = $this->loader->load(self::DOCUMENT_PATH.'2');
100 100
         $this->assertSame(count($routes1), count(array_diff_key($routes1->all(), $routes2->all())));
101 101
     }
102 102
 
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 
349 349
         $definitionPaths = array_keys((array)$pathDefinitions);
350 350
         sort($definitionPaths);
351
-        $routePaths = array_map(function ($route) {
351
+        $routePaths = array_map(function($route) {
352 352
             return $route->getPath();
353 353
         }, $routes->getIterator()->getArrayCopy());
354 354
         sort($routePaths);
Please login to merge, or discard this patch.
src/Tests/Functional/SerializationPetStoreApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 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/Serializer/SerializationTypeResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function __construct($resourceNamespaces = null)
23 23
     {
24
-        if(!is_array($resourceNamespaces)) {
24
+        if (!is_array($resourceNamespaces)) {
25 25
             $resourceNamespaces = [$resourceNamespaces];
26 26
         }
27 27
         $this->resourceNamespaces = $resourceNamespaces;
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     protected function qualify($resourceNamespace, $typeName)
54 54
     {
55
-        return ltrim($resourceNamespace . '\\' . $typeName, '\\');
55
+        return ltrim($resourceNamespace.'\\'.$typeName, '\\');
56 56
     }
57 57
 
58 58
     /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                 $resourceFullNamespace = $this->qualify($resourceNamespace, $reference);
81 81
                 if (class_exists($resourceFullNamespace)) {
82 82
                     if ($arrayItems !== null) {
83
-                        return 'array<' . $resourceFullNamespace . '>';
83
+                        return 'array<'.$resourceFullNamespace.'>';
84 84
                     }
85 85
 
86 86
                     return $resourceFullNamespace;
Please login to merge, or discard this patch.