@@ -157,7 +157,7 @@ |
||
157 | 157 | /** |
158 | 158 | * Gets the response of the failue. |
159 | 159 | * |
160 | - * @return string |
|
160 | + * @return ResponseInterface |
|
161 | 161 | */ |
162 | 162 | public function getResponse() |
163 | 163 | { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | /** |
82 | 82 | * Converts this signed identifiers to XML representation. |
83 | 83 | * |
84 | - * @param XmlSerializer $xmlSerializer The XML serializer. |
|
84 | + * @param XmlSerializer $serializer The XML serializer. |
|
85 | 85 | * |
86 | 86 | * @internal |
87 | 87 | * |
@@ -49,7 +49,6 @@ |
||
49 | 49 | * getProtocolVersion() |
50 | 50 | * (getUri() && getMethod()) || (getStatusCode() && getReasonPhrase()) |
51 | 51 | * |
52 | - * @param object $message The message to be serialized. |
|
53 | 52 | * |
54 | 53 | * @return string |
55 | 54 | */ |
@@ -26,7 +26,6 @@ |
||
26 | 26 | |
27 | 27 | use MicrosoftAzure\Storage\Common\Internal\Validate; |
28 | 28 | use MicrosoftAzure\Storage\Common\Internal\Resources; |
29 | -use MicrosoftAzure\Storage\Common\Internal\Serialization\XMLSerializer; |
|
30 | 29 | use GuzzleHttp\Exception\RequestException; |
31 | 30 | |
32 | 31 | /** |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Takes an array and produces XML based on it. |
72 | 72 | * |
73 | - * @param XMLWriter $xmlw XMLWriter object that was previously instanted |
|
73 | + * @param \XMLWriter $xmlw XMLWriter object that was previously instanted |
|
74 | 74 | * and is used for creating the XML. |
75 | 75 | * @param array $data Array to be converted to XML. |
76 | 76 | * @param string $defaultTag Default XML tag to be used if none specified. |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * method is exposed. |
110 | 110 | * |
111 | 111 | * @param object $targetObject The target object. |
112 | - * @param array $methodArray The array of method of the target object. |
|
112 | + * @param \ReflectionMethod[] $methodArray The array of method of the target object. |
|
113 | 113 | * |
114 | 114 | * @return mixed |
115 | 115 | */ |
@@ -193,10 +193,8 @@ discard block |
||
193 | 193 | * request upon fullfilment |
194 | 194 | * @param int $statusCode The expected status code for each of the |
195 | 195 | * request generated by generator. |
196 | - * @param array $requestOptions The service options for the concurrent |
|
197 | - * requests. |
|
198 | 196 | * |
199 | - * @return array |
|
197 | + * @return PromiseInterface |
|
200 | 198 | */ |
201 | 199 | protected function sendConcurrentAsync( |
202 | 200 | callable $generator, |
@@ -333,7 +331,6 @@ discard block |
||
333 | 331 | * @param string $path URL path |
334 | 332 | * @param array|int $expected Expected Status Codes. |
335 | 333 | * @param string $body Request body |
336 | - * @param ServiceOptions $options Service options |
|
337 | 334 | * |
338 | 335 | * @return \GuzzleHttp\Promise\PromiseInterface |
339 | 336 | */ |
@@ -28,10 +28,8 @@ |
||
28 | 28 | use MicrosoftAzure\Storage\Common\Internal\Resources; |
29 | 29 | use MicrosoftAzure\Storage\Common\Internal\Validate; |
30 | 30 | use MicrosoftAzure\Storage\Common\Internal\Utilities; |
31 | -use MicrosoftAzure\Storage\Common\Internal\RetryMiddlewareFactory; |
|
32 | 31 | use MicrosoftAzure\Storage\Common\Models\ServiceOptions; |
33 | 32 | use MicrosoftAzure\Storage\Common\Internal\Http\HttpCallContext; |
34 | -use MicrosoftAzure\Storage\Common\Internal\Middlewares\MiddlewareBase; |
|
35 | 33 | use MicrosoftAzure\Storage\Common\Middlewares\MiddlewareStack; |
36 | 34 | use MicrosoftAzure\Storage\Common\LocationMode; |
37 | 35 | use GuzzleHttp\Promise\PromiseInterface; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * @param boolean $atLeastOne Indicates that at least one requirement must |
114 | 114 | * succeed. |
115 | 115 | * |
116 | - * @return callable |
|
116 | + * @return \Closure |
|
117 | 117 | */ |
118 | 118 | protected static function getValidator( |
119 | 119 | array $requirements, |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | /** |
162 | 162 | * Creates at lease one succeed predicate for the provided list of requirements. |
163 | 163 | * |
164 | - * @return callable |
|
164 | + * @return \Closure |
|
165 | 165 | */ |
166 | 166 | protected static function atLeastOne() |
167 | 167 | { |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | /** |
173 | 173 | * Creates an optional predicate for the provided list of requirements. |
174 | 174 | * |
175 | - * @return callable |
|
175 | + * @return \Closure |
|
176 | 176 | */ |
177 | 177 | protected static function optional() |
178 | 178 | { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | /** |
184 | 184 | * Creates an required predicate for the provided list of requirements. |
185 | 185 | * |
186 | - * @return callable |
|
186 | + * @return \Closure |
|
187 | 187 | */ |
188 | 188 | protected static function allRequired() |
189 | 189 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * |
139 | 139 | * @param array $array Array to be used. |
140 | 140 | * |
141 | - * @return mixed |
|
141 | + * @return string |
|
142 | 142 | */ |
143 | 143 | public static function tryGetKeysChainValue(array $array) |
144 | 144 | { |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | /** |
283 | 283 | * Takes an array and produces XML based on it. |
284 | 284 | * |
285 | - * @param XMLWriter $xmlw XMLWriter object that was previously instanted |
|
285 | + * @param \XMLWriter $xmlw XMLWriter object that was previously instanted |
|
286 | 286 | * and is used for creating the XML. |
287 | 287 | * @param array $data Array to be converted to XML |
288 | 288 | * @param string $defaultTag Default XML tag to be used if none specified. |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | * |
499 | 499 | * @param string $key The array key. |
500 | 500 | * @param array $haystack The array to be used. |
501 | - * @param mixed $default The value to return if $key is not found in $array. |
|
501 | + * @param string|null $default The value to return if $key is not found in $array. |
|
502 | 502 | * |
503 | 503 | * @return mixed |
504 | 504 | */ |
@@ -795,7 +795,7 @@ discard block |
||
795 | 795 | * Static function used to determine if the request is performed against |
796 | 796 | * secondary endpoint. |
797 | 797 | * |
798 | - * @param Psr\Http\Message\RequestInterface $request The request performed. |
|
798 | + * @param \Psr\Http\Message\RequestInterface $request The request performed. |
|
799 | 799 | * @param array $options The options of the |
800 | 800 | * request. Must contain |
801 | 801 | * Resources::ROS_SECONDARY_URI |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * Throws exception if the provided variable type is not boolean. |
81 | 81 | * |
82 | - * @param mixed $var variable to check against. |
|
82 | + * @param string|boolean $var variable to check against. |
|
83 | 83 | * |
84 | 84 | * @throws InvalidArgumentTypeException |
85 | 85 | * |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** |
130 | 130 | * Throws exception if the provided variable type is not integer. |
131 | 131 | * |
132 | - * @param mixed $var The variable to check. |
|
132 | + * @param integer $var The variable to check. |
|
133 | 133 | * @param string $name The parameter name. |
134 | 134 | * |
135 | 135 | * @throws InvalidArgumentTypeException |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * |
224 | 224 | * @throws \InvalidArgumentException |
225 | 225 | * |
226 | - * @return void |
|
226 | + * @return boolean |
|
227 | 227 | */ |
228 | 228 | public static function isInstanceOf($objectInstance, $classInstance, $name) |
229 | 229 | { |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | /** |
253 | 253 | * Creates a anonymous function that check if the given uri is valid or not. |
254 | 254 | * |
255 | - * @return callable |
|
255 | + * @return \Closure |
|
256 | 256 | */ |
257 | 257 | public static function getIsValidUri() |
258 | 258 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * @param RequestInterface $request the request sent. |
64 | 64 | * @param array $options the options that the request sent with. |
65 | 65 | * |
66 | - * @return callable |
|
66 | + * @return \Closure |
|
67 | 67 | */ |
68 | 68 | protected function onFulfilled(RequestInterface $request, array $options) |
69 | 69 | { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * @param RequestInterface $request the request sent. |
107 | 107 | * @param array $options the options that the request sent with. |
108 | 108 | * |
109 | - * @return callable |
|
109 | + * @return \Closure |
|
110 | 110 | */ |
111 | 111 | protected function onRejected(RequestInterface $request, array $options) |
112 | 112 | { |