Passed
Pull Request — master (#61)
by
unknown
02:28
created
src/AbstractRequester.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -157,6 +157,9 @@  discard block
 block discarded – undo
157 157
         return $this;
158 158
     }
159 159
 
160
+    /**
161
+     * @param integer $code
162
+     */
160 163
     public function assertResponseCode($code)
161 164
     {
162 165
         $this->statusExpected = $code;
@@ -266,6 +269,10 @@  discard block
 block discarded – undo
266 269
         return $response;
267 270
     }
268 271
 
272
+    /**
273
+     * @param string $contentType
274
+     * @param string $body
275
+     */
269 276
     protected function parseMultiPartForm($contentType, $body)
270 277
     {
271 278
         $matchRequest = [];
Please login to merge, or discard this patch.
src/ApiTestCase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      * @param array|null $query
62 62
      * @param array|null $requestBody
63 63
      * @param array $requestHeader
64
-     * @return mixed
64
+     * @return \Psr\Http\Message\ResponseInterface
65 65
      * @throws DefinitionNotFoundException
66 66
      * @throws GenericSwaggerException
67 67
      * @throws HttpMethodNotFoundException
Please login to merge, or discard this patch.
src/Base/Body.php 1 patch
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @param array $schemaArray
89 89
      * @param string $body
90 90
      * @param string $type
91
-     * @return bool
91
+     * @return null|boolean
92 92
      * @throws NotMatchedException
93 93
      */
94 94
     protected function matchString($name, $schemaArray, $body, $type)
@@ -108,6 +108,9 @@  discard block
 block discarded – undo
108 108
         return true;
109 109
     }
110 110
 
111
+    /**
112
+     * @param string $name
113
+     */
111 114
     private function checkPattern($name, $body, $pattern)
112 115
     {
113 116
         $isSuccess = (bool) preg_match($pattern, $body, $matches);
@@ -123,7 +126,7 @@  discard block
 block discarded – undo
123 126
      * @param array $schemaArray
124 127
      * @param string $body
125 128
      * @param string $type
126
-     * @return bool
129
+     * @return null|boolean
127 130
      */
128 131
     protected function matchFile($name, $schemaArray, $body, $type)
129 132
     {
@@ -138,7 +141,7 @@  discard block
 block discarded – undo
138 141
      * @param string $name
139 142
      * @param string $body
140 143
      * @param string $type
141
-     * @return bool
144
+     * @return null|boolean
142 145
      * @throws NotMatchedException
143 146
      */
144 147
     protected function matchNumber($name, $body, $type)
@@ -162,7 +165,7 @@  discard block
 block discarded – undo
162 165
      * @param string $name
163 166
      * @param string $body
164 167
      * @param string $type
165
-     * @return bool
168
+     * @return null|boolean
166 169
      * @throws NotMatchedException
167 170
      */
168 171
     protected function matchBool($name, $body, $type)
@@ -183,7 +186,7 @@  discard block
 block discarded – undo
183 186
      * @param array $schemaArray
184 187
      * @param string $body
185 188
      * @param string $type
186
-     * @return bool
189
+     * @return null|boolean
187 190
      * @throws DefinitionNotFoundException
188 191
      * @throws GenericSwaggerException
189 192
      * @throws InvalidDefinitionException
@@ -379,7 +382,7 @@  discard block
 block discarded – undo
379 382
      * @param string $body
380 383
      * @param string $type
381 384
      * @param bool $nullable
382
-     * @return bool
385
+     * @return null|boolean
383 386
      * @throws NotMatchedException
384 387
      */
385 388
     protected function matchNull($name, $body, $type, $nullable)
Please login to merge, or discard this patch.