Completed
Push — master ( a0f13c...570c98 )
by John
15:11 queued 08:34
created
Request/ContentDecoder/ContentDecoderSymfonySerializerCompatibilityTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $jsonEncoderMock
45 45
             ->expects($this->once())
46 46
             ->method('encode')
47
-            ->willReturnCallback(function ($string) {
47
+            ->willReturnCallback(function($string) {
48 48
                 $data = json_encode($string);
49 49
                 if (is_null($data)) {
50 50
                     throw new \Exception();
Please login to merge, or discard this patch.
src/Test/ApiTestCase.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $validator = new Validator();
68 68
         $validator->check(
69 69
             $swaggerJson,
70
-            json_decode(file_get_contents(__DIR__ . '/../../assets/swagger-schema.json'))
70
+            json_decode(file_get_contents(__DIR__.'/../../assets/swagger-schema.json'))
71 71
         );
72 72
 
73 73
         if (!$validator->isValid()) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         vfsStreamWrapper::setRoot(new vfsStreamDirectory('root'));
84 84
 
85 85
         file_put_contents(
86
-            vfsStream::url('root') . '/swagger.json',
86
+            vfsStream::url('root').'/swagger.json',
87 87
             json_encode(self::$document->getDefinition())
88 88
         );
89 89
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             json_encode(self::$document->getDefinition(), JSON_PRETTY_PRINT)
93 93
         );
94 94
 
95
-        self::$schemaManager = new SchemaManager(vfsStream::url('root') . '/swagger.json');
95
+        self::$schemaManager = new SchemaManager(vfsStream::url('root').'/swagger.json');
96 96
     }
97 97
 
98 98
     /**
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     {
224 224
         $uri = $path;
225 225
         if (count($params)) {
226
-            $uri = $path . '?' . http_build_query($params);
226
+            $uri = $path.'?'.http_build_query($params);
227 227
         }
228 228
 
229 229
         return $uri;
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
             $this->assertSame(
258 258
                 JSON_ERROR_NONE,
259 259
                 json_last_error(),
260
-                "Not valid JSON: " . $jsonErrorMessage . "(" . var_export($json, true) . ")"
260
+                "Not valid JSON: ".$jsonErrorMessage."(".var_export($json, true).")"
261 261
             );
262 262
         }
263 263
 
Please login to merge, or discard this patch.
src/Document/RefResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
         );
158 158
         if (!$target) {
159 159
             throw new InvalidReferenceException(
160
-                "Target '$path' does not exist'" . ($uri ? " at '$uri''" : '')
160
+                "Target '$path' does not exist'".($uri ? " at '$uri''" : '')
161 161
             );
162 162
         }
163 163
 
Please login to merge, or discard this patch.
src/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.
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/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.
src/Document/OperationObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     {
143 143
         foreach ($this->definition->parameters as $i => $paramDefinition) {
144 144
             if ($paramDefinition->name === $parameterName) {
145
-                return '/' . implode('/', [
145
+                return '/'.implode('/', [
146 146
                     'paths',
147 147
                     str_replace(['~', '/'], ['~0', '~1'], $this->getPath()),
148 148
                     $this->getMethod(),
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     {
194 194
         $segment = str_replace(['~0', '~1'], ['~', '/'], array_shift($segments));
195 195
         if (property_exists($context, $segment)) {
196
-            $pointer .= '/' . $segment;
196
+            $pointer .= '/'.$segment;
197 197
             if (!count($segments)) {
198 198
                 return $pointer;
199 199
             }
Please login to merge, or discard this patch.
src/Tests/Request/RequestCoercerTest.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
  *
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $this->contentDecoderMock
34 34
             ->expects($this->any())
35 35
             ->method('decodeContent')
36
-            ->willReturnCallback(function (Request $request) {
36
+            ->willReturnCallback(function(Request $request) {
37 37
                 return json_decode($request->getContent());
38 38
             });
39 39
     }
Please login to merge, or discard this patch.
src/Tests/Document/YamlParserTest.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
  *
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function canParseNumericMap()
26 26
     {
27
-        $yaml   = <<<YAML
27
+        $yaml = <<<YAML
28 28
 map:
29 29
   1: one
30 30
   2: two
Please login to merge, or discard this patch.