Completed
Pull Request — master (#56)
by
unknown
08:38
created
src/AbstractRequester.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -119,6 +119,9 @@
 block discarded – undo
119 119
         return $this;
120 120
     }
121 121
 
122
+    /**
123
+     * @param integer $code
124
+     */
122 125
     public function assertResponseCode($code)
123 126
     {
124 127
         $this->statusExpected = $code;
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
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param $schema
83 83
      * @param $body
84 84
      * @param $type
85
-     * @return bool
85
+     * @return null|boolean
86 86
      * @throws NotMatchedException
87 87
      */
88 88
     protected function matchString($name, $schema, $body, $type)
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * @param $name
103 103
      * @param $body
104 104
      * @param $type
105
-     * @return bool
105
+     * @return null|boolean
106 106
      * @throws NotMatchedException
107 107
      */
108 108
     protected function matchNumber($name, $body, $type)
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param $name
123 123
      * @param $body
124 124
      * @param $type
125
-     * @return bool
125
+     * @return null|boolean
126 126
      * @throws NotMatchedException
127 127
      */
128 128
     protected function matchBool($name, $body, $type)
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      * @param $schema
144 144
      * @param $body
145 145
      * @param $type
146
-     * @return bool
146
+     * @return null|boolean
147 147
      * @throws DefinitionNotFoundException
148 148
      * @throws GenericSwaggerException
149 149
      * @throws InvalidDefinitionException
@@ -189,6 +189,9 @@  discard block
 block discarded – undo
189 189
         return true;
190 190
     }
191 191
 
192
+    /**
193
+     * @param string $name
194
+     */
192 195
     protected function matchTypes($name, $schema, $body)
193 196
     {
194 197
         if (!isset($schema['type'])) {
@@ -241,7 +244,7 @@  discard block
 block discarded – undo
241 244
     }
242 245
 
243 246
     /**
244
-     * @param $name
247
+     * @param string $name
245 248
      * @param $schema
246 249
      * @param $body
247 250
      * @return bool|null
@@ -357,7 +360,7 @@  discard block
 block discarded – undo
357 360
      * @param $body
358 361
      * @param $type
359 362
      * @param $nullable
360
-     * @return bool
363
+     * @return null|boolean
361 364
      * @throws NotMatchedException
362 365
      */
363 366
     protected function matchNull($name, $body, $type, $nullable)
Please login to merge, or discard this patch.