@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * @param Response $response |
141 | 141 | * |
142 | - * @return bool|string |
|
142 | + * @return string|false |
|
143 | 143 | */ |
144 | 144 | private function getContentEncoding($response) |
145 | 145 | { |
@@ -153,6 +153,10 @@ discard block |
||
153 | 153 | return false; |
154 | 154 | } |
155 | 155 | |
156 | + /** |
|
157 | + * @param string $json |
|
158 | + * @param string $class |
|
159 | + */ |
|
156 | 160 | private function deserialize($json, $class) |
157 | 161 | { |
158 | 162 | $object = null; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Exception; |
6 | 6 | use GroupByInc\API\Util\SerializerFactory; |
7 | -use GroupByInc\API\Util\UriBuilder; |
|
8 | 7 | use Httpful\Mime; |
9 | 8 | use Httpful\Request; |
10 | 9 | use Httpful\Response; |
@@ -371,6 +371,9 @@ |
||
371 | 371 | array_push($this->customUrlParams, $param); |
372 | 372 | } |
373 | 373 | |
374 | + /** |
|
375 | + * @param string $refinementString |
|
376 | + */ |
|
374 | 377 | public function splitRefinements($refinementString) |
375 | 378 | { |
376 | 379 | if (StringUtils::isNotBlank($refinementString)) { |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use GroupByInc\API\Request\RefinementsRequest; |
17 | 17 | use GroupByInc\API\Request\Request; |
18 | 18 | use GroupByInc\API\Request\RestrictNavigation; |
19 | -use GroupByInc\API\Request\SelectedRefinement; |
|
20 | 19 | use GroupByInc\API\Request\SelectedRefinementRange; |
21 | 20 | use GroupByInc\API\Request\SelectedRefinementValue; |
22 | 21 | use GroupByInc\API\Request\Sort as RSort; |
@@ -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]; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use GroupByInc\API\Model\Navigation; |
6 | 6 | use GroupByInc\API\Model\Refinement\Type; |
7 | -use GroupByInc\API\Model\SelectedRefinement; |
|
8 | 7 | use GroupByInc\API\Model\SelectedRefinementValue; |
9 | 8 | use GroupByInc\API\Query; |
10 | 9 | use GroupByInc\API\Symbol; |
@@ -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 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace GroupByInc\API\Url; |
4 | 4 | |
5 | 5 | use GroupByInc\API\Util\StringBuilder; |
6 | -use GroupByInc\API\Model\SelectedRefinement; |
|
7 | 6 | |
8 | 7 | class UrlReplacementRule |
9 | 8 | { |
@@ -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) { |