Completed
Pull Request — master (#80)
by John
03:11
created
src/Tests/Functional/VndParameterValidationErrorTest.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/Serialize/Serializer/SwaggerSerializer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,18 +47,18 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function serialize($data): string
49 49
     {
50
-        $export = function ($object) use (&$export) {
50
+        $export = function($object) use (&$export) {
51 51
             if (!is_object($object)) {
52 52
                 return $object;
53 53
             }
54 54
             $class  = get_class($object);
55 55
             $data   = (array)$object;
56 56
             $offset = strlen($class) + 2;
57
-            $keys   = array_map(function ($k) use ($offset) {
57
+            $keys   = array_map(function($k) use ($offset) {
58 58
                 return substr($k, $offset);
59 59
             }, array_keys($data));
60 60
 
61
-            return array_map(function ($item) use ($offset, &$export) {
61
+            return array_map(function($item) use ($offset, &$export) {
62 62
                 return is_object($item) ? $export($item) : (is_array($item) ? array_map($export, $item) : $item);
63 63
             }, array_combine($keys, array_values($data)));
64 64
         };
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function deserialize($data, string $type)
76 76
     {
77
-        $import = function ($item, \stdClass $schema) use (&$import) {
77
+        $import = function($item, \stdClass $schema) use (&$import) {
78 78
             switch ($schema->type) {
79 79
                 case 'array':
80
-                    return array_map(function ($value) use (&$import, $schema) {
80
+                    return array_map(function($value) use (&$import, $schema) {
81 81
                         return $import($value, $schema->items);
82 82
                     }, $item);
83 83
                 case 'object':
Please login to merge, or discard this patch.
src/Serialize/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.