@@ -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 | { |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | * @param string $type The type of the retry handler. |
| 140 | 140 | * @param int $maxRetries The maximum number of retries to be done. |
| 141 | 141 | * |
| 142 | - * @return callable The callable that will return if the request should |
|
| 142 | + * @return \Closure The callable that will return if the request should |
|
| 143 | 143 | * be retried. |
| 144 | 144 | */ |
| 145 | 145 | protected static function createRetryDecider($type, $maxRetries) |
@@ -188,6 +188,7 @@ discard block |
||
| 188 | 188 | * Decide if the given status code indicate the request should be retried. |
| 189 | 189 | * |
| 190 | 190 | * @param int $statusCode status code of the previous request. |
| 191 | + * @param boolean $isSecondary |
|
| 191 | 192 | * |
| 192 | 193 | * @return bool true if the request should be retried. |
| 193 | 194 | */ |
@@ -232,7 +233,7 @@ discard block |
||
| 232 | 233 | * |
| 233 | 234 | * @param int $interval the minimum interval of the retry. |
| 234 | 235 | * |
| 235 | - * @return callable a calculator that will return the interval |
|
| 236 | + * @return \Closure a calculator that will return the interval |
|
| 236 | 237 | * according to the number of retries. |
| 237 | 238 | */ |
| 238 | 239 | protected static function createLinearDelayCalculator($interval) |
@@ -248,7 +249,7 @@ discard block |
||
| 248 | 249 | * |
| 249 | 250 | * @param int $interval the minimum interval of the retry. |
| 250 | 251 | * |
| 251 | - * @return callable a calculator that will return the interval |
|
| 252 | + * @return \Closure a calculator that will return the interval |
|
| 252 | 253 | * according to the number of retries. |
| 253 | 254 | */ |
| 254 | 255 | protected static function createExponentialDelayCalculator($interval) |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | |
| 27 | 27 | use MicrosoftAzure\Storage\Common\Internal\Resources; |
| 28 | 28 | use MicrosoftAzure\Storage\Common\Internal\Validate; |
| 29 | -use MicrosoftAzure\Storage\Common\LocationMode; |
|
| 30 | 29 | use MicrosoftAzure\Storage\Common\Middlewares\RetryMiddleware; |
| 31 | 30 | use GuzzleHttp\Exception\RequestException; |
| 32 | 31 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | /** |
| 91 | 91 | * Gets start. |
| 92 | 92 | * |
| 93 | - * @return \DateTime. |
|
| 93 | + * @return \DateTime|null |
|
| 94 | 94 | */ |
| 95 | 95 | public function getStart() |
| 96 | 96 | { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | /** |
| 116 | 116 | * Gets expiry. |
| 117 | 117 | * |
| 118 | - * @return \DateTime. |
|
| 118 | + * @return \DateTime |
|
| 119 | 119 | */ |
| 120 | 120 | public function getExpiry() |
| 121 | 121 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * Gets the retention policy |
| 72 | 72 | * |
| 73 | - * @return MicrosoftAzure\Storage\Common\Models\RetentionPolicy |
|
| 73 | + * @return RetentionPolicy |
|
| 74 | 74 | * |
| 75 | 75 | */ |
| 76 | 76 | public function getRetentionPolicy() |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | /** |
| 138 | 138 | * Gets whether all delete requests should be logged. |
| 139 | 139 | * |
| 140 | - * @return void |
|
| 140 | + * @return boolean |
|
| 141 | 141 | */ |
| 142 | 142 | public function getDelete() |
| 143 | 143 | { |