@@ -19,7 +19,6 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * Constructor.Set the site's ID. |
| 21 | 21 | * |
| 22 | - * @param string $id |
|
| 23 | 22 | */ |
| 24 | 23 | public function __construct($siteId = null) |
| 25 | 24 | { |
@@ -40,7 +40,6 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * JSON parser. |
| 42 | 42 | * |
| 43 | - * @param ServerRequestInterface $response |
|
| 44 | 43 | * |
| 45 | 44 | * @return ServerRequestInterface |
| 46 | 45 | */ |
@@ -54,7 +53,6 @@ discard block |
||
| 54 | 53 | /** |
| 55 | 54 | * Parses url-encoded strings. |
| 56 | 55 | * |
| 57 | - * @param ServerRequestInterface $response |
|
| 58 | 56 | * |
| 59 | 57 | * @return ServerRequestInterface |
| 60 | 58 | */ |
@@ -68,7 +66,6 @@ discard block |
||
| 68 | 66 | /** |
| 69 | 67 | * Parses csv strings. |
| 70 | 68 | * |
| 71 | - * @param ServerRequestInterface $response |
|
| 72 | 69 | * |
| 73 | 70 | * @return ServerRequestInterface |
| 74 | 71 | */ |
@@ -69,14 +69,14 @@ |
||
| 69 | 69 | list($first, $last) = $range; |
| 70 | 70 | $size = $response->getBody()->getSize(); |
| 71 | 71 | |
| 72 | - if ($last === null) { |
|
| 72 | + if ($last === null) { |
|
| 73 | 73 | $last = $size - 1; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | return $response |
| 77 | 77 | ->withStatus(206) |
| 78 | 78 | ->withHeader('Content-Length', (string) ($last - $first + 1)) |
| 79 | - ->withHeader('Content-Range', sprintf('bytes %d-%d/%d', $first, $last, $size)); |
|
| 79 | + ->withHeader('Content-Range', sprintf('bytes %d-%d/%d', $first, $last, $size)); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |