Skip to content

Commit b9726b7

Browse files
committed
Merge pull request cakephp#1402 from ravage84/patch-2
Minor doc block improvements
2 parents e876906 + 85a7590 commit b9726b7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

lib/Cake/Error/exceptions.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ class CakeBaseException extends RuntimeException {
3636
/**
3737
* Get/set the response header to be used
3838
*
39-
* See also CakeResponse::header()
40-
*
4139
* @param string|array $header. An array of header strings or a single header string
4240
* - an associative array of "header name" => "header value"
4341
* - an array of string headers is also accepted
4442
* @param string $value. The header value.
4543
* @return array
44+
* @see CakeResponse::header() See also
4645
*/
4746
public function responseHeader($header = null, $value = null) {
4847
if ($header) {
@@ -79,7 +78,7 @@ class BadRequestException extends HttpException {
7978
* Constructor
8079
*
8180
* @param string $message If no message is given 'Bad Request' will be the message
82-
* @param string $code Status code, defaults to 400
81+
* @param int $code Status code, defaults to 400
8382
*/
8483
public function __construct($message = null, $code = 400) {
8584
if (empty($message)) {
@@ -101,7 +100,7 @@ class UnauthorizedException extends HttpException {
101100
* Constructor
102101
*
103102
* @param string $message If no message is given 'Unauthorized' will be the message
104-
* @param string $code Status code, defaults to 401
103+
* @param int $code Status code, defaults to 401
105104
*/
106105
public function __construct($message = null, $code = 401) {
107106
if (empty($message)) {
@@ -123,7 +122,7 @@ class ForbiddenException extends HttpException {
123122
* Constructor
124123
*
125124
* @param string $message If no message is given 'Forbidden' will be the message
126-
* @param string $code Status code, defaults to 403
125+
* @param int $code Status code, defaults to 403
127126
*/
128127
public function __construct($message = null, $code = 403) {
129128
if (empty($message)) {
@@ -145,7 +144,7 @@ class NotFoundException extends HttpException {
145144
* Constructor
146145
*
147146
* @param string $message If no message is given 'Not Found' will be the message
148-
* @param string $code Status code, defaults to 404
147+
* @param int $code Status code, defaults to 404
149148
*/
150149
public function __construct($message = null, $code = 404) {
151150
if (empty($message)) {
@@ -167,7 +166,7 @@ class MethodNotAllowedException extends HttpException {
167166
* Constructor
168167
*
169168
* @param string $message If no message is given 'Method Not Allowed' will be the message
170-
* @param string $code Status code, defaults to 405
169+
* @param int $code Status code, defaults to 405
171170
*/
172171
public function __construct($message = null, $code = 405) {
173172
if (empty($message)) {
@@ -189,7 +188,7 @@ class InternalErrorException extends HttpException {
189188
* Constructor
190189
*
191190
* @param string $message If no message is given 'Internal Server Error' will be the message
192-
* @param string $code Status code, defaults to 500
191+
* @param int $code Status code, defaults to 500
193192
*/
194193
public function __construct($message = null, $code = 500) {
195194
if (empty($message)) {
@@ -231,7 +230,7 @@ class CakeException extends CakeBaseException {
231230
*
232231
* @param string|array $message Either the string of the error message, or an array of attributes
233232
* that are made available in the view, and sprintf()'d into CakeException::$_messageTemplate
234-
* @param string $code The code of the error, is also the HTTP status code for the error.
233+
* @param int $code The code of the error, is also the HTTP status code for the error.
235234
*/
236235
public function __construct($message, $code = 500) {
237236
if (is_array($message)) {

0 commit comments

Comments
 (0)