Completed
Pull Request — master (#79)
by
unknown
03:37
created
src/Serializer/SerializerAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     /**
70 70
      * Deserializes data into the given type.
71 71
      *
72
-     * @param mixed                      $data
72
+     * @param string                      $data
73 73
      * @param string                     $type
74 74
      * @param string                     $format
75 75
      * @param SerializationContext|array $context
Please login to merge, or discard this patch.
src/Tests/Request/RequestCoercerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $this->contentDecoderMock
33 33
             ->expects($this->any())
34 34
             ->method('decodeContent')
35
-            ->willReturnCallback(function (Request $request) {
35
+            ->willReturnCallback(function(Request $request) {
36 36
                 return json_decode($request->getContent());
37 37
             });
38 38
     }
Please login to merge, or discard this patch.
src/Tests/Response/ResponseFactorySymfonySerializerCompatibilityTest.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.
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/Tests/Functional/PetStore/Controller/UserController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * @param string $username
18 18
      * @param string $password
19 19
      *
20
-     * @return array
20
+     * @return string
21 21
      */
22 22
     public function loginUser($username, $password)
23 23
     {
Please login to merge, or discard this patch.
src/Tests/EventListener/VndErrorExceptionListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@
 block discarded – undo
203 203
             $logger
204 204
                 ->expects($this->once())
205 205
                 ->method('log')
206
-                ->with($this->anything(), $this->callback(function ($message) use (&$logref) {
206
+                ->with($this->anything(), $this->callback(function($message) use (&$logref) {
207 207
                     $matches = [];
208 208
                     if (preg_match('/logref ([a-z0-9]*)/', $message, $matches)) {
209 209
                         $logref = $matches[1];
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
                                 ->scalarNode('base_url')->defaultValue('/')->end()
51 51
                                 ->scalarNode('host')->defaultNull()->end()
52 52
                             ->end()
53
-                         ->end()
53
+                            ->end()
54 54
                     ->end()
55 55
                 ->end()
56 56
             ->end()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
                         ->arrayNode('namespace')
38 38
                             ->beforeNormalization()
39 39
                                 ->ifString()
40
-                                ->then(function ($v) { return [$v]; })
40
+                                ->then(function($v) { return [$v]; })
41 41
                             ->end()
42 42
                             ->prototype('scalar')
43 43
                             ->end()
Please login to merge, or discard this patch.
src/Test/ApiTestCase.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -308,8 +308,8 @@
 block discarded – undo
308 308
     }
309 309
 
310 310
     /**
311
-     * @param mixed  $expected
312
-     * @param mixed  $actual
311
+     * @param integer  $expected
312
+     * @param integer  $actual
313 313
      * @param string $message
314 314
      *
315 315
      * @return mixed
Please login to merge, or discard this 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/OperationObject.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     }
73 73
 
74 74
     /**
75
-     * @return object
75
+     * @return \stdClass
76 76
      */
77 77
     private function assembleRequestSchema()
78 78
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 ]
75 75
             ]
76 76
         ];
77
-        $document           = new SwaggerDocument('', $documentDefinition);
77
+        $document = new SwaggerDocument('', $documentDefinition);
78 78
 
79 79
         return new static($document, $path, $method);
80 80
     }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     {
137 137
         foreach ($this->definition->parameters as $i => $paramDefinition) {
138 138
             if ($paramDefinition->name === $parameterName) {
139
-                return '/' . implode('/', [
139
+                return '/'.implode('/', [
140 140
                     'paths',
141 141
                     str_replace(['~', '/'], ['~0', '~1'], $this->getPath()),
142 142
                     $this->getMethod(),
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     {
189 189
         $segment = str_replace(['~0', '~1'], ['~', '/'], array_shift($segments));
190 190
         if (property_exists($context, $segment)) {
191
-            $pointer .= '/' . $segment;
191
+            $pointer .= '/'.$segment;
192 192
             if (!count($segments)) {
193 193
                 return $pointer;
194 194
             }
Please login to merge, or discard this patch.