Completed
Pull Request — master (#52)
by John
06:05
created
src/Document/RefResolver.php 2 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     private $yamlParser;
38 38
 
39 39
     /**
40
-     * @param object     $definition
40
+     * @param \stdClass|null     $definition
41 41
      * @param string     $uri
42 42
      * @param YamlParser $yamlParser
43 43
      */
Please login to merge, or discard this patch.
src/Tests/Request/RequestProcessorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 
91 91
         $operationDefinition = [
92 92
             'parameters' => (object)[
93
-                (object) [
93
+                (object)[
94 94
                     'name' => 'myContent',
95 95
                     'in'   => 'body'
96 96
                 ]
Please login to merge, or discard this patch.
src/Document/YamlParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * @param string $string
36 36
      *
37
-     * @return object
37
+     * @return \stdClass|null
38 38
      */
39 39
     public function parse($string)
40 40
     {
Please login to merge, or discard this patch.
src/Routing/SwaggerRouteLoader.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
42 42
      *
43
-     * @param mixed $resource
43
+     * @param string $resource
44 44
      * @param null  $type
45 45
      *
46 46
      * @return RouteCollection
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     /**
126 126
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
127 127
      *
128
-     * @param mixed  $resource
128
+     * @param string  $resource
129 129
      * @param string $type
130 130
      *
131 131
      * @return bool
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.