@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * @param Response $response |
| 149 | 149 | * |
| 150 | - * @return bool|string |
|
| 150 | + * @return string|false |
|
| 151 | 151 | */ |
| 152 | 152 | private function getContentEncoding($response) |
| 153 | 153 | { |
@@ -161,6 +161,10 @@ discard block |
||
| 161 | 161 | return false; |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | + /** |
|
| 165 | + * @param string $json |
|
| 166 | + * @param string $class |
|
| 167 | + */ |
|
| 164 | 168 | private function deserialize($json, $class) |
| 165 | 169 | { |
| 166 | 170 | $object = null; |
@@ -428,6 +428,9 @@ discard block |
||
| 428 | 428 | array_push($this->customUrlParams, $param); |
| 429 | 429 | } |
| 430 | 430 | |
| 431 | + /** |
|
| 432 | + * @param string $refinementString |
|
| 433 | + */ |
|
| 431 | 434 | public function splitRefinements($refinementString) |
| 432 | 435 | { |
| 433 | 436 | if (StringUtils::isNotBlank($refinementString)) { |
@@ -875,7 +878,7 @@ discard block |
||
| 875 | 878 | /** |
| 876 | 879 | * @param MBias $bias |
| 877 | 880 | * |
| 878 | - * @return Bias |
|
| 881 | + * @return MBias |
|
| 879 | 882 | */ |
| 880 | 883 | protected static function convertBias($bias) |
| 881 | 884 | { |
@@ -342,6 +342,9 @@ discard block |
||
| 342 | 342 | return $lastSegment; |
| 343 | 343 | } |
| 344 | 344 | |
| 345 | + /** |
|
| 346 | + * @param string $pathSegmentLookup |
|
| 347 | + */ |
|
| 345 | 348 | private function removeUnusedPathSegments(array &$pathSegments, $pathSegmentLookup) |
| 346 | 349 | { |
| 347 | 350 | while (count($pathSegments) > strlen($pathSegmentLookup)) { |
@@ -389,6 +392,9 @@ discard block |
||
| 389 | 392 | } |
| 390 | 393 | } |
| 391 | 394 | |
| 395 | + /** |
|
| 396 | + * @param string $token |
|
| 397 | + */ |
|
| 392 | 398 | private function getFieldName($token) |
| 393 | 399 | { |
| 394 | 400 | $mapping = $this->tokenToName[$token]; |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | |
| 150 | 150 | /** |
| 151 | 151 | * @param UrlReplacement[] $replacements |
| 152 | - * @return string |
|
| 152 | + * @return StringBuilder |
|
| 153 | 153 | */ |
| 154 | 154 | public static function buildQueryString(array $replacements) |
| 155 | 155 | { |
@@ -71,6 +71,10 @@ |
||
| 71 | 71 | $this->string = $front . $back; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param integer $index |
|
| 76 | + * @param integer $length |
|
| 77 | + */ |
|
| 74 | 78 | public function delete($index, $length = null) |
| 75 | 79 | { |
| 76 | 80 | if ($length != null) { |