@@ -198,7 +198,7 @@ |
||
| 198 | 198 | * Serializes EDM value into proper value to be used in query. |
| 199 | 199 | * |
| 200 | 200 | * @param string $type The EDM type. |
| 201 | - * @param mixed $value The EDM value. |
|
| 201 | + * @param string $value The EDM value. |
|
| 202 | 202 | * |
| 203 | 203 | * @internal |
| 204 | 204 | * |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | * Create GetEntityResult object from HTTP response parts. |
| 67 | 67 | * |
| 68 | 68 | * @param string $body The HTTP response body. |
| 69 | - * @param IODataReaderWriter $odataSerializer The OData reader and writer. |
|
| 69 | + * @param IODataReaderWriter $serializer The OData reader and writer. |
|
| 70 | 70 | * |
| 71 | 71 | * @internal |
| 72 | 72 | * |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | /** |
| 103 | 103 | * Sets the raw property value. |
| 104 | 104 | * |
| 105 | - * @param mixed $rawValue The raw value of property. |
|
| 105 | + * @param string $rawValue The raw value of property. |
|
| 106 | 106 | * |
| 107 | 107 | * @return void |
| 108 | 108 | */ |
@@ -25,8 +25,6 @@ |
||
| 25 | 25 | namespace MicrosoftAzure\Storage\Table\Models; |
| 26 | 26 | |
| 27 | 27 | use MicrosoftAzure\Storage\Table\Models\EdmType; |
| 28 | -use MicrosoftAzure\Storage\Common\Internal\Validate; |
|
| 29 | -use MicrosoftAzure\Storage\Tests\Unit\Table\Models\EdmTypeTest; |
|
| 30 | 28 | |
| 31 | 29 | /** |
| 32 | 30 | * Represents entity property. |
@@ -1492,7 +1492,7 @@ discard block |
||
| 1492 | 1492 | /** |
| 1493 | 1493 | * Does batch of operations on the table service. |
| 1494 | 1494 | * |
| 1495 | - * @param BatchOperations $batchOperations The operations to apply. |
|
| 1495 | + * @param Models\BatchOperations $batchOperations The operations to apply. |
|
| 1496 | 1496 | * @param TableServiceOptions $options The optional parameters. |
| 1497 | 1497 | * |
| 1498 | 1498 | * @return BatchResult |
@@ -1507,7 +1507,7 @@ discard block |
||
| 1507 | 1507 | /** |
| 1508 | 1508 | * Creates promise that does batch of operations on the table service. |
| 1509 | 1509 | * |
| 1510 | - * @param BatchOperations $batchOperations The operations to apply. |
|
| 1510 | + * @param Models\BatchOperations $batchOperations The operations to apply. |
|
| 1511 | 1511 | * @param TableServiceOptions $options The optional parameters. |
| 1512 | 1512 | * |
| 1513 | 1513 | * @return \GuzzleHttp\Promise\PromiseInterface |
@@ -26,7 +26,6 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | use MicrosoftAzure\Storage\Common\Internal\ServiceRestTrait; |
| 28 | 28 | use MicrosoftAzure\Storage\Common\Internal\Resources; |
| 29 | -use MicrosoftAzure\Storage\Common\Internal\Utilities; |
|
| 30 | 29 | use MicrosoftAzure\Storage\Common\Internal\Validate; |
| 31 | 30 | use MicrosoftAzure\Storage\Common\Internal\Http\HttpCallContext; |
| 32 | 31 | use MicrosoftAzure\Storage\Common\Internal\ServiceRestProxy; |
@@ -34,7 +33,6 @@ discard block |
||
| 34 | 33 | use MicrosoftAzure\Storage\Table\Internal\ITable; |
| 35 | 34 | use MicrosoftAzure\Storage\Table\Models\TableServiceOptions; |
| 36 | 35 | use MicrosoftAzure\Storage\Table\Models\EdmType; |
| 37 | -use MicrosoftAzure\Storage\Table\Models\Filters; |
|
| 38 | 36 | use MicrosoftAzure\Storage\Table\Models\Entity; |
| 39 | 37 | use MicrosoftAzure\Storage\Table\Models\Query; |
| 40 | 38 | use MicrosoftAzure\Storage\Table\Models\Filters\Filter; |
@@ -75,6 +75,9 @@ discard block |
||
| 75 | 75 | return $handler; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | + /** |
|
| 79 | + * @param integer $level |
|
| 80 | + */ |
|
| 78 | 81 | public function registerExceptionHandler($level = null, $callPrevious = true) |
| 79 | 82 | { |
| 80 | 83 | $prev = set_exception_handler(array($this, 'handleException')); |
@@ -95,6 +98,9 @@ discard block |
||
| 95 | 98 | $this->handleOnlyReportedErrors = $handleOnlyReportedErrors; |
| 96 | 99 | } |
| 97 | 100 | |
| 101 | + /** |
|
| 102 | + * @param integer $level |
|
| 103 | + */ |
|
| 98 | 104 | public function registerFatalHandler($level = null, $reservedMemorySize = 20) |
| 99 | 105 | { |
| 100 | 106 | register_shutdown_function(array($this, 'handleFatalError')); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * Formats a log record. |
| 80 | 80 | * |
| 81 | 81 | * @param array $record A record to format |
| 82 | - * @return mixed The formatted record |
|
| 82 | + * @return string The formatted record |
|
| 83 | 83 | */ |
| 84 | 84 | public function format(array $record) |
| 85 | 85 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * Formats a set of log records. |
| 114 | 114 | * |
| 115 | 115 | * @param array $records A set of records to format |
| 116 | - * @return mixed The formatted set of records |
|
| 116 | + * @return string The formatted set of records |
|
| 117 | 117 | */ |
| 118 | 118 | public function formatBatch(array $records) |
| 119 | 119 | { |
@@ -72,6 +72,9 @@ discard block |
||
| 72 | 72 | return $record; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | + /** |
|
| 76 | + * @param integer $nestingLevel |
|
| 77 | + */ |
|
| 75 | 78 | protected function formatObject($value, $nestingLevel) |
| 76 | 79 | { |
| 77 | 80 | $objectVars = get_object_vars($value); |
@@ -80,6 +83,9 @@ discard block |
||
| 80 | 83 | return $this->formatArray($objectVars, $nestingLevel); |
| 81 | 84 | } |
| 82 | 85 | |
| 86 | + /** |
|
| 87 | + * @param integer $nestingLevel |
|
| 88 | + */ |
|
| 83 | 89 | protected function formatException(\Exception $exception, $nestingLevel) |
| 84 | 90 | { |
| 85 | 91 | $formattedException = array( |
@@ -98,6 +104,9 @@ discard block |
||
| 98 | 104 | return $this->formatArray($formattedException, $nestingLevel); |
| 99 | 105 | } |
| 100 | 106 | |
| 107 | + /** |
|
| 108 | + * @param integer $nestingLevel |
|
| 109 | + */ |
|
| 101 | 110 | protected function formatDate(\DateTime $value, $nestingLevel) |
| 102 | 111 | { |
| 103 | 112 | return new \MongoDate($value->getTimestamp()); |
@@ -277,6 +277,7 @@ discard block |
||
| 277 | 277 | * can be used as a callback for array_walk_recursive. |
| 278 | 278 | * |
| 279 | 279 | * @param mixed &$data Input to check and convert if needed |
| 280 | + * @param string $data |
|
| 280 | 281 | * @private |
| 281 | 282 | */ |
| 282 | 283 | public function detectAndCleanUtf8(&$data) |
@@ -284,6 +285,10 @@ discard block |
||
| 284 | 285 | if (is_string($data) && !preg_match('//u', $data)) { |
| 285 | 286 | $data = preg_replace_callback( |
| 286 | 287 | '/[\x80-\xFF]+/', |
| 288 | + |
|
| 289 | + /** |
|
| 290 | + * @param string $m |
|
| 291 | + */ |
|
| 287 | 292 | function ($m) { return utf8_encode($m[0]); }, |
| 288 | 293 | $data |
| 289 | 294 | ); |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | /** |
| 119 | 119 | * Sets minimum logging level at which this handler will be triggered. |
| 120 | 120 | * |
| 121 | - * @param int|string $level Level or level name |
|
| 121 | + * @param integer $level Level or level name |
|
| 122 | 122 | * @return self |
| 123 | 123 | */ |
| 124 | 124 | public function setLevel($level) |