mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Improve documentation
This commit is contained in:
parent
92e9277d20
commit
cb1d80fda1
1 changed files with 3 additions and 3 deletions
|
@ -331,7 +331,7 @@ class CakeResponse {
|
||||||
* Content type to send. This can be an 'extension' that will be transformed using the $_mimetypes array
|
* Content type to send. This can be an 'extension' that will be transformed using the $_mimetypes array
|
||||||
* or a complete mime-type
|
* or a complete mime-type
|
||||||
*
|
*
|
||||||
* @var int
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $_contentType = 'text/html';
|
protected $_contentType = 'text/html';
|
||||||
|
|
||||||
|
@ -718,8 +718,8 @@ class CakeResponse {
|
||||||
*
|
*
|
||||||
* e.g `type(array('jpg' => 'text/plain'));`
|
* e.g `type(array('jpg' => 'text/plain'));`
|
||||||
*
|
*
|
||||||
* @param array|string $contentType Content type key.
|
* @param array|string|null $contentType Content type key.
|
||||||
* @return mixed current content type or false if supplied an invalid content type
|
* @return string|false current content type or false if supplied an invalid content type
|
||||||
*/
|
*/
|
||||||
public function type($contentType = null) {
|
public function type($contentType = null) {
|
||||||
if ($contentType === null) {
|
if ($contentType === null) {
|
||||||
|
|
Loading…
Reference in a new issue