Skip to content

Commit a5c524b

Browse files
committed
style: remove unnecessary comment.
1 parent 947b2a8 commit a5c524b

1 file changed

Lines changed: 9 additions & 77 deletions

File tree

system/HTTP/DownloadResponse.php

Lines changed: 9 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -224,21 +224,8 @@ public function getStatusCode(): int
224224
//--------------------------------------------------------------------
225225

226226
/**
227-
* Return an instance with the specified status code and, optionally, reason phrase.
228-
*
229-
* If no reason phrase is specified, will default recommended reason phrase for
230-
* the response's status code.
231-
*
232-
* @see http://tools.ietf.org/html/rfc7231#section-6
233-
* @see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
234-
*
235-
* @param int $code The 3-digit integer result code to set.
236-
* @param string $reason The reason phrase to use with the
237-
* provided status code; if none is provided, will
238-
* default to the IANA name.
239-
*
240-
* @return self
241-
* @throws \InvalidArgumentException For invalid status code arguments.
227+
* {@inheritDoc}
228+
* @throws DownloadException
242229
*/
243230
public function setStatusCode(int $code, string $reason = '')
244231
{
@@ -248,12 +235,7 @@ public function setStatusCode(int $code, string $reason = '')
248235
//--------------------------------------------------------------------
249236

250237
/**
251-
* Gets the response response phrase associated with the status code.
252-
*
253-
* @see http://tools.ietf.org/html/rfc7231#section-6
254-
* @see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
255-
*
256-
* @return string
238+
* {@inheritDoc}
257239
*/
258240
public function getReason(): string
259241
{
@@ -266,11 +248,7 @@ public function getReason(): string
266248
//--------------------------------------------------------------------
267249

268250
/**
269-
* Sets the date header
270-
*
271-
* @param \DateTime $date
272-
*
273-
* @return Response
251+
* {@inheritDoc}
274252
*/
275253
public function setDate(\DateTime $date)
276254
{
@@ -284,13 +262,7 @@ public function setDate(\DateTime $date)
284262
//--------------------------------------------------------------------
285263

286264
/**
287-
* Sets the Content Type header for this response with the mime type
288-
* and, optionally, the charset.
289-
*
290-
* @param string $mime
291-
* @param string $charset
292-
*
293-
* @return Response
265+
* {@inheritDoc}
294266
*/
295267
public function setContentType(string $mime, string $charset = 'UTF-8')
296268
{
@@ -307,16 +279,8 @@ public function setContentType(string $mime, string $charset = 'UTF-8')
307279
return $this;
308280
}
309281

310-
//--------------------------------------------------------------------
311-
//--------------------------------------------------------------------
312-
// Cache Control Methods
313-
//
314-
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
315-
//--------------------------------------------------------------------
316-
317282
/**
318-
* Sets the appropriate headers to ensure this response
319-
* is not cached by the browsers.
283+
* {@inheritDoc}
320284
*/
321285
public function noCache(): self
322286
{
@@ -330,32 +294,7 @@ public function noCache(): self
330294
//--------------------------------------------------------------------
331295

332296
/**
333-
* A shortcut method that allows the developer to set all of the
334-
* cache-control headers in one method call.
335-
*
336-
* The options array is used to provide the cache-control directives
337-
* for the header. It might look something like:
338-
*
339-
* $options = [
340-
* 'max-age' => 300,
341-
* 's-maxage' => 900
342-
* 'etag' => 'abcde',
343-
* ];
344-
*
345-
* Typical options are:
346-
* - etag
347-
* - last-modified
348-
* - max-age
349-
* - s-maxage
350-
* - private
351-
* - public
352-
* - must-revalidate
353-
* - proxy-revalidate
354-
* - no-transform
355-
*
356-
* @param array $options
357-
*
358-
* @return Response
297+
* {@inheritDoc}
359298
*/
360299
public function setCache(array $options = [])
361300
{
@@ -365,12 +304,7 @@ public function setCache(array $options = [])
365304
//--------------------------------------------------------------------
366305

367306
/**
368-
* Sets the Last-Modified date header.
369-
*
370-
* $date can be either a string representation of the date or,
371-
* preferably, an instance of DateTime.
372-
*
373-
* @param string|\DateTime $date
307+
* {@inheritDoc}
374308
*/
375309
public function setLastModified($date)
376310
{
@@ -400,9 +334,7 @@ public function pretend(bool $pretend = true)
400334
}
401335

402336
/**
403-
* Sends the output to the browser.
404-
*
405-
* @return Response
337+
* {@inheritDoc}
406338
*/
407339
public function send()
408340
{

0 commit comments

Comments
 (0)