mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-10 13:32:44 +00:00
Correct doc blocks according to cs guidelines.
Remove superfluous empty lines.
This commit is contained in:
parent
65d14c7e97
commit
974ca851c2
271 changed files with 1383 additions and 1528 deletions
|
@ -76,7 +76,7 @@ class BadRequestException extends HttpException {
|
|||
* Constructor
|
||||
*
|
||||
* @param string $message If no message is given 'Bad Request' will be the message
|
||||
* @param integer $code Status code, defaults to 400
|
||||
* @param int $code Status code, defaults to 400
|
||||
*/
|
||||
public function __construct($message = null, $code = 400) {
|
||||
if (empty($message)) {
|
||||
|
@ -98,7 +98,7 @@ class UnauthorizedException extends HttpException {
|
|||
* Constructor
|
||||
*
|
||||
* @param string $message If no message is given 'Unauthorized' will be the message
|
||||
* @param integer $code Status code, defaults to 401
|
||||
* @param int $code Status code, defaults to 401
|
||||
*/
|
||||
public function __construct($message = null, $code = 401) {
|
||||
if (empty($message)) {
|
||||
|
@ -120,7 +120,7 @@ class ForbiddenException extends HttpException {
|
|||
* Constructor
|
||||
*
|
||||
* @param string $message If no message is given 'Forbidden' will be the message
|
||||
* @param integer $code Status code, defaults to 403
|
||||
* @param int $code Status code, defaults to 403
|
||||
*/
|
||||
public function __construct($message = null, $code = 403) {
|
||||
if (empty($message)) {
|
||||
|
@ -142,7 +142,7 @@ class NotFoundException extends HttpException {
|
|||
* Constructor
|
||||
*
|
||||
* @param string $message If no message is given 'Not Found' will be the message
|
||||
* @param integer $code Status code, defaults to 404
|
||||
* @param int $code Status code, defaults to 404
|
||||
*/
|
||||
public function __construct($message = null, $code = 404) {
|
||||
if (empty($message)) {
|
||||
|
@ -164,7 +164,7 @@ class MethodNotAllowedException extends HttpException {
|
|||
* Constructor
|
||||
*
|
||||
* @param string $message If no message is given 'Method Not Allowed' will be the message
|
||||
* @param integer $code Status code, defaults to 405
|
||||
* @param int $code Status code, defaults to 405
|
||||
*/
|
||||
public function __construct($message = null, $code = 405) {
|
||||
if (empty($message)) {
|
||||
|
@ -186,7 +186,7 @@ class InternalErrorException extends HttpException {
|
|||
* Constructor
|
||||
*
|
||||
* @param string $message If no message is given 'Internal Server Error' will be the message
|
||||
* @param integer $code Status code, defaults to 500
|
||||
* @param int $code Status code, defaults to 500
|
||||
*/
|
||||
public function __construct($message = null, $code = 500) {
|
||||
if (empty($message)) {
|
||||
|
@ -228,7 +228,7 @@ class CakeException extends CakeBaseException {
|
|||
*
|
||||
* @param string|array $message Either the string of the error message, or an array of attributes
|
||||
* that are made available in the view, and sprintf()'d into CakeException::$_messageTemplate
|
||||
* @param integer $code The code of the error, is also the HTTP status code for the error.
|
||||
* @param int $code The code of the error, is also the HTTP status code for the error.
|
||||
*/
|
||||
public function __construct($message, $code = 500) {
|
||||
if (is_array($message)) {
|
||||
|
@ -594,9 +594,9 @@ class FatalErrorException extends CakeException {
|
|||
* Constructor
|
||||
*
|
||||
* @param string $message The error message.
|
||||
* @param integer $code The error code.
|
||||
* @param int $code The error code.
|
||||
* @param string $file The file the error occurred in.
|
||||
* @param integer $line The line the error occurred on.
|
||||
* @param int $line The line the error occurred on.
|
||||
*/
|
||||
public function __construct($message, $code = 500, $file = null, $line = null) {
|
||||
parent::__construct($message, $code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue