Completed
Pull Request — master (#69)
by Cethy
02:54
created
src/Tests/Routing/SwaggerRouteLoaderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
 
244 244
         $definitionPaths = array_keys($pathDefinitions);
245 245
         sort($definitionPaths);
246
-        $routePaths = array_map(function ($route) {
246
+        $routePaths = array_map(function($route) {
247 247
             return $route->getPath();
248 248
         }, $routes->getIterator()->getArrayCopy());
249 249
         sort($routePaths);
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/Document/RefResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
     {
198 198
         $exception = new ResourceNotReadableException("Failed reading '$uri'");
199 199
 
200
-        set_error_handler(function () use ($exception) {
200
+        set_error_handler(function() use ($exception) {
201 201
             throw $exception;
202 202
         });
203 203
         $response = file_get_contents($uri);
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/Document/OperationObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 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
     }
Please login to merge, or discard this patch.
src/Request/RequestCoercer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             'header' => 'headers'
49 49
         ];
50 50
 
51
-        if(isset($operationObject->getDefinition()->parameters)) {
51
+        if (isset($operationObject->getDefinition()->parameters)) {
52 52
             foreach ($operationObject->getDefinition()->parameters as $paramDefinition) {
53 53
                 $paramName = $paramDefinition->name;
54 54
 
Please login to merge, or discard this patch.
src/Request/RequestValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 
92 92
         $parameters = new \stdClass;
93 93
 
94
-        if(isset($this->operationObject->getDefinition()->parameters)) {
94
+        if (isset($this->operationObject->getDefinition()->parameters)) {
95 95
             foreach ($this->operationObject->getDefinition()->parameters as $paramDefinition) {
96 96
                 $paramName = $paramDefinition->name;
97 97
 
Please login to merge, or discard this patch.