@@ -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) |
@@ -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 | { |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | /** |
| 158 | 158 | * Sets the middleware stack. |
| 159 | 159 | * |
| 160 | - * @param MiddlewareStack $middlewareStack value. |
|
| 160 | + * @param MiddlewareStack $middlwareStack value. |
|
| 161 | 161 | * |
| 162 | 162 | * @return void |
| 163 | 163 | */ |
@@ -134,7 +134,6 @@ discard block |
||
| 134 | 134 | /** |
| 135 | 135 | * Sets hour metrics element. |
| 136 | 136 | * |
| 137 | - * @param Metrics $metrics new element. |
|
| 138 | 137 | * |
| 139 | 138 | * @return void |
| 140 | 139 | */ |
@@ -156,7 +155,7 @@ discard block |
||
| 156 | 155 | /** |
| 157 | 156 | * Sets minute metrics element. |
| 158 | 157 | * |
| 159 | - * @param Metrics $metrics new element. |
|
| 158 | + * @param Metrics $minuteMetrics new element. |
|
| 160 | 159 | * |
| 161 | 160 | * @return void |
| 162 | 161 | */ |
@@ -202,7 +201,7 @@ discard block |
||
| 202 | 201 | * |
| 203 | 202 | * @param string $defaultServiceVersion the default service version |
| 204 | 203 | * |
| 205 | - * @return void |
|
| 204 | + * @return string |
|
| 206 | 205 | */ |
| 207 | 206 | public function setDefaultServiceVersion($defaultServiceVersion) |
| 208 | 207 | { |
@@ -2240,7 +2240,7 @@ discard block |
||
| 2240 | 2240 | * create the file |
| 2241 | 2241 | * @param CreateFileOptions|null $options optional parameters |
| 2242 | 2242 | * |
| 2243 | - * @return void |
|
| 2243 | + * @return \GuzzleHttp\Promise\PromiseInterface |
|
| 2244 | 2244 | */ |
| 2245 | 2245 | public function createFileFromContentAsync( |
| 2246 | 2246 | $share, |
@@ -2646,7 +2646,7 @@ discard block |
||
| 2646 | 2646 | * @param string $copyID copy operation identifier. |
| 2647 | 2647 | * @param FileServiceOptions|null $options optional parameters |
| 2648 | 2648 | * |
| 2649 | - * @return void |
|
| 2649 | + * @return \GuzzleHttp\Promise\PromiseInterface |
|
| 2650 | 2650 | * |
| 2651 | 2651 | * @see https://docs.microsoft.com/en-us/rest/api/storageservices/abort-copy-file |
| 2652 | 2652 | */ |